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
@@ -20,13 +20,13 @@ module Google
20
20
  module Apis
21
21
  # Google Partners API
22
22
  #
23
- # Lets advertisers search certified companies and create contact leads with them,
24
- # and also audits the usage of clients.
23
+ # Searches certified companies and creates contact leads with them, and also
24
+ # audits the usage of clients.
25
25
  #
26
26
  # @see https://developers.google.com/partners/
27
27
  module PartnersV2
28
28
  VERSION = 'V2'
29
- REVISION = '20151009'
29
+ REVISION = '20170303'
30
30
  end
31
31
  end
32
32
  end
@@ -22,39 +22,761 @@ module Google
22
22
  module Apis
23
23
  module PartnersV2
24
24
 
25
- # Request message for LogUserEvent.
25
+ # Response message for ListLeads.
26
+ class ListLeadsResponse
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # A token to retrieve next page of results.
30
+ # Pass this value in the `ListLeadsRequest.page_token` field in the
31
+ # subsequent call to
32
+ # ListLeads to retrieve the
33
+ # next page of results.
34
+ # Corresponds to the JSON property `nextPageToken`
35
+ # @return [String]
36
+ attr_accessor :next_page_token
37
+
38
+ # Common data that is in each API response.
39
+ # Corresponds to the JSON property `responseMetadata`
40
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
41
+ attr_accessor :response_metadata
42
+
43
+ # The total count of leads for the given company.
44
+ # Corresponds to the JSON property `totalSize`
45
+ # @return [Fixnum]
46
+ attr_accessor :total_size
47
+
48
+ # The list of leads.
49
+ # Corresponds to the JSON property `leads`
50
+ # @return [Array<Google::Apis::PartnersV2::Lead>]
51
+ attr_accessor :leads
52
+
53
+ def initialize(**args)
54
+ update!(**args)
55
+ end
56
+
57
+ # Update properties of this object
58
+ def update!(**args)
59
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
60
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
61
+ @total_size = args[:total_size] if args.key?(:total_size)
62
+ @leads = args[:leads] if args.key?(:leads)
63
+ end
64
+ end
65
+
66
+ # A company resource in the Google Partners API. Once certified, it qualifies
67
+ # for being searched by advertisers.
68
+ class Company
69
+ include Google::Apis::Core::Hashable
70
+
71
+ # The list of all company locations.
72
+ # If set, must include the
73
+ # primary_location
74
+ # in the list.
75
+ # Corresponds to the JSON property `locations`
76
+ # @return [Array<Google::Apis::PartnersV2::Location>]
77
+ attr_accessor :locations
78
+
79
+ # Represents an amount of money with its currency type.
80
+ # Corresponds to the JSON property `convertedMinMonthlyBudget`
81
+ # @return [Google::Apis::PartnersV2::Money]
82
+ attr_accessor :converted_min_monthly_budget
83
+
84
+ # Industries the company can help with.
85
+ # Corresponds to the JSON property `industries`
86
+ # @return [Array<String>]
87
+ attr_accessor :industries
88
+
89
+ # URL of the company's website.
90
+ # Corresponds to the JSON property `websiteUrl`
91
+ # @return [String]
92
+ attr_accessor :website_url
93
+
94
+ # URL of the company's additional websites used to verify the dynamic badges.
95
+ # These are stored as full URLs as entered by the user, but only the TLD will
96
+ # be used for the actual verification.
97
+ # Corresponds to the JSON property `additionalWebsites`
98
+ # @return [Array<String>]
99
+ attr_accessor :additional_websites
100
+
101
+ # The Primary AdWords Manager Account id.
102
+ # Corresponds to the JSON property `primaryAdwordsManagerAccountId`
103
+ # @return [String]
104
+ attr_accessor :primary_adwords_manager_account_id
105
+
106
+ # The name of the company.
107
+ # Corresponds to the JSON property `name`
108
+ # @return [String]
109
+ attr_accessor :name
110
+
111
+ # The list of localized info for the company.
112
+ # Corresponds to the JSON property `localizedInfos`
113
+ # @return [Array<Google::Apis::PartnersV2::LocalizedCompanyInfo>]
114
+ attr_accessor :localized_infos
115
+
116
+ # The ID of the company.
117
+ # Corresponds to the JSON property `id`
118
+ # @return [String]
119
+ attr_accessor :id
120
+
121
+ # The list of Google Partners certification statuses for the company.
122
+ # Corresponds to the JSON property `certificationStatuses`
123
+ # @return [Array<Google::Apis::PartnersV2::CertificationStatus>]
124
+ attr_accessor :certification_statuses
125
+
126
+ # Basic information from a public profile.
127
+ # Corresponds to the JSON property `publicProfile`
128
+ # @return [Google::Apis::PartnersV2::PublicProfile]
129
+ attr_accessor :public_profile
130
+
131
+ # Services the company can help with.
132
+ # Corresponds to the JSON property `services`
133
+ # @return [Array<String>]
134
+ attr_accessor :services
135
+
136
+ # A location with address and geographic coordinates. May optionally contain a
137
+ # detailed (multi-field) version of the address.
138
+ # Corresponds to the JSON property `primaryLocation`
139
+ # @return [Google::Apis::PartnersV2::Location]
140
+ attr_accessor :primary_location
141
+
142
+ # Represents an amount of money with its currency type.
143
+ # Corresponds to the JSON property `originalMinMonthlyBudget`
144
+ # @return [Google::Apis::PartnersV2::Money]
145
+ attr_accessor :original_min_monthly_budget
146
+
147
+ # Information related to the ranking of the company within the list of
148
+ # companies.
149
+ # Corresponds to the JSON property `ranks`
150
+ # @return [Array<Google::Apis::PartnersV2::Rank>]
151
+ attr_accessor :ranks
152
+
153
+ # Partner badge tier
154
+ # Corresponds to the JSON property `badgeTier`
155
+ # @return [String]
156
+ attr_accessor :badge_tier
157
+
158
+ # The list of Google Partners specialization statuses for the company.
159
+ # Corresponds to the JSON property `specializationStatus`
160
+ # @return [Array<Google::Apis::PartnersV2::SpecializationStatus>]
161
+ attr_accessor :specialization_status
162
+
163
+ # Company type labels listed on the company's profile.
164
+ # Corresponds to the JSON property `companyTypes`
165
+ # @return [Array<String>]
166
+ attr_accessor :company_types
167
+
168
+ # Email domains that allow users with a matching email address to get
169
+ # auto-approved for associating with this company.
170
+ # Corresponds to the JSON property `autoApprovalEmailDomains`
171
+ # @return [Array<String>]
172
+ attr_accessor :auto_approval_email_domains
173
+
174
+ # The primary language code of the company, as defined by
175
+ # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
176
+ # (IETF BCP 47, "Tags for Identifying Languages").
177
+ # Corresponds to the JSON property `primaryLanguageCode`
178
+ # @return [String]
179
+ attr_accessor :primary_language_code
180
+
181
+ # The public viewability status of the company's profile.
182
+ # Corresponds to the JSON property `profileStatus`
183
+ # @return [String]
184
+ attr_accessor :profile_status
185
+
186
+ def initialize(**args)
187
+ update!(**args)
188
+ end
189
+
190
+ # Update properties of this object
191
+ def update!(**args)
192
+ @locations = args[:locations] if args.key?(:locations)
193
+ @converted_min_monthly_budget = args[:converted_min_monthly_budget] if args.key?(:converted_min_monthly_budget)
194
+ @industries = args[:industries] if args.key?(:industries)
195
+ @website_url = args[:website_url] if args.key?(:website_url)
196
+ @additional_websites = args[:additional_websites] if args.key?(:additional_websites)
197
+ @primary_adwords_manager_account_id = args[:primary_adwords_manager_account_id] if args.key?(:primary_adwords_manager_account_id)
198
+ @name = args[:name] if args.key?(:name)
199
+ @localized_infos = args[:localized_infos] if args.key?(:localized_infos)
200
+ @id = args[:id] if args.key?(:id)
201
+ @certification_statuses = args[:certification_statuses] if args.key?(:certification_statuses)
202
+ @public_profile = args[:public_profile] if args.key?(:public_profile)
203
+ @services = args[:services] if args.key?(:services)
204
+ @primary_location = args[:primary_location] if args.key?(:primary_location)
205
+ @original_min_monthly_budget = args[:original_min_monthly_budget] if args.key?(:original_min_monthly_budget)
206
+ @ranks = args[:ranks] if args.key?(:ranks)
207
+ @badge_tier = args[:badge_tier] if args.key?(:badge_tier)
208
+ @specialization_status = args[:specialization_status] if args.key?(:specialization_status)
209
+ @company_types = args[:company_types] if args.key?(:company_types)
210
+ @auto_approval_email_domains = args[:auto_approval_email_domains] if args.key?(:auto_approval_email_domains)
211
+ @primary_language_code = args[:primary_language_code] if args.key?(:primary_language_code)
212
+ @profile_status = args[:profile_status] if args.key?(:profile_status)
213
+ end
214
+ end
215
+
216
+ # Response message for CreateLead.
217
+ class CreateLeadResponse
218
+ include Google::Apis::Core::Hashable
219
+
220
+ # A lead resource that represents an advertiser contact for a `Company`. These
221
+ # are usually generated via Google Partner Search (the advertiser portal).
222
+ # Corresponds to the JSON property `lead`
223
+ # @return [Google::Apis::PartnersV2::Lead]
224
+ attr_accessor :lead
225
+
226
+ # The outcome of <a href="https://www.google.com/recaptcha/">reCaptcha</a>
227
+ # validation.
228
+ # Corresponds to the JSON property `recaptchaStatus`
229
+ # @return [String]
230
+ attr_accessor :recaptcha_status
231
+
232
+ # Common data that is in each API response.
233
+ # Corresponds to the JSON property `responseMetadata`
234
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
235
+ attr_accessor :response_metadata
236
+
237
+ def initialize(**args)
238
+ update!(**args)
239
+ end
240
+
241
+ # Update properties of this object
242
+ def update!(**args)
243
+ @lead = args[:lead] if args.key?(:lead)
244
+ @recaptcha_status = args[:recaptcha_status] if args.key?(:recaptcha_status)
245
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
246
+ end
247
+ end
248
+
249
+ # Response message for GetCompany.
250
+ class GetCompanyResponse
251
+ include Google::Apis::Core::Hashable
252
+
253
+ # Common data that is in each API response.
254
+ # Corresponds to the JSON property `responseMetadata`
255
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
256
+ attr_accessor :response_metadata
257
+
258
+ # A company resource in the Google Partners API. Once certified, it qualifies
259
+ # for being searched by advertisers.
260
+ # Corresponds to the JSON property `company`
261
+ # @return [Google::Apis::PartnersV2::Company]
262
+ attr_accessor :company
263
+
264
+ def initialize(**args)
265
+ update!(**args)
266
+ end
267
+
268
+ # Update properties of this object
269
+ def update!(**args)
270
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
271
+ @company = args[:company] if args.key?(:company)
272
+ end
273
+ end
274
+
275
+ # A location with address and geographic coordinates. May optionally contain a
276
+ # detailed (multi-field) version of the address.
277
+ class Location
278
+ include Google::Apis::Core::Hashable
279
+
280
+ # Top-level administrative subdivision of this country.
281
+ # Corresponds to the JSON property `administrativeArea`
282
+ # @return [String]
283
+ attr_accessor :administrative_area
284
+
285
+ # Generally refers to the city/town portion of an address.
286
+ # Corresponds to the JSON property `locality`
287
+ # @return [String]
288
+ attr_accessor :locality
289
+
290
+ # An object representing a latitude/longitude pair. This is expressed as a pair
291
+ # of doubles representing degrees latitude and degrees longitude. Unless
292
+ # specified otherwise, this must conform to the
293
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
294
+ # standard</a>. Values must be within normalized ranges.
295
+ # Example of normalization code in Python:
296
+ # def NormalizeLongitude(longitude):
297
+ # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
298
+ # q, r = divmod(longitude, 360.0)
299
+ # if r > 180.0 or (r == 180.0 and q <= -1.0):
300
+ # return r - 360.0
301
+ # return r
302
+ # def NormalizeLatLng(latitude, longitude):
303
+ # """Wraps decimal degrees latitude and longitude to
304
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
305
+ # r = latitude % 360.0
306
+ # if r <= 90.0:
307
+ # return r, NormalizeLongitude(longitude)
308
+ # elif r >= 270.0:
309
+ # return r - 360, NormalizeLongitude(longitude)
310
+ # else:
311
+ # return 180 - r, NormalizeLongitude(longitude + 180.0)
312
+ # assert 180.0 == NormalizeLongitude(180.0)
313
+ # assert -180.0 == NormalizeLongitude(-180.0)
314
+ # assert -179.0 == NormalizeLongitude(181.0)
315
+ # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
316
+ # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
317
+ # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
318
+ # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
319
+ # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
320
+ # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
321
+ # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
322
+ # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
323
+ # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
324
+ # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
325
+ # The code in logs/storage/validator/logs_validator_traits.cc treats this type
326
+ # as if it were annotated as ST_LOCATION.
327
+ # Corresponds to the JSON property `latLng`
328
+ # @return [Google::Apis::PartnersV2::LatLng]
329
+ attr_accessor :lat_lng
330
+
331
+ # Dependent locality or sublocality. Used for UK dependent localities, or
332
+ # neighborhoods or boroughs in other locations.
333
+ # Corresponds to the JSON property `dependentLocality`
334
+ # @return [String]
335
+ attr_accessor :dependent_locality
336
+
337
+ # The single string version of the address.
338
+ # Corresponds to the JSON property `address`
339
+ # @return [String]
340
+ attr_accessor :address
341
+
342
+ # CLDR (Common Locale Data Repository) region code .
343
+ # Corresponds to the JSON property `regionCode`
344
+ # @return [String]
345
+ attr_accessor :region_code
346
+
347
+ # Values are frequently alphanumeric.
348
+ # Corresponds to the JSON property `postalCode`
349
+ # @return [String]
350
+ attr_accessor :postal_code
351
+
352
+ # Use of this code is very country-specific, but will refer to a secondary
353
+ # classification code for sorting mail.
354
+ # Corresponds to the JSON property `sortingCode`
355
+ # @return [String]
356
+ attr_accessor :sorting_code
357
+
358
+ # Language code of the address. Should be in BCP 47 format.
359
+ # Corresponds to the JSON property `languageCode`
360
+ # @return [String]
361
+ attr_accessor :language_code
362
+
363
+ # The following address lines represent the most specific part of any
364
+ # address.
365
+ # Corresponds to the JSON property `addressLine`
366
+ # @return [Array<String>]
367
+ attr_accessor :address_line
368
+
369
+ def initialize(**args)
370
+ update!(**args)
371
+ end
372
+
373
+ # Update properties of this object
374
+ def update!(**args)
375
+ @administrative_area = args[:administrative_area] if args.key?(:administrative_area)
376
+ @locality = args[:locality] if args.key?(:locality)
377
+ @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
378
+ @dependent_locality = args[:dependent_locality] if args.key?(:dependent_locality)
379
+ @address = args[:address] if args.key?(:address)
380
+ @region_code = args[:region_code] if args.key?(:region_code)
381
+ @postal_code = args[:postal_code] if args.key?(:postal_code)
382
+ @sorting_code = args[:sorting_code] if args.key?(:sorting_code)
383
+ @language_code = args[:language_code] if args.key?(:language_code)
384
+ @address_line = args[:address_line] if args.key?(:address_line)
385
+ end
386
+ end
387
+
388
+ # A token that allows a user to take an exam.
389
+ class ExamToken
390
+ include Google::Apis::Core::Hashable
391
+
392
+ # The id of the exam the token is for.
393
+ # Corresponds to the JSON property `examId`
394
+ # @return [String]
395
+ attr_accessor :exam_id
396
+
397
+ # The token, only present if the user has access to the exam.
398
+ # Corresponds to the JSON property `token`
399
+ # @return [String]
400
+ attr_accessor :token
401
+
402
+ # The type of the exam the token belongs to.
403
+ # Corresponds to the JSON property `examType`
404
+ # @return [String]
405
+ attr_accessor :exam_type
406
+
407
+ def initialize(**args)
408
+ update!(**args)
409
+ end
410
+
411
+ # Update properties of this object
412
+ def update!(**args)
413
+ @exam_id = args[:exam_id] if args.key?(:exam_id)
414
+ @token = args[:token] if args.key?(:token)
415
+ @exam_type = args[:exam_type] if args.key?(:exam_type)
416
+ end
417
+ end
418
+
419
+ # Status for a Google Partners certification exam.
420
+ class CertificationExamStatus
421
+ include Google::Apis::Core::Hashable
422
+
423
+ # The number of people who have passed the certification exam.
424
+ # Corresponds to the JSON property `numberUsersPass`
425
+ # @return [Fixnum]
426
+ attr_accessor :number_users_pass
427
+
428
+ # The type of certification exam.
429
+ # Corresponds to the JSON property `type`
430
+ # @return [String]
431
+ attr_accessor :type
432
+
433
+ def initialize(**args)
434
+ update!(**args)
435
+ end
436
+
437
+ # Update properties of this object
438
+ def update!(**args)
439
+ @number_users_pass = args[:number_users_pass] if args.key?(:number_users_pass)
440
+ @type = args[:type] if args.key?(:type)
441
+ end
442
+ end
443
+
444
+ # A set of opt-ins for a user.
445
+ class OptIns
446
+ include Google::Apis::Core::Hashable
447
+
448
+ # An opt-in about receiving email with customized AdWords campaign management
449
+ # tips.
450
+ # Corresponds to the JSON property `performanceSuggestions`
451
+ # @return [Boolean]
452
+ attr_accessor :performance_suggestions
453
+ alias_method :performance_suggestions?, :performance_suggestions
454
+
455
+ # An opt-in to receive special promotional gifts and material in the mail.
456
+ # Corresponds to the JSON property `physicalMail`
457
+ # @return [Boolean]
458
+ attr_accessor :physical_mail
459
+ alias_method :physical_mail?, :physical_mail
460
+
461
+ # An opt-in to allow recieivng phone calls about their Partners account.
462
+ # Corresponds to the JSON property `phoneContact`
463
+ # @return [Boolean]
464
+ attr_accessor :phone_contact
465
+ alias_method :phone_contact?, :phone_contact
466
+
467
+ # An opt-in about receiving email from Partners marketing teams. Includes
468
+ # member-only events and special promotional offers for Google products.
469
+ # Corresponds to the JSON property `marketComm`
470
+ # @return [Boolean]
471
+ attr_accessor :market_comm
472
+ alias_method :market_comm?, :market_comm
473
+
474
+ # An opt-in about receiving email regarding new features and products.
475
+ # Corresponds to the JSON property `specialOffers`
476
+ # @return [Boolean]
477
+ attr_accessor :special_offers
478
+ alias_method :special_offers?, :special_offers
479
+
480
+ def initialize(**args)
481
+ update!(**args)
482
+ end
483
+
484
+ # Update properties of this object
485
+ def update!(**args)
486
+ @performance_suggestions = args[:performance_suggestions] if args.key?(:performance_suggestions)
487
+ @physical_mail = args[:physical_mail] if args.key?(:physical_mail)
488
+ @phone_contact = args[:phone_contact] if args.key?(:phone_contact)
489
+ @market_comm = args[:market_comm] if args.key?(:market_comm)
490
+ @special_offers = args[:special_offers] if args.key?(:special_offers)
491
+ end
492
+ end
493
+
494
+ # Information related to ranking of results.
495
+ class Rank
496
+ include Google::Apis::Core::Hashable
497
+
498
+ # The type of rank.
499
+ # Corresponds to the JSON property `type`
500
+ # @return [String]
501
+ attr_accessor :type
502
+
503
+ # The numerical value of the rank.
504
+ # Corresponds to the JSON property `value`
505
+ # @return [Float]
506
+ attr_accessor :value
507
+
508
+ def initialize(**args)
509
+ update!(**args)
510
+ end
511
+
512
+ # Update properties of this object
513
+ def update!(**args)
514
+ @type = args[:type] if args.key?(:type)
515
+ @value = args[:value] if args.key?(:value)
516
+ end
517
+ end
518
+
519
+ # Response message for
520
+ # GetPartnersStatus.
521
+ class GetPartnersStatusResponse
522
+ include Google::Apis::Core::Hashable
523
+
524
+ # Common data that is in each API response.
525
+ # Corresponds to the JSON property `responseMetadata`
526
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
527
+ attr_accessor :response_metadata
528
+
529
+ def initialize(**args)
530
+ update!(**args)
531
+ end
532
+
533
+ # Update properties of this object
534
+ def update!(**args)
535
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
536
+ end
537
+ end
538
+
539
+ # The profile information of a Partners user.
540
+ class UserProfile
541
+ include Google::Apis::Core::Hashable
542
+
543
+ # The user's given name.
544
+ # Corresponds to the JSON property `givenName`
545
+ # @return [String]
546
+ attr_accessor :given_name
547
+
548
+ # A location with address and geographic coordinates. May optionally contain a
549
+ # detailed (multi-field) version of the address.
550
+ # Corresponds to the JSON property `address`
551
+ # @return [Google::Apis::PartnersV2::Location]
552
+ attr_accessor :address
553
+
554
+ # A list of ids representing which industries the user selected.
555
+ # Corresponds to the JSON property `industries`
556
+ # @return [Array<String>]
557
+ attr_accessor :industries
558
+
559
+ # The user's family name.
560
+ # Corresponds to the JSON property `familyName`
561
+ # @return [String]
562
+ attr_accessor :family_name
563
+
564
+ # A set of opt-ins for a user.
565
+ # Corresponds to the JSON property `emailOptIns`
566
+ # @return [Google::Apis::PartnersV2::OptIns]
567
+ attr_accessor :email_opt_ins
568
+
569
+ # The list of languages this user understands.
570
+ # Corresponds to the JSON property `languages`
571
+ # @return [Array<String>]
572
+ attr_accessor :languages
573
+
574
+ # A list of ids representing which markets the user was interested in.
575
+ # Corresponds to the JSON property `markets`
576
+ # @return [Array<String>]
577
+ attr_accessor :markets
578
+
579
+ # If the user has edit access to multiple accounts, the user can choose the
580
+ # preferred account and it is used when a personal account is needed. Can
581
+ # be empty.
582
+ # Corresponds to the JSON property `adwordsManagerAccount`
583
+ # @return [String]
584
+ attr_accessor :adwords_manager_account
585
+
586
+ # The user's phone number.
587
+ # Corresponds to the JSON property `phoneNumber`
588
+ # @return [String]
589
+ attr_accessor :phone_number
590
+
591
+ # The user's primary country, an ISO 2-character code.
592
+ # Corresponds to the JSON property `primaryCountryCode`
593
+ # @return [String]
594
+ attr_accessor :primary_country_code
595
+
596
+ # The email address the user has selected on the Partners site as primary.
597
+ # Corresponds to the JSON property `emailAddress`
598
+ # @return [String]
599
+ attr_accessor :email_address
600
+
601
+ # A list of ids representing which channels the user selected they were in.
602
+ # Corresponds to the JSON property `channels`
603
+ # @return [Array<String>]
604
+ attr_accessor :channels
605
+
606
+ # Whether the user's public profile is visible to anyone with the URL.
607
+ # Corresponds to the JSON property `profilePublic`
608
+ # @return [Boolean]
609
+ attr_accessor :profile_public
610
+ alias_method :profile_public?, :profile_public
611
+
612
+ # A list of ids represnting which job categories the user selected.
613
+ # Corresponds to the JSON property `jobFunctions`
614
+ # @return [Array<String>]
615
+ attr_accessor :job_functions
616
+
617
+ def initialize(**args)
618
+ update!(**args)
619
+ end
620
+
621
+ # Update properties of this object
622
+ def update!(**args)
623
+ @given_name = args[:given_name] if args.key?(:given_name)
624
+ @address = args[:address] if args.key?(:address)
625
+ @industries = args[:industries] if args.key?(:industries)
626
+ @family_name = args[:family_name] if args.key?(:family_name)
627
+ @email_opt_ins = args[:email_opt_ins] if args.key?(:email_opt_ins)
628
+ @languages = args[:languages] if args.key?(:languages)
629
+ @markets = args[:markets] if args.key?(:markets)
630
+ @adwords_manager_account = args[:adwords_manager_account] if args.key?(:adwords_manager_account)
631
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
632
+ @primary_country_code = args[:primary_country_code] if args.key?(:primary_country_code)
633
+ @email_address = args[:email_address] if args.key?(:email_address)
634
+ @channels = args[:channels] if args.key?(:channels)
635
+ @profile_public = args[:profile_public] if args.key?(:profile_public)
636
+ @job_functions = args[:job_functions] if args.key?(:job_functions)
637
+ end
638
+ end
639
+
640
+ # Historical information about a Google Partners Offer.
641
+ class HistoricalOffer
642
+ include Google::Apis::Core::Hashable
643
+
644
+ # Time offer was first created.
645
+ # Corresponds to the JSON property `creationTime`
646
+ # @return [String]
647
+ attr_accessor :creation_time
648
+
649
+ # Status of the offer.
650
+ # Corresponds to the JSON property `status`
651
+ # @return [String]
652
+ attr_accessor :status
653
+
654
+ # Email address for client.
655
+ # Corresponds to the JSON property `clientEmail`
656
+ # @return [String]
657
+ attr_accessor :client_email
658
+
659
+ # ID of client.
660
+ # Corresponds to the JSON property `clientId`
661
+ # @return [String]
662
+ attr_accessor :client_id
663
+
664
+ # Name of the client.
665
+ # Corresponds to the JSON property `clientName`
666
+ # @return [String]
667
+ attr_accessor :client_name
668
+
669
+ # Time last action was taken.
670
+ # Corresponds to the JSON property `lastModifiedTime`
671
+ # @return [String]
672
+ attr_accessor :last_modified_time
673
+
674
+ # Client's AdWords page URL.
675
+ # Corresponds to the JSON property `adwordsUrl`
676
+ # @return [String]
677
+ attr_accessor :adwords_url
678
+
679
+ # Type of offer.
680
+ # Corresponds to the JSON property `offerType`
681
+ # @return [String]
682
+ attr_accessor :offer_type
683
+
684
+ # Name (First + Last) of the partners user to whom the incentive is allocated.
685
+ # Corresponds to the JSON property `senderName`
686
+ # @return [String]
687
+ attr_accessor :sender_name
688
+
689
+ # Country Code for the offer country.
690
+ # Corresponds to the JSON property `offerCountryCode`
691
+ # @return [String]
692
+ attr_accessor :offer_country_code
693
+
694
+ # Time this offer expires.
695
+ # Corresponds to the JSON property `expirationTime`
696
+ # @return [String]
697
+ attr_accessor :expiration_time
698
+
699
+ # Offer code.
700
+ # Corresponds to the JSON property `offerCode`
701
+ # @return [String]
702
+ attr_accessor :offer_code
703
+
704
+ def initialize(**args)
705
+ update!(**args)
706
+ end
707
+
708
+ # Update properties of this object
709
+ def update!(**args)
710
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
711
+ @status = args[:status] if args.key?(:status)
712
+ @client_email = args[:client_email] if args.key?(:client_email)
713
+ @client_id = args[:client_id] if args.key?(:client_id)
714
+ @client_name = args[:client_name] if args.key?(:client_name)
715
+ @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
716
+ @adwords_url = args[:adwords_url] if args.key?(:adwords_url)
717
+ @offer_type = args[:offer_type] if args.key?(:offer_type)
718
+ @sender_name = args[:sender_name] if args.key?(:sender_name)
719
+ @offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code)
720
+ @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
721
+ @offer_code = args[:offer_code] if args.key?(:offer_code)
722
+ end
723
+ end
724
+
725
+ # Values to use instead of the user's respective defaults. These are only
726
+ # honored by whitelisted products.
727
+ class UserOverrides
728
+ include Google::Apis::Core::Hashable
729
+
730
+ # IP address to use instead of the user's geo-located IP address.
731
+ # Corresponds to the JSON property `ipAddress`
732
+ # @return [String]
733
+ attr_accessor :ip_address
734
+
735
+ # Logged-in user ID to impersonate instead of the user's ID.
736
+ # Corresponds to the JSON property `userId`
737
+ # @return [String]
738
+ attr_accessor :user_id
739
+
740
+ def initialize(**args)
741
+ update!(**args)
742
+ end
743
+
744
+ # Update properties of this object
745
+ def update!(**args)
746
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
747
+ @user_id = args[:user_id] if args.key?(:user_id)
748
+ end
749
+ end
750
+
751
+ # Request message for
752
+ # LogUserEvent.
26
753
  class LogUserEventRequest
27
754
  include Google::Apis::Core::Hashable
28
755
 
756
+ # The URL where the event occurred.
757
+ # Corresponds to the JSON property `url`
758
+ # @return [String]
759
+ attr_accessor :url
760
+
29
761
  # Common data that is in each API request.
30
762
  # Corresponds to the JSON property `requestMetadata`
31
763
  # @return [Google::Apis::PartnersV2::RequestMetadata]
32
764
  attr_accessor :request_metadata
33
765
 
34
- # The action that occurred.
35
- # Corresponds to the JSON property `eventAction`
36
- # @return [String]
37
- attr_accessor :event_action
38
-
39
- # The category the action belongs to.
40
- # Corresponds to the JSON property `eventCategory`
41
- # @return [String]
42
- attr_accessor :event_category
766
+ # List of event data for the event.
767
+ # Corresponds to the JSON property `eventDatas`
768
+ # @return [Array<Google::Apis::PartnersV2::EventData>]
769
+ attr_accessor :event_datas
43
770
 
44
771
  # The scope of the event.
45
772
  # Corresponds to the JSON property `eventScope`
46
773
  # @return [String]
47
774
  attr_accessor :event_scope
48
775
 
49
- # List of event data for the event.
50
- # Corresponds to the JSON property `eventDatas`
51
- # @return [Array<Google::Apis::PartnersV2::EventData>]
52
- attr_accessor :event_datas
53
-
54
- # The URL where the event occurred.
55
- # Corresponds to the JSON property `url`
776
+ # The category the action belongs to.
777
+ # Corresponds to the JSON property `eventCategory`
56
778
  # @return [String]
57
- attr_accessor :url
779
+ attr_accessor :event_category
58
780
 
59
781
  # A lead resource that represents an advertiser contact for a `Company`. These
60
782
  # are usually generated via Google Partner Search (the advertiser portal).
@@ -62,51 +784,381 @@ module Google
62
784
  # @return [Google::Apis::PartnersV2::Lead]
63
785
  attr_accessor :lead
64
786
 
787
+ # The action that occurred.
788
+ # Corresponds to the JSON property `eventAction`
789
+ # @return [String]
790
+ attr_accessor :event_action
791
+
65
792
  def initialize(**args)
66
793
  update!(**args)
67
794
  end
68
795
 
69
796
  # Update properties of this object
70
797
  def update!(**args)
798
+ @url = args[:url] if args.key?(:url)
71
799
  @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
72
- @event_action = args[:event_action] if args.key?(:event_action)
73
- @event_category = args[:event_category] if args.key?(:event_category)
74
- @event_scope = args[:event_scope] if args.key?(:event_scope)
75
800
  @event_datas = args[:event_datas] if args.key?(:event_datas)
76
- @url = args[:url] if args.key?(:url)
801
+ @event_scope = args[:event_scope] if args.key?(:event_scope)
802
+ @event_category = args[:event_category] if args.key?(:event_category)
77
803
  @lead = args[:lead] if args.key?(:lead)
804
+ @event_action = args[:event_action] if args.key?(:event_action)
78
805
  end
79
806
  end
80
807
 
81
- # Common data that is in each API request.
82
- class RequestMetadata
808
+ # Details of the analytics events for a `Company` within a single day.
809
+ class AnalyticsDataPoint
810
+ include Google::Apis::Core::Hashable
811
+
812
+ # Location information of where these events occurred.
813
+ # Corresponds to the JSON property `eventLocations`
814
+ # @return [Array<Google::Apis::PartnersV2::LatLng>]
815
+ attr_accessor :event_locations
816
+
817
+ # Number of times the type of event occurred.
818
+ # Meaning depends on context (e.g. profile views, contacts, etc.).
819
+ # Corresponds to the JSON property `eventCount`
820
+ # @return [Fixnum]
821
+ attr_accessor :event_count
822
+
823
+ def initialize(**args)
824
+ update!(**args)
825
+ end
826
+
827
+ # Update properties of this object
828
+ def update!(**args)
829
+ @event_locations = args[:event_locations] if args.key?(:event_locations)
830
+ @event_count = args[:event_count] if args.key?(:event_count)
831
+ end
832
+ end
833
+
834
+ # Analytics data for a `Company` within a single day.
835
+ class Analytics
836
+ include Google::Apis::Core::Hashable
837
+
838
+ # Details of the analytics events for a `Company` within a single day.
839
+ # Corresponds to the JSON property `contacts`
840
+ # @return [Google::Apis::PartnersV2::AnalyticsDataPoint]
841
+ attr_accessor :contacts
842
+
843
+ # Represents a whole calendar date, e.g. date of birth. The time of day and
844
+ # time zone are either specified elsewhere or are not significant. The date
845
+ # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
846
+ # represent a year and month where the day is not significant, e.g. credit card
847
+ # expiration date. The year may be 0 to represent a month and day independent
848
+ # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
849
+ # and `google.protobuf.Timestamp`.
850
+ # Corresponds to the JSON property `eventDate`
851
+ # @return [Google::Apis::PartnersV2::Date]
852
+ attr_accessor :event_date
853
+
854
+ # Details of the analytics events for a `Company` within a single day.
855
+ # Corresponds to the JSON property `profileViews`
856
+ # @return [Google::Apis::PartnersV2::AnalyticsDataPoint]
857
+ attr_accessor :profile_views
858
+
859
+ # Details of the analytics events for a `Company` within a single day.
860
+ # Corresponds to the JSON property `searchViews`
861
+ # @return [Google::Apis::PartnersV2::AnalyticsDataPoint]
862
+ attr_accessor :search_views
863
+
864
+ def initialize(**args)
865
+ update!(**args)
866
+ end
867
+
868
+ # Update properties of this object
869
+ def update!(**args)
870
+ @contacts = args[:contacts] if args.key?(:contacts)
871
+ @event_date = args[:event_date] if args.key?(:event_date)
872
+ @profile_views = args[:profile_views] if args.key?(:profile_views)
873
+ @search_views = args[:search_views] if args.key?(:search_views)
874
+ end
875
+ end
876
+
877
+ # Basic information from a public profile.
878
+ class PublicProfile
879
+ include Google::Apis::Core::Hashable
880
+
881
+ # The ID which can be used to retrieve more details about the public profile.
882
+ # Corresponds to the JSON property `id`
883
+ # @return [String]
884
+ attr_accessor :id
885
+
886
+ # The URL of the public profile.
887
+ # Corresponds to the JSON property `url`
888
+ # @return [String]
889
+ attr_accessor :url
890
+
891
+ # The URL to the main profile image of the public profile.
892
+ # Corresponds to the JSON property `profileImage`
893
+ # @return [String]
894
+ attr_accessor :profile_image
895
+
896
+ # The display name of the public profile.
897
+ # Corresponds to the JSON property `displayName`
898
+ # @return [String]
899
+ attr_accessor :display_name
900
+
901
+ # The URL to the main display image of the public profile. Being deprecated.
902
+ # Corresponds to the JSON property `displayImageUrl`
903
+ # @return [String]
904
+ attr_accessor :display_image_url
905
+
906
+ def initialize(**args)
907
+ update!(**args)
908
+ end
909
+
910
+ # Update properties of this object
911
+ def update!(**args)
912
+ @id = args[:id] if args.key?(:id)
913
+ @url = args[:url] if args.key?(:url)
914
+ @profile_image = args[:profile_image] if args.key?(:profile_image)
915
+ @display_name = args[:display_name] if args.key?(:display_name)
916
+ @display_image_url = args[:display_image_url] if args.key?(:display_image_url)
917
+ end
918
+ end
919
+
920
+ # Information about a particular AdWords Manager Account.
921
+ # Read more at https://support.google.com/adwords/answer/6139186
922
+ class AdWordsManagerAccountInfo
923
+ include Google::Apis::Core::Hashable
924
+
925
+ # The AdWords Manager Account id.
926
+ # Corresponds to the JSON property `id`
927
+ # @return [String]
928
+ attr_accessor :id
929
+
930
+ # Name of the customer this account represents.
931
+ # Corresponds to the JSON property `customerName`
932
+ # @return [String]
933
+ attr_accessor :customer_name
934
+
935
+ def initialize(**args)
936
+ update!(**args)
937
+ end
938
+
939
+ # Update properties of this object
940
+ def update!(**args)
941
+ @id = args[:id] if args.key?(:id)
942
+ @customer_name = args[:customer_name] if args.key?(:customer_name)
943
+ end
944
+ end
945
+
946
+ # Common data that is in each API response.
947
+ class ResponseMetadata
948
+ include Google::Apis::Core::Hashable
949
+
950
+ # Debug information about this request.
951
+ # Corresponds to the JSON property `debugInfo`
952
+ # @return [Google::Apis::PartnersV2::DebugInfo]
953
+ attr_accessor :debug_info
954
+
955
+ def initialize(**args)
956
+ update!(**args)
957
+ end
958
+
959
+ # Update properties of this object
960
+ def update!(**args)
961
+ @debug_info = args[:debug_info] if args.key?(:debug_info)
962
+ end
963
+ end
964
+
965
+ # <a href="https://www.google.com/recaptcha/">reCaptcha</a> challenge info.
966
+ class RecaptchaChallenge
967
+ include Google::Apis::Core::Hashable
968
+
969
+ # The response to the reCaptcha challenge.
970
+ # Corresponds to the JSON property `response`
971
+ # @return [String]
972
+ attr_accessor :response
973
+
974
+ # The ID of the reCaptcha challenge.
975
+ # Corresponds to the JSON property `id`
976
+ # @return [String]
977
+ attr_accessor :id
978
+
979
+ def initialize(**args)
980
+ update!(**args)
981
+ end
982
+
983
+ # Update properties of this object
984
+ def update!(**args)
985
+ @response = args[:response] if args.key?(:response)
986
+ @id = args[:id] if args.key?(:id)
987
+ end
988
+ end
989
+
990
+ # Available Offers to be distributed.
991
+ class AvailableOffer
992
+ include Google::Apis::Core::Hashable
993
+
994
+ # Whether or not the list of qualified customers is definitely complete.
995
+ # Corresponds to the JSON property `qualifiedCustomersComplete`
996
+ # @return [Boolean]
997
+ attr_accessor :qualified_customers_complete
998
+ alias_method :qualified_customers_complete?, :qualified_customers_complete
999
+
1000
+ # ID of this offer.
1001
+ # Corresponds to the JSON property `id`
1002
+ # @return [String]
1003
+ attr_accessor :id
1004
+
1005
+ # Offer info by country.
1006
+ # Corresponds to the JSON property `countryOfferInfos`
1007
+ # @return [Array<Google::Apis::PartnersV2::CountryOfferInfo>]
1008
+ attr_accessor :country_offer_infos
1009
+
1010
+ # Type of offer.
1011
+ # Corresponds to the JSON property `offerType`
1012
+ # @return [String]
1013
+ attr_accessor :offer_type
1014
+
1015
+ # The maximum age of an account [in days] to be eligible.
1016
+ # Corresponds to the JSON property `maxAccountAge`
1017
+ # @return [Fixnum]
1018
+ attr_accessor :max_account_age
1019
+
1020
+ # Customers who qualify for this offer.
1021
+ # Corresponds to the JSON property `qualifiedCustomer`
1022
+ # @return [Array<Google::Apis::PartnersV2::OfferCustomer>]
1023
+ attr_accessor :qualified_customer
1024
+
1025
+ # Terms of the offer.
1026
+ # Corresponds to the JSON property `terms`
1027
+ # @return [String]
1028
+ attr_accessor :terms
1029
+
1030
+ # Should special text be shown on the offers page.
1031
+ # Corresponds to the JSON property `showSpecialOfferCopy`
1032
+ # @return [Boolean]
1033
+ attr_accessor :show_special_offer_copy
1034
+ alias_method :show_special_offer_copy?, :show_special_offer_copy
1035
+
1036
+ # The number of codes for this offer that are available for distribution.
1037
+ # Corresponds to the JSON property `available`
1038
+ # @return [Fixnum]
1039
+ attr_accessor :available
1040
+
1041
+ # Description of the offer.
1042
+ # Corresponds to the JSON property `description`
1043
+ # @return [String]
1044
+ attr_accessor :description
1045
+
1046
+ # Level of this offer.
1047
+ # Corresponds to the JSON property `offerLevel`
1048
+ # @return [String]
1049
+ attr_accessor :offer_level
1050
+
1051
+ # Name of the offer.
1052
+ # Corresponds to the JSON property `name`
1053
+ # @return [String]
1054
+ attr_accessor :name
1055
+
1056
+ def initialize(**args)
1057
+ update!(**args)
1058
+ end
1059
+
1060
+ # Update properties of this object
1061
+ def update!(**args)
1062
+ @qualified_customers_complete = args[:qualified_customers_complete] if args.key?(:qualified_customers_complete)
1063
+ @id = args[:id] if args.key?(:id)
1064
+ @country_offer_infos = args[:country_offer_infos] if args.key?(:country_offer_infos)
1065
+ @offer_type = args[:offer_type] if args.key?(:offer_type)
1066
+ @max_account_age = args[:max_account_age] if args.key?(:max_account_age)
1067
+ @qualified_customer = args[:qualified_customer] if args.key?(:qualified_customer)
1068
+ @terms = args[:terms] if args.key?(:terms)
1069
+ @show_special_offer_copy = args[:show_special_offer_copy] if args.key?(:show_special_offer_copy)
1070
+ @available = args[:available] if args.key?(:available)
1071
+ @description = args[:description] if args.key?(:description)
1072
+ @offer_level = args[:offer_level] if args.key?(:offer_level)
1073
+ @name = args[:name] if args.key?(:name)
1074
+ end
1075
+ end
1076
+
1077
+ # An object representing a latitude/longitude pair. This is expressed as a pair
1078
+ # of doubles representing degrees latitude and degrees longitude. Unless
1079
+ # specified otherwise, this must conform to the
1080
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
1081
+ # standard</a>. Values must be within normalized ranges.
1082
+ # Example of normalization code in Python:
1083
+ # def NormalizeLongitude(longitude):
1084
+ # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
1085
+ # q, r = divmod(longitude, 360.0)
1086
+ # if r > 180.0 or (r == 180.0 and q <= -1.0):
1087
+ # return r - 360.0
1088
+ # return r
1089
+ # def NormalizeLatLng(latitude, longitude):
1090
+ # """Wraps decimal degrees latitude and longitude to
1091
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
1092
+ # r = latitude % 360.0
1093
+ # if r <= 90.0:
1094
+ # return r, NormalizeLongitude(longitude)
1095
+ # elif r >= 270.0:
1096
+ # return r - 360, NormalizeLongitude(longitude)
1097
+ # else:
1098
+ # return 180 - r, NormalizeLongitude(longitude + 180.0)
1099
+ # assert 180.0 == NormalizeLongitude(180.0)
1100
+ # assert -180.0 == NormalizeLongitude(-180.0)
1101
+ # assert -179.0 == NormalizeLongitude(181.0)
1102
+ # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
1103
+ # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
1104
+ # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
1105
+ # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
1106
+ # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
1107
+ # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
1108
+ # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
1109
+ # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
1110
+ # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
1111
+ # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
1112
+ # The code in logs/storage/validator/logs_validator_traits.cc treats this type
1113
+ # as if it were annotated as ST_LOCATION.
1114
+ class LatLng
1115
+ include Google::Apis::Core::Hashable
1116
+
1117
+ # The longitude in degrees. It must be in the range [-180.0, +180.0].
1118
+ # Corresponds to the JSON property `longitude`
1119
+ # @return [Float]
1120
+ attr_accessor :longitude
1121
+
1122
+ # The latitude in degrees. It must be in the range [-90.0, +90.0].
1123
+ # Corresponds to the JSON property `latitude`
1124
+ # @return [Float]
1125
+ attr_accessor :latitude
1126
+
1127
+ def initialize(**args)
1128
+ update!(**args)
1129
+ end
1130
+
1131
+ # Update properties of this object
1132
+ def update!(**args)
1133
+ @longitude = args[:longitude] if args.key?(:longitude)
1134
+ @latitude = args[:latitude] if args.key?(:latitude)
1135
+ end
1136
+ end
1137
+
1138
+ # Represents an amount of money with its currency type.
1139
+ class Money
83
1140
  include Google::Apis::Core::Hashable
84
1141
 
85
- # Values to use instead of the user's respective defaults. These are only
86
- # honored by whitelisted products.
87
- # Corresponds to the JSON property `userOverrides`
88
- # @return [Google::Apis::PartnersV2::UserOverrides]
89
- attr_accessor :user_overrides
90
-
91
- # Locale to use for the current request.
92
- # Corresponds to the JSON property `locale`
1142
+ # The whole units of the amount.
1143
+ # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
1144
+ # Corresponds to the JSON property `units`
93
1145
  # @return [String]
94
- attr_accessor :locale
1146
+ attr_accessor :units
95
1147
 
96
- # Google Partners session ID.
97
- # Corresponds to the JSON property `partnersSessionId`
1148
+ # The 3-letter currency code defined in ISO 4217.
1149
+ # Corresponds to the JSON property `currencyCode`
98
1150
  # @return [String]
99
- attr_accessor :partners_session_id
100
-
101
- # Experiment IDs the current request belongs to.
102
- # Corresponds to the JSON property `experimentIds`
103
- # @return [Array<String>]
104
- attr_accessor :experiment_ids
1151
+ attr_accessor :currency_code
105
1152
 
106
- # Source of traffic for the current request.
107
- # Corresponds to the JSON property `trafficSource`
108
- # @return [Google::Apis::PartnersV2::TrafficSource]
109
- attr_accessor :traffic_source
1153
+ # Number of nano (10^-9) units of the amount.
1154
+ # The value must be between -999,999,999 and +999,999,999 inclusive.
1155
+ # If `units` is positive, `nanos` must be positive or zero.
1156
+ # If `units` is zero, `nanos` can be positive, zero, or negative.
1157
+ # If `units` is negative, `nanos` must be negative or zero.
1158
+ # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1159
+ # Corresponds to the JSON property `nanos`
1160
+ # @return [Fixnum]
1161
+ attr_accessor :nanos
110
1162
 
111
1163
  def initialize(**args)
112
1164
  update!(**args)
@@ -114,28 +1166,32 @@ module Google
114
1166
 
115
1167
  # Update properties of this object
116
1168
  def update!(**args)
117
- @user_overrides = args[:user_overrides] if args.key?(:user_overrides)
118
- @locale = args[:locale] if args.key?(:locale)
119
- @partners_session_id = args[:partners_session_id] if args.key?(:partners_session_id)
120
- @experiment_ids = args[:experiment_ids] if args.key?(:experiment_ids)
121
- @traffic_source = args[:traffic_source] if args.key?(:traffic_source)
1169
+ @units = args[:units] if args.key?(:units)
1170
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
1171
+ @nanos = args[:nanos] if args.key?(:nanos)
122
1172
  end
123
1173
  end
124
1174
 
125
- # Values to use instead of the user's respective defaults. These are only
126
- # honored by whitelisted products.
127
- class UserOverrides
1175
+ # Analytics aggregated data for a `Company` for a given date range.
1176
+ class AnalyticsSummary
128
1177
  include Google::Apis::Core::Hashable
129
1178
 
130
- # IP address to use instead of the user's geo-located IP address.
131
- # Corresponds to the JSON property `ipAddress`
132
- # @return [String]
133
- attr_accessor :ip_address
1179
+ # Aggregated number of profile views for the `Company` for given date range.
1180
+ # Corresponds to the JSON property `profileViewsCount`
1181
+ # @return [Fixnum]
1182
+ attr_accessor :profile_views_count
134
1183
 
135
- # Logged-in user ID to impersonate instead of the user's ID.
136
- # Corresponds to the JSON property `userId`
137
- # @return [String]
138
- attr_accessor :user_id
1184
+ # Aggregated number of times users saw the `Company`
1185
+ # in Google Partners Search results for given date range.
1186
+ # Corresponds to the JSON property `searchViewsCount`
1187
+ # @return [Fixnum]
1188
+ attr_accessor :search_views_count
1189
+
1190
+ # Aggregated number of times users contacted the `Company`
1191
+ # for given date range.
1192
+ # Corresponds to the JSON property `contactsCount`
1193
+ # @return [Fixnum]
1194
+ attr_accessor :contacts_count
139
1195
 
140
1196
  def initialize(**args)
141
1197
  update!(**args)
@@ -143,27 +1199,36 @@ module Google
143
1199
 
144
1200
  # Update properties of this object
145
1201
  def update!(**args)
146
- @ip_address = args[:ip_address] if args.key?(:ip_address)
147
- @user_id = args[:user_id] if args.key?(:user_id)
1202
+ @profile_views_count = args[:profile_views_count] if args.key?(:profile_views_count)
1203
+ @search_views_count = args[:search_views_count] if args.key?(:search_views_count)
1204
+ @contacts_count = args[:contacts_count] if args.key?(:contacts_count)
148
1205
  end
149
1206
  end
150
1207
 
151
- # Source of traffic for the current request.
152
- class TrafficSource
1208
+ # Request message for
1209
+ # LogClientMessage.
1210
+ class LogMessageRequest
153
1211
  include Google::Apis::Core::Hashable
154
1212
 
155
- # Identifier to indicate where the traffic comes from. An identifier has
156
- # multiple letters created by a team which redirected the traffic to us.
157
- # Corresponds to the JSON property `trafficSourceId`
1213
+ # Details about the client message.
1214
+ # Corresponds to the JSON property `details`
158
1215
  # @return [String]
159
- attr_accessor :traffic_source_id
1216
+ attr_accessor :details
160
1217
 
161
- # Second level identifier to indicate where the traffic comes from. An
162
- # identifier has multiple letters created by a team which redirected the traffic
163
- # to us.
164
- # Corresponds to the JSON property `trafficSubId`
1218
+ # Map of client info, such as URL, browser navigator, browser platform, etc.
1219
+ # Corresponds to the JSON property `clientInfo`
1220
+ # @return [Hash<String,String>]
1221
+ attr_accessor :client_info
1222
+
1223
+ # Common data that is in each API request.
1224
+ # Corresponds to the JSON property `requestMetadata`
1225
+ # @return [Google::Apis::PartnersV2::RequestMetadata]
1226
+ attr_accessor :request_metadata
1227
+
1228
+ # Message level of client message.
1229
+ # Corresponds to the JSON property `level`
165
1230
  # @return [String]
166
- attr_accessor :traffic_sub_id
1231
+ attr_accessor :level
167
1232
 
168
1233
  def initialize(**args)
169
1234
  update!(**args)
@@ -171,24 +1236,31 @@ module Google
171
1236
 
172
1237
  # Update properties of this object
173
1238
  def update!(**args)
174
- @traffic_source_id = args[:traffic_source_id] if args.key?(:traffic_source_id)
175
- @traffic_sub_id = args[:traffic_sub_id] if args.key?(:traffic_sub_id)
1239
+ @details = args[:details] if args.key?(:details)
1240
+ @client_info = args[:client_info] if args.key?(:client_info)
1241
+ @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
1242
+ @level = args[:level] if args.key?(:level)
176
1243
  end
177
1244
  end
178
1245
 
179
- # Key value data pair for an event.
180
- class EventData
1246
+ # Debug information about this request.
1247
+ class DebugInfo
181
1248
  include Google::Apis::Core::Hashable
182
1249
 
183
- # Data type.
184
- # Corresponds to the JSON property `key`
1250
+ # Info about the server that serviced this request.
1251
+ # Corresponds to the JSON property `serverInfo`
185
1252
  # @return [String]
186
- attr_accessor :key
1253
+ attr_accessor :server_info
187
1254
 
188
- # Data values.
189
- # Corresponds to the JSON property `values`
190
- # @return [Array<String>]
191
- attr_accessor :values
1255
+ # Server-side debug stack trace.
1256
+ # Corresponds to the JSON property `serverTraceInfo`
1257
+ # @return [String]
1258
+ attr_accessor :server_trace_info
1259
+
1260
+ # URL of the service that handled this request.
1261
+ # Corresponds to the JSON property `serviceUrl`
1262
+ # @return [String]
1263
+ attr_accessor :service_url
192
1264
 
193
1265
  def initialize(**args)
194
1266
  update!(**args)
@@ -196,8 +1268,9 @@ module Google
196
1268
 
197
1269
  # Update properties of this object
198
1270
  def update!(**args)
199
- @key = args[:key] if args.key?(:key)
200
- @values = args[:values] if args.key?(:values)
1271
+ @server_info = args[:server_info] if args.key?(:server_info)
1272
+ @server_trace_info = args[:server_trace_info] if args.key?(:server_trace_info)
1273
+ @service_url = args[:service_url] if args.key?(:service_url)
201
1274
  end
202
1275
  end
203
1276
 
@@ -206,55 +1279,83 @@ module Google
206
1279
  class Lead
207
1280
  include Google::Apis::Core::Hashable
208
1281
 
209
- # ID of the lead.
210
- # Corresponds to the JSON property `id`
1282
+ # Represents an amount of money with its currency type.
1283
+ # Corresponds to the JSON property `minMonthlyBudget`
1284
+ # @return [Google::Apis::PartnersV2::Money]
1285
+ attr_accessor :min_monthly_budget
1286
+
1287
+ # First name of lead source.
1288
+ # Corresponds to the JSON property `givenName`
211
1289
  # @return [String]
212
- attr_accessor :id
1290
+ attr_accessor :given_name
213
1291
 
214
- # Type of lead.
215
- # Corresponds to the JSON property `type`
1292
+ # Language code of the lead's language preference, as defined by
1293
+ # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
1294
+ # (IETF BCP 47, "Tags for Identifying Languages").
1295
+ # Corresponds to the JSON property `languageCode`
216
1296
  # @return [String]
217
- attr_accessor :type
1297
+ attr_accessor :language_code
1298
+
1299
+ # Website URL of lead source.
1300
+ # Corresponds to the JSON property `websiteUrl`
1301
+ # @return [String]
1302
+ attr_accessor :website_url
1303
+
1304
+ # The lead's state in relation to the company.
1305
+ # Corresponds to the JSON property `state`
1306
+ # @return [String]
1307
+ attr_accessor :state
1308
+
1309
+ # List of reasons for using Google Partner Search and creating a lead.
1310
+ # Corresponds to the JSON property `gpsMotivations`
1311
+ # @return [Array<String>]
1312
+ attr_accessor :gps_motivations
218
1313
 
219
1314
  # Email address of lead source.
220
1315
  # Corresponds to the JSON property `email`
221
1316
  # @return [String]
222
1317
  attr_accessor :email
223
1318
 
224
- # First name of lead source.
225
- # Corresponds to the JSON property `givenName`
226
- # @return [String]
227
- attr_accessor :given_name
228
-
229
1319
  # Last name of lead source.
230
1320
  # Corresponds to the JSON property `familyName`
231
1321
  # @return [String]
232
1322
  attr_accessor :family_name
233
1323
 
234
- # Website URL of lead source.
235
- # Corresponds to the JSON property `websiteUrl`
1324
+ # ID of the lead.
1325
+ # Corresponds to the JSON property `id`
236
1326
  # @return [String]
237
- attr_accessor :website_url
1327
+ attr_accessor :id
1328
+
1329
+ # Comments lead source gave.
1330
+ # Corresponds to the JSON property `comments`
1331
+ # @return [String]
1332
+ attr_accessor :comments
238
1333
 
239
1334
  # Phone number of lead source.
240
1335
  # Corresponds to the JSON property `phoneNumber`
241
1336
  # @return [String]
242
1337
  attr_accessor :phone_number
243
1338
 
244
- # Comments lead source gave.
245
- # Corresponds to the JSON property `comments`
1339
+ # The AdWords Customer ID of the lead.
1340
+ # Corresponds to the JSON property `adwordsCustomerId`
246
1341
  # @return [String]
247
- attr_accessor :comments
1342
+ attr_accessor :adwords_customer_id
248
1343
 
249
- # List of reasons for using Google Partner Search and creating a lead.
250
- # Corresponds to the JSON property `gpsMotivations`
251
- # @return [Array<String>]
252
- attr_accessor :gps_motivations
1344
+ # Timestamp of when this lead was created.
1345
+ # Corresponds to the JSON property `createTime`
1346
+ # @return [String]
1347
+ attr_accessor :create_time
253
1348
 
254
- # Represents an amount of money with its currency type.
255
- # Corresponds to the JSON property `minMonthlyBudget`
256
- # @return [Google::Apis::PartnersV2::Money]
257
- attr_accessor :min_monthly_budget
1349
+ # Whether or not the lead signed up for marketing emails
1350
+ # Corresponds to the JSON property `marketingOptIn`
1351
+ # @return [Boolean]
1352
+ attr_accessor :marketing_opt_in
1353
+ alias_method :marketing_opt_in?, :marketing_opt_in
1354
+
1355
+ # Type of lead.
1356
+ # Corresponds to the JSON property `type`
1357
+ # @return [String]
1358
+ attr_accessor :type
258
1359
 
259
1360
  def initialize(**args)
260
1361
  update!(**args)
@@ -262,63 +1363,185 @@ module Google
262
1363
 
263
1364
  # Update properties of this object
264
1365
  def update!(**args)
265
- @id = args[:id] if args.key?(:id)
266
- @type = args[:type] if args.key?(:type)
267
- @email = args[:email] if args.key?(:email)
1366
+ @min_monthly_budget = args[:min_monthly_budget] if args.key?(:min_monthly_budget)
268
1367
  @given_name = args[:given_name] if args.key?(:given_name)
269
- @family_name = args[:family_name] if args.key?(:family_name)
1368
+ @language_code = args[:language_code] if args.key?(:language_code)
270
1369
  @website_url = args[:website_url] if args.key?(:website_url)
271
- @phone_number = args[:phone_number] if args.key?(:phone_number)
272
- @comments = args[:comments] if args.key?(:comments)
1370
+ @state = args[:state] if args.key?(:state)
273
1371
  @gps_motivations = args[:gps_motivations] if args.key?(:gps_motivations)
274
- @min_monthly_budget = args[:min_monthly_budget] if args.key?(:min_monthly_budget)
1372
+ @email = args[:email] if args.key?(:email)
1373
+ @family_name = args[:family_name] if args.key?(:family_name)
1374
+ @id = args[:id] if args.key?(:id)
1375
+ @comments = args[:comments] if args.key?(:comments)
1376
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
1377
+ @adwords_customer_id = args[:adwords_customer_id] if args.key?(:adwords_customer_id)
1378
+ @create_time = args[:create_time] if args.key?(:create_time)
1379
+ @marketing_opt_in = args[:marketing_opt_in] if args.key?(:marketing_opt_in)
1380
+ @type = args[:type] if args.key?(:type)
275
1381
  end
276
1382
  end
277
1383
 
278
- # Represents an amount of money with its currency type.
279
- class Money
1384
+ # Response message for
1385
+ # ListUserStates.
1386
+ class ListUserStatesResponse
280
1387
  include Google::Apis::Core::Hashable
281
1388
 
282
- # The 3-letter currency code defined in ISO 4217.
283
- # Corresponds to the JSON property `currencyCode`
1389
+ # User's states.
1390
+ # Corresponds to the JSON property `userStates`
1391
+ # @return [Array<String>]
1392
+ attr_accessor :user_states
1393
+
1394
+ # Common data that is in each API response.
1395
+ # Corresponds to the JSON property `responseMetadata`
1396
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
1397
+ attr_accessor :response_metadata
1398
+
1399
+ def initialize(**args)
1400
+ update!(**args)
1401
+ end
1402
+
1403
+ # Update properties of this object
1404
+ def update!(**args)
1405
+ @user_states = args[:user_states] if args.key?(:user_states)
1406
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1407
+ end
1408
+ end
1409
+
1410
+ # A CompanyRelation resource representing information about a user's
1411
+ # affiliation and standing with a company in Partners.
1412
+ class CompanyRelation
1413
+ include Google::Apis::Core::Hashable
1414
+
1415
+ # The timestamp when the user was approved.
1416
+ # @OutputOnly
1417
+ # Corresponds to the JSON property `resolvedTimestamp`
284
1418
  # @return [String]
285
- attr_accessor :currency_code
1419
+ attr_accessor :resolved_timestamp
286
1420
 
287
- # The whole units of the amount. For example if `currencyCode` is `"USD"`, then
288
- # 1 unit is one US dollar.
289
- # Corresponds to the JSON property `units`
1421
+ # Indicates if the user is an admin for this company.
1422
+ # Corresponds to the JSON property `companyAdmin`
1423
+ # @return [Boolean]
1424
+ attr_accessor :company_admin
1425
+ alias_method :company_admin?, :company_admin
1426
+
1427
+ # The flag that indicates if the company is pending verification.
1428
+ # Corresponds to the JSON property `isPending`
1429
+ # @return [Boolean]
1430
+ attr_accessor :is_pending
1431
+ alias_method :is_pending?, :is_pending
1432
+
1433
+ # The primary address for this company.
1434
+ # Corresponds to the JSON property `address`
290
1435
  # @return [String]
291
- attr_accessor :units
1436
+ attr_accessor :address
292
1437
 
293
- # Number of nano (10^-9) units of the amount. The value must be between -999,999,
294
- # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
295
- # positive or zero. If `units` is zero, `nanos` can be positive, zero, or
296
- # negative. If `units` is negative, `nanos` must be negative or zero. For
297
- # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
298
- # Corresponds to the JSON property `nanos`
299
- # @return [Fixnum]
300
- attr_accessor :nanos
1438
+ # The timestamp of when affiliation was requested.
1439
+ # @OutputOnly
1440
+ # Corresponds to the JSON property `creationTime`
1441
+ # @return [String]
1442
+ attr_accessor :creation_time
1443
+
1444
+ # The state of relationship, in terms of approvals.
1445
+ # Corresponds to the JSON property `state`
1446
+ # @return [String]
1447
+ attr_accessor :state
1448
+
1449
+ # The AdWords manager account # associated this company.
1450
+ # Corresponds to the JSON property `managerAccount`
1451
+ # @return [String]
1452
+ attr_accessor :manager_account
1453
+
1454
+ # The name (in the company's primary language) for the company.
1455
+ # Corresponds to the JSON property `name`
1456
+ # @return [String]
1457
+ attr_accessor :name
1458
+
1459
+ # The segment the company is classified as.
1460
+ # Corresponds to the JSON property `segment`
1461
+ # @return [Array<String>]
1462
+ attr_accessor :segment
1463
+
1464
+ # Whether the company is a Partner.
1465
+ # Corresponds to the JSON property `badgeTier`
1466
+ # @return [String]
1467
+ attr_accessor :badge_tier
1468
+
1469
+ # The list of Google Partners specialization statuses for the company.
1470
+ # Corresponds to the JSON property `specializationStatus`
1471
+ # @return [Array<Google::Apis::PartnersV2::SpecializationStatus>]
1472
+ attr_accessor :specialization_status
1473
+
1474
+ # The phone number for the company's primary address.
1475
+ # Corresponds to the JSON property `phoneNumber`
1476
+ # @return [String]
1477
+ attr_accessor :phone_number
1478
+
1479
+ # The website URL for this company.
1480
+ # Corresponds to the JSON property `website`
1481
+ # @return [String]
1482
+ attr_accessor :website
1483
+
1484
+ # The ID of the company. There may be no id if this is a
1485
+ # pending company.5
1486
+ # Corresponds to the JSON property `companyId`
1487
+ # @return [String]
1488
+ attr_accessor :company_id
1489
+
1490
+ # A URL to a profile photo, e.g. a G+ profile photo.
1491
+ # Corresponds to the JSON property `logoUrl`
1492
+ # @return [String]
1493
+ attr_accessor :logo_url
301
1494
 
302
1495
  def initialize(**args)
303
1496
  update!(**args)
304
1497
  end
305
1498
 
306
1499
  # Update properties of this object
307
- def update!(**args)
308
- @currency_code = args[:currency_code] if args.key?(:currency_code)
309
- @units = args[:units] if args.key?(:units)
310
- @nanos = args[:nanos] if args.key?(:nanos)
1500
+ def update!(**args)
1501
+ @resolved_timestamp = args[:resolved_timestamp] if args.key?(:resolved_timestamp)
1502
+ @company_admin = args[:company_admin] if args.key?(:company_admin)
1503
+ @is_pending = args[:is_pending] if args.key?(:is_pending)
1504
+ @address = args[:address] if args.key?(:address)
1505
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
1506
+ @state = args[:state] if args.key?(:state)
1507
+ @manager_account = args[:manager_account] if args.key?(:manager_account)
1508
+ @name = args[:name] if args.key?(:name)
1509
+ @segment = args[:segment] if args.key?(:segment)
1510
+ @badge_tier = args[:badge_tier] if args.key?(:badge_tier)
1511
+ @specialization_status = args[:specialization_status] if args.key?(:specialization_status)
1512
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
1513
+ @website = args[:website] if args.key?(:website)
1514
+ @company_id = args[:company_id] if args.key?(:company_id)
1515
+ @logo_url = args[:logo_url] if args.key?(:logo_url)
311
1516
  end
312
1517
  end
313
1518
 
314
- # Response message for LogUserEvent.
315
- class LogUserEventResponse
1519
+ # Represents a whole calendar date, e.g. date of birth. The time of day and
1520
+ # time zone are either specified elsewhere or are not significant. The date
1521
+ # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
1522
+ # represent a year and month where the day is not significant, e.g. credit card
1523
+ # expiration date. The year may be 0 to represent a month and day independent
1524
+ # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
1525
+ # and `google.protobuf.Timestamp`.
1526
+ class Date
316
1527
  include Google::Apis::Core::Hashable
317
1528
 
318
- # Common data that is in each API response.
319
- # Corresponds to the JSON property `responseMetadata`
320
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
321
- attr_accessor :response_metadata
1529
+ # Month of year. Must be from 1 to 12.
1530
+ # Corresponds to the JSON property `month`
1531
+ # @return [Fixnum]
1532
+ attr_accessor :month
1533
+
1534
+ # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
1535
+ # a year.
1536
+ # Corresponds to the JSON property `year`
1537
+ # @return [Fixnum]
1538
+ attr_accessor :year
1539
+
1540
+ # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
1541
+ # if specifying a year/month where the day is not significant.
1542
+ # Corresponds to the JSON property `day`
1543
+ # @return [Fixnum]
1544
+ attr_accessor :day
322
1545
 
323
1546
  def initialize(**args)
324
1547
  update!(**args)
@@ -326,47 +1549,48 @@ module Google
326
1549
 
327
1550
  # Update properties of this object
328
1551
  def update!(**args)
329
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1552
+ @month = args[:month] if args.key?(:month)
1553
+ @year = args[:year] if args.key?(:year)
1554
+ @day = args[:day] if args.key?(:day)
330
1555
  end
331
1556
  end
332
1557
 
333
- # Common data that is in each API response.
334
- class ResponseMetadata
1558
+ # A generic empty message that you can re-use to avoid defining duplicated
1559
+ # empty messages in your APIs. A typical example is to use it as the request
1560
+ # or the response type of an API method. For instance:
1561
+ # service Foo `
1562
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1563
+ # `
1564
+ # The JSON representation for `Empty` is empty JSON object ````.
1565
+ class Empty
335
1566
  include Google::Apis::Core::Hashable
336
1567
 
337
- # Debug information about this request.
338
- # Corresponds to the JSON property `debugInfo`
339
- # @return [Google::Apis::PartnersV2::DebugInfo]
340
- attr_accessor :debug_info
341
-
342
1568
  def initialize(**args)
343
1569
  update!(**args)
344
1570
  end
345
1571
 
346
1572
  # Update properties of this object
347
1573
  def update!(**args)
348
- @debug_info = args[:debug_info] if args.key?(:debug_info)
349
1574
  end
350
1575
  end
351
1576
 
352
- # Debug information about this request.
353
- class DebugInfo
1577
+ # Source of traffic for the current request.
1578
+ class TrafficSource
354
1579
  include Google::Apis::Core::Hashable
355
1580
 
356
- # Info about the server that serviced this request.
357
- # Corresponds to the JSON property `serverInfo`
358
- # @return [String]
359
- attr_accessor :server_info
360
-
361
- # URL of the service that handled this request.
362
- # Corresponds to the JSON property `serviceUrl`
1581
+ # Identifier to indicate where the traffic comes from.
1582
+ # An identifier has multiple letters created by a team which redirected the
1583
+ # traffic to us.
1584
+ # Corresponds to the JSON property `trafficSourceId`
363
1585
  # @return [String]
364
- attr_accessor :service_url
1586
+ attr_accessor :traffic_source_id
365
1587
 
366
- # Server-side debug stack trace.
367
- # Corresponds to the JSON property `serverTraceInfo`
1588
+ # Second level identifier to indicate where the traffic comes from.
1589
+ # An identifier has multiple letters created by a team which redirected the
1590
+ # traffic to us.
1591
+ # Corresponds to the JSON property `trafficSubId`
368
1592
  # @return [String]
369
- attr_accessor :server_trace_info
1593
+ attr_accessor :traffic_sub_id
370
1594
 
371
1595
  def initialize(**args)
372
1596
  update!(**args)
@@ -374,14 +1598,13 @@ module Google
374
1598
 
375
1599
  # Update properties of this object
376
1600
  def update!(**args)
377
- @server_info = args[:server_info] if args.key?(:server_info)
378
- @service_url = args[:service_url] if args.key?(:service_url)
379
- @server_trace_info = args[:server_trace_info] if args.key?(:server_trace_info)
1601
+ @traffic_source_id = args[:traffic_source_id] if args.key?(:traffic_source_id)
1602
+ @traffic_sub_id = args[:traffic_sub_id] if args.key?(:traffic_sub_id)
380
1603
  end
381
1604
  end
382
1605
 
383
- # Request message for LogClientMessage.
384
- class LogMessageRequest
1606
+ # Request message for CreateLead.
1607
+ class CreateLeadRequest
385
1608
  include Google::Apis::Core::Hashable
386
1609
 
387
1610
  # Common data that is in each API request.
@@ -389,20 +1612,16 @@ module Google
389
1612
  # @return [Google::Apis::PartnersV2::RequestMetadata]
390
1613
  attr_accessor :request_metadata
391
1614
 
392
- # Message level of client message.
393
- # Corresponds to the JSON property `level`
394
- # @return [String]
395
- attr_accessor :level
396
-
397
- # Details about the client message.
398
- # Corresponds to the JSON property `details`
399
- # @return [String]
400
- attr_accessor :details
1615
+ # A lead resource that represents an advertiser contact for a `Company`. These
1616
+ # are usually generated via Google Partner Search (the advertiser portal).
1617
+ # Corresponds to the JSON property `lead`
1618
+ # @return [Google::Apis::PartnersV2::Lead]
1619
+ attr_accessor :lead
401
1620
 
402
- # Map of client info, such as URL, browser navigator, browser platform, etc.
403
- # Corresponds to the JSON property `clientInfo`
404
- # @return [Hash<String,String>]
405
- attr_accessor :client_info
1621
+ # <a href="https://www.google.com/recaptcha/">reCaptcha</a> challenge info.
1622
+ # Corresponds to the JSON property `recaptchaChallenge`
1623
+ # @return [Google::Apis::PartnersV2::RecaptchaChallenge]
1624
+ attr_accessor :recaptcha_challenge
406
1625
 
407
1626
  def initialize(**args)
408
1627
  update!(**args)
@@ -411,44 +1630,40 @@ module Google
411
1630
  # Update properties of this object
412
1631
  def update!(**args)
413
1632
  @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
414
- @level = args[:level] if args.key?(:level)
415
- @details = args[:details] if args.key?(:details)
416
- @client_info = args[:client_info] if args.key?(:client_info)
1633
+ @lead = args[:lead] if args.key?(:lead)
1634
+ @recaptcha_challenge = args[:recaptcha_challenge] if args.key?(:recaptcha_challenge)
417
1635
  end
418
1636
  end
419
1637
 
420
- # Response message for LogClientMessage.
421
- class LogMessageResponse
1638
+ # Common data that is in each API request.
1639
+ class RequestMetadata
422
1640
  include Google::Apis::Core::Hashable
423
1641
 
424
- # Common data that is in each API response.
425
- # Corresponds to the JSON property `responseMetadata`
426
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
427
- attr_accessor :response_metadata
428
-
429
- def initialize(**args)
430
- update!(**args)
431
- end
1642
+ # Experiment IDs the current request belongs to.
1643
+ # Corresponds to the JSON property `experimentIds`
1644
+ # @return [Array<String>]
1645
+ attr_accessor :experiment_ids
432
1646
 
433
- # Update properties of this object
434
- def update!(**args)
435
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
436
- end
437
- end
1647
+ # Source of traffic for the current request.
1648
+ # Corresponds to the JSON property `trafficSource`
1649
+ # @return [Google::Apis::PartnersV2::TrafficSource]
1650
+ attr_accessor :traffic_source
438
1651
 
439
- # Response message for ListUserStates.
440
- class ListUserStatesResponse
441
- include Google::Apis::Core::Hashable
1652
+ # Locale to use for the current request.
1653
+ # Corresponds to the JSON property `locale`
1654
+ # @return [String]
1655
+ attr_accessor :locale
442
1656
 
443
- # Common data that is in each API response.
444
- # Corresponds to the JSON property `responseMetadata`
445
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
446
- attr_accessor :response_metadata
1657
+ # Values to use instead of the user's respective defaults. These are only
1658
+ # honored by whitelisted products.
1659
+ # Corresponds to the JSON property `userOverrides`
1660
+ # @return [Google::Apis::PartnersV2::UserOverrides]
1661
+ attr_accessor :user_overrides
447
1662
 
448
- # User's states.
449
- # Corresponds to the JSON property `userStates`
450
- # @return [Array<String>]
451
- attr_accessor :user_states
1663
+ # Google Partners session ID.
1664
+ # Corresponds to the JSON property `partnersSessionId`
1665
+ # @return [String]
1666
+ attr_accessor :partners_session_id
452
1667
 
453
1668
  def initialize(**args)
454
1669
  update!(**args)
@@ -456,25 +1671,27 @@ module Google
456
1671
 
457
1672
  # Update properties of this object
458
1673
  def update!(**args)
459
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
460
- @user_states = args[:user_states] if args.key?(:user_states)
1674
+ @experiment_ids = args[:experiment_ids] if args.key?(:experiment_ids)
1675
+ @traffic_source = args[:traffic_source] if args.key?(:traffic_source)
1676
+ @locale = args[:locale] if args.key?(:locale)
1677
+ @user_overrides = args[:user_overrides] if args.key?(:user_overrides)
1678
+ @partners_session_id = args[:partners_session_id] if args.key?(:partners_session_id)
461
1679
  end
462
1680
  end
463
1681
 
464
- # Response message for GetCompany.
465
- class GetCompanyResponse
1682
+ # Key value data pair for an event.
1683
+ class EventData
466
1684
  include Google::Apis::Core::Hashable
467
1685
 
468
- # Common data that is in each API response.
469
- # Corresponds to the JSON property `responseMetadata`
470
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
471
- attr_accessor :response_metadata
1686
+ # Data type.
1687
+ # Corresponds to the JSON property `key`
1688
+ # @return [String]
1689
+ attr_accessor :key
472
1690
 
473
- # A company resource in the Google Partners API. Once certified, it qualifies
474
- # for being searched by advertisers.
475
- # Corresponds to the JSON property `company`
476
- # @return [Google::Apis::PartnersV2::Company]
477
- attr_accessor :company
1691
+ # Data values.
1692
+ # Corresponds to the JSON property `values`
1693
+ # @return [Array<String>]
1694
+ attr_accessor :values
478
1695
 
479
1696
  def initialize(**args)
480
1697
  update!(**args)
@@ -482,75 +1699,46 @@ module Google
482
1699
 
483
1700
  # Update properties of this object
484
1701
  def update!(**args)
485
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
486
- @company = args[:company] if args.key?(:company)
1702
+ @key = args[:key] if args.key?(:key)
1703
+ @values = args[:values] if args.key?(:values)
487
1704
  end
488
1705
  end
489
1706
 
490
- # A company resource in the Google Partners API. Once certified, it qualifies
491
- # for being searched by advertisers.
492
- class Company
1707
+ # A user's information on a specific exam.
1708
+ class ExamStatus
493
1709
  include Google::Apis::Core::Hashable
494
1710
 
495
- # The ID of the company.
496
- # Corresponds to the JSON property `id`
497
- # @return [String]
498
- attr_accessor :id
499
-
500
- # The name of the company.
501
- # Corresponds to the JSON property `name`
1711
+ # Date this exam is due to expire.
1712
+ # Corresponds to the JSON property `expiration`
502
1713
  # @return [String]
503
- attr_accessor :name
504
-
505
- # The list of localized info for the company.
506
- # Corresponds to the JSON property `localizedInfos`
507
- # @return [Array<Google::Apis::PartnersV2::LocalizedCompanyInfo>]
508
- attr_accessor :localized_infos
509
-
510
- # The list of company locations.
511
- # Corresponds to the JSON property `locations`
512
- # @return [Array<Google::Apis::PartnersV2::Location>]
513
- attr_accessor :locations
514
-
515
- # Represents an amount of money with its currency type.
516
- # Corresponds to the JSON property `convertedMinMonthlyBudget`
517
- # @return [Google::Apis::PartnersV2::Money]
518
- attr_accessor :converted_min_monthly_budget
519
-
520
- # Represents an amount of money with its currency type.
521
- # Corresponds to the JSON property `originalMinMonthlyBudget`
522
- # @return [Google::Apis::PartnersV2::Money]
523
- attr_accessor :original_min_monthly_budget
524
-
525
- # Basic information from a public profile.
526
- # Corresponds to the JSON property `publicProfile`
527
- # @return [Google::Apis::PartnersV2::PublicProfile]
528
- attr_accessor :public_profile
1714
+ attr_accessor :expiration
529
1715
 
530
- # The list of Google Partners certification statuses for the company.
531
- # Corresponds to the JSON property `certificationStatuses`
532
- # @return [Array<Google::Apis::PartnersV2::CertificationStatus>]
533
- attr_accessor :certification_statuses
1716
+ # Whether this exam is in the state of warning.
1717
+ # Corresponds to the JSON property `warning`
1718
+ # @return [Boolean]
1719
+ attr_accessor :warning
1720
+ alias_method :warning?, :warning
534
1721
 
535
- # Information related to the ranking of the company within the list of companies.
536
- # Corresponds to the JSON property `ranks`
537
- # @return [Array<Google::Apis::PartnersV2::Rank>]
538
- attr_accessor :ranks
1722
+ # The date the user last passed this exam.
1723
+ # Corresponds to the JSON property `lastPassed`
1724
+ # @return [String]
1725
+ attr_accessor :last_passed
539
1726
 
540
- # URL of the company's website.
541
- # Corresponds to the JSON property `websiteUrl`
1727
+ # The type of the exam.
1728
+ # Corresponds to the JSON property `examType`
542
1729
  # @return [String]
543
- attr_accessor :website_url
1730
+ attr_accessor :exam_type
544
1731
 
545
- # Industries the company can help with.
546
- # Corresponds to the JSON property `industries`
547
- # @return [Array<String>]
548
- attr_accessor :industries
1732
+ # Whether this exam has been passed and not expired.
1733
+ # Corresponds to the JSON property `passed`
1734
+ # @return [Boolean]
1735
+ attr_accessor :passed
1736
+ alias_method :passed?, :passed
549
1737
 
550
- # Services the company can help with.
551
- # Corresponds to the JSON property `services`
552
- # @return [Array<String>]
553
- attr_accessor :services
1738
+ # The date the user last taken this exam.
1739
+ # Corresponds to the JSON property `taken`
1740
+ # @return [String]
1741
+ attr_accessor :taken
554
1742
 
555
1743
  def initialize(**args)
556
1744
  update!(**args)
@@ -558,45 +1746,33 @@ module Google
558
1746
 
559
1747
  # Update properties of this object
560
1748
  def update!(**args)
561
- @id = args[:id] if args.key?(:id)
562
- @name = args[:name] if args.key?(:name)
563
- @localized_infos = args[:localized_infos] if args.key?(:localized_infos)
564
- @locations = args[:locations] if args.key?(:locations)
565
- @converted_min_monthly_budget = args[:converted_min_monthly_budget] if args.key?(:converted_min_monthly_budget)
566
- @original_min_monthly_budget = args[:original_min_monthly_budget] if args.key?(:original_min_monthly_budget)
567
- @public_profile = args[:public_profile] if args.key?(:public_profile)
568
- @certification_statuses = args[:certification_statuses] if args.key?(:certification_statuses)
569
- @ranks = args[:ranks] if args.key?(:ranks)
570
- @website_url = args[:website_url] if args.key?(:website_url)
571
- @industries = args[:industries] if args.key?(:industries)
572
- @services = args[:services] if args.key?(:services)
1749
+ @expiration = args[:expiration] if args.key?(:expiration)
1750
+ @warning = args[:warning] if args.key?(:warning)
1751
+ @last_passed = args[:last_passed] if args.key?(:last_passed)
1752
+ @exam_type = args[:exam_type] if args.key?(:exam_type)
1753
+ @passed = args[:passed] if args.key?(:passed)
1754
+ @taken = args[:taken] if args.key?(:taken)
573
1755
  end
574
1756
  end
575
1757
 
576
- # The localized company information.
577
- class LocalizedCompanyInfo
1758
+ # Response for ListOffer.
1759
+ class ListOffersResponse
578
1760
  include Google::Apis::Core::Hashable
579
1761
 
580
- # Language code of the localized company info, as defined by BCP 47 (IETF BCP 47,
581
- # "Tags for Identifying Languages").
582
- # Corresponds to the JSON property `languageCode`
583
- # @return [String]
584
- attr_accessor :language_code
585
-
586
- # Localized display name.
587
- # Corresponds to the JSON property `displayName`
588
- # @return [String]
589
- attr_accessor :display_name
1762
+ # Common data that is in each API response.
1763
+ # Corresponds to the JSON property `responseMetadata`
1764
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
1765
+ attr_accessor :response_metadata
590
1766
 
591
- # Localized brief description that the company uses to advertise themselves.
592
- # Corresponds to the JSON property `overview`
1767
+ # Reason why no Offers are available.
1768
+ # Corresponds to the JSON property `noOfferReason`
593
1769
  # @return [String]
594
- attr_accessor :overview
1770
+ attr_accessor :no_offer_reason
595
1771
 
596
- # List of country codes for the localized company info.
597
- # Corresponds to the JSON property `countryCodes`
598
- # @return [Array<String>]
599
- attr_accessor :country_codes
1772
+ # Available Offers to be distributed.
1773
+ # Corresponds to the JSON property `availableOffers`
1774
+ # @return [Array<Google::Apis::PartnersV2::AvailableOffer>]
1775
+ attr_accessor :available_offers
600
1776
 
601
1777
  def initialize(**args)
602
1778
  update!(**args)
@@ -604,44 +1780,35 @@ module Google
604
1780
 
605
1781
  # Update properties of this object
606
1782
  def update!(**args)
607
- @language_code = args[:language_code] if args.key?(:language_code)
608
- @display_name = args[:display_name] if args.key?(:display_name)
609
- @overview = args[:overview] if args.key?(:overview)
610
- @country_codes = args[:country_codes] if args.key?(:country_codes)
1783
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1784
+ @no_offer_reason = args[:no_offer_reason] if args.key?(:no_offer_reason)
1785
+ @available_offers = args[:available_offers] if args.key?(:available_offers)
611
1786
  end
612
1787
  end
613
1788
 
614
- # A location with address and geographic coordinates.
615
- class Location
1789
+ # Offer info by country.
1790
+ class CountryOfferInfo
616
1791
  include Google::Apis::Core::Hashable
617
1792
 
618
- # The complete address of the location.
619
- # Corresponds to the JSON property `address`
1793
+ # Country code for which offer codes may be requested.
1794
+ # Corresponds to the JSON property `offerCountryCode`
1795
+ # @return [String]
1796
+ attr_accessor :offer_country_code
1797
+
1798
+ # (localized) Spend X amount for that country's offer.
1799
+ # Corresponds to the JSON property `spendXAmount`
1800
+ # @return [String]
1801
+ attr_accessor :spend_x_amount
1802
+
1803
+ # Type of offer country is eligible for.
1804
+ # Corresponds to the JSON property `offerType`
620
1805
  # @return [String]
621
- attr_accessor :address
1806
+ attr_accessor :offer_type
622
1807
 
623
- # An object representing a latitude/longitude pair. This is expressed as a pair
624
- # of doubles representing degrees latitude and degrees longitude. Unless
625
- # specified otherwise, this must conform to the WGS84 standard. Values must be
626
- # within normalized ranges. Example of normalization code in Python: def
627
- # NormalizeLongitude(longitude): """Wrapsdecimal degrees longitude to [-180.0,
628
- # 180.0].""" q, r = divmod(longitude, 360.0) if r > 180.0 or (r == 180.0 and q <=
629
- # -1.0): return r - 360.0 return r def NormalizeLatLng(latitude, longitude): """
630
- # Wraps decimal degrees latitude and longitude to [-180.0, 180.0] and [-90.0, 90.
631
- # 0], respectively.""" r = latitude % 360.0 if r = 270.0: return r - 360,
632
- # NormalizeLongitude(longitude) else: return 180 - r, NormalizeLongitude(
633
- # longitude + 180.0) assert 180.0 == NormalizeLongitude(180.0) assert -180.0 ==
634
- # NormalizeLongitude(-180.0) assert -179.0 == NormalizeLongitude(181.0) assert (
635
- # 0.0, 0.0) == NormalizeLatLng(360.0, 0.0) assert (0.0, 0.0) == NormalizeLatLng(-
636
- # 360.0, 0.0) assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) assert (-85.0, -
637
- # 170.0) == NormalizeLatLng(-95.0, 10.0) assert (90.0, 10.0) == NormalizeLatLng(
638
- # 90.0, 10.0) assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) assert (0.0,
639
- # -170.0) == NormalizeLatLng(-180.0, 10.0) assert (0.0, -170.0) ==
640
- # NormalizeLatLng(180.0, 10.0) assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.
641
- # 0) assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
642
- # Corresponds to the JSON property `latLng`
643
- # @return [Google::Apis::PartnersV2::LatLng]
644
- attr_accessor :lat_lng
1808
+ # (localized) Get Y amount for that country's offer.
1809
+ # Corresponds to the JSON property `getYAmount`
1810
+ # @return [String]
1811
+ attr_accessor :get_y_amount
645
1812
 
646
1813
  def initialize(**args)
647
1814
  update!(**args)
@@ -649,42 +1816,36 @@ module Google
649
1816
 
650
1817
  # Update properties of this object
651
1818
  def update!(**args)
652
- @address = args[:address] if args.key?(:address)
653
- @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
1819
+ @offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code)
1820
+ @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount)
1821
+ @offer_type = args[:offer_type] if args.key?(:offer_type)
1822
+ @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount)
654
1823
  end
655
1824
  end
656
1825
 
657
- # An object representing a latitude/longitude pair. This is expressed as a pair
658
- # of doubles representing degrees latitude and degrees longitude. Unless
659
- # specified otherwise, this must conform to the WGS84 standard. Values must be
660
- # within normalized ranges. Example of normalization code in Python: def
661
- # NormalizeLongitude(longitude): """Wrapsdecimal degrees longitude to [-180.0,
662
- # 180.0].""" q, r = divmod(longitude, 360.0) if r > 180.0 or (r == 180.0 and q <=
663
- # -1.0): return r - 360.0 return r def NormalizeLatLng(latitude, longitude): """
664
- # Wraps decimal degrees latitude and longitude to [-180.0, 180.0] and [-90.0, 90.
665
- # 0], respectively.""" r = latitude % 360.0 if r = 270.0: return r - 360,
666
- # NormalizeLongitude(longitude) else: return 180 - r, NormalizeLongitude(
667
- # longitude + 180.0) assert 180.0 == NormalizeLongitude(180.0) assert -180.0 ==
668
- # NormalizeLongitude(-180.0) assert -179.0 == NormalizeLongitude(181.0) assert (
669
- # 0.0, 0.0) == NormalizeLatLng(360.0, 0.0) assert (0.0, 0.0) == NormalizeLatLng(-
670
- # 360.0, 0.0) assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) assert (-85.0, -
671
- # 170.0) == NormalizeLatLng(-95.0, 10.0) assert (90.0, 10.0) == NormalizeLatLng(
672
- # 90.0, 10.0) assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) assert (0.0,
673
- # -170.0) == NormalizeLatLng(-180.0, 10.0) assert (0.0, -170.0) ==
674
- # NormalizeLatLng(180.0, 10.0) assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.
675
- # 0) assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
676
- class LatLng
1826
+ # Response message for
1827
+ # ListCompanies.
1828
+ class ListCompaniesResponse
677
1829
  include Google::Apis::Core::Hashable
678
1830
 
679
- # The latitude in degrees. It must be in the range [-90.0, +90.0].
680
- # Corresponds to the JSON property `latitude`
681
- # @return [Float]
682
- attr_accessor :latitude
1831
+ # A token to retrieve next page of results.
1832
+ # Pass this value in the `ListCompaniesRequest.page_token` field in the
1833
+ # subsequent call to
1834
+ # ListCompanies to retrieve the
1835
+ # next page of results.
1836
+ # Corresponds to the JSON property `nextPageToken`
1837
+ # @return [String]
1838
+ attr_accessor :next_page_token
683
1839
 
684
- # The longitude in degrees. It must be in the range [-180.0, +180.0].
685
- # Corresponds to the JSON property `longitude`
686
- # @return [Float]
687
- attr_accessor :longitude
1840
+ # Common data that is in each API response.
1841
+ # Corresponds to the JSON property `responseMetadata`
1842
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
1843
+ attr_accessor :response_metadata
1844
+
1845
+ # The list of companies.
1846
+ # Corresponds to the JSON property `companies`
1847
+ # @return [Array<Google::Apis::PartnersV2::Company>]
1848
+ attr_accessor :companies
688
1849
 
689
1850
  def initialize(**args)
690
1851
  update!(**args)
@@ -692,34 +1853,60 @@ module Google
692
1853
 
693
1854
  # Update properties of this object
694
1855
  def update!(**args)
695
- @latitude = args[:latitude] if args.key?(:latitude)
696
- @longitude = args[:longitude] if args.key?(:longitude)
1856
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1857
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1858
+ @companies = args[:companies] if args.key?(:companies)
697
1859
  end
698
1860
  end
699
1861
 
700
- # Basic information from a public profile.
701
- class PublicProfile
1862
+ # Customers qualified for an offer.
1863
+ class OfferCustomer
702
1864
  include Google::Apis::Core::Hashable
703
1865
 
704
- # The ID which can be used to retrieve more details about the public profile.
705
- # Corresponds to the JSON property `id`
1866
+ # URL to the customer's AdWords page.
1867
+ # Corresponds to the JSON property `adwordsUrl`
706
1868
  # @return [String]
707
- attr_accessor :id
1869
+ attr_accessor :adwords_url
708
1870
 
709
- # The display name of the public profile.
710
- # Corresponds to the JSON property `displayName`
1871
+ # Time the customer was created.
1872
+ # Corresponds to the JSON property `creationTime`
711
1873
  # @return [String]
712
- attr_accessor :display_name
1874
+ attr_accessor :creation_time
713
1875
 
714
- # The URL of the public profile.
715
- # Corresponds to the JSON property `url`
1876
+ # Type of the offer
1877
+ # Corresponds to the JSON property `offerType`
716
1878
  # @return [String]
717
- attr_accessor :url
1879
+ attr_accessor :offer_type
718
1880
 
719
- # The URL to the main display image of the public profile.
720
- # Corresponds to the JSON property `displayImageUrl`
1881
+ # External CID for the customer.
1882
+ # Corresponds to the JSON property `externalCid`
721
1883
  # @return [String]
722
- attr_accessor :display_image_url
1884
+ attr_accessor :external_cid
1885
+
1886
+ # Country code of the customer.
1887
+ # Corresponds to the JSON property `countryCode`
1888
+ # @return [String]
1889
+ attr_accessor :country_code
1890
+
1891
+ # Days the customer is still eligible.
1892
+ # Corresponds to the JSON property `eligibilityDaysLeft`
1893
+ # @return [Fixnum]
1894
+ attr_accessor :eligibility_days_left
1895
+
1896
+ # Formatted Get Y amount with currency code.
1897
+ # Corresponds to the JSON property `getYAmount`
1898
+ # @return [String]
1899
+ attr_accessor :get_y_amount
1900
+
1901
+ # Name of the customer.
1902
+ # Corresponds to the JSON property `name`
1903
+ # @return [String]
1904
+ attr_accessor :name
1905
+
1906
+ # Formatted Spend X amount with currency code.
1907
+ # Corresponds to the JSON property `spendXAmount`
1908
+ # @return [String]
1909
+ attr_accessor :spend_x_amount
723
1910
 
724
1911
  def initialize(**args)
725
1912
  update!(**args)
@@ -727,10 +1914,15 @@ module Google
727
1914
 
728
1915
  # Update properties of this object
729
1916
  def update!(**args)
730
- @id = args[:id] if args.key?(:id)
731
- @display_name = args[:display_name] if args.key?(:display_name)
732
- @url = args[:url] if args.key?(:url)
733
- @display_image_url = args[:display_image_url] if args.key?(:display_image_url)
1917
+ @adwords_url = args[:adwords_url] if args.key?(:adwords_url)
1918
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
1919
+ @offer_type = args[:offer_type] if args.key?(:offer_type)
1920
+ @external_cid = args[:external_cid] if args.key?(:external_cid)
1921
+ @country_code = args[:country_code] if args.key?(:country_code)
1922
+ @eligibility_days_left = args[:eligibility_days_left] if args.key?(:eligibility_days_left)
1923
+ @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount)
1924
+ @name = args[:name] if args.key?(:name)
1925
+ @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount)
734
1926
  end
735
1927
  end
736
1928
 
@@ -738,15 +1930,10 @@ module Google
738
1930
  class CertificationStatus
739
1931
  include Google::Apis::Core::Hashable
740
1932
 
741
- # The type of the certification.
742
- # Corresponds to the JSON property `type`
743
- # @return [String]
744
- attr_accessor :type
745
-
746
- # List of certification exam statuses.
747
- # Corresponds to the JSON property `examStatuses`
748
- # @return [Array<Google::Apis::PartnersV2::CertificationExamStatus>]
749
- attr_accessor :exam_statuses
1933
+ # Number of people who are certified,
1934
+ # Corresponds to the JSON property `userCount`
1935
+ # @return [Fixnum]
1936
+ attr_accessor :user_count
750
1937
 
751
1938
  # Whether certification is passing.
752
1939
  # Corresponds to the JSON property `isCertified`
@@ -754,31 +1941,54 @@ module Google
754
1941
  attr_accessor :is_certified
755
1942
  alias_method :is_certified?, :is_certified
756
1943
 
1944
+ # List of certification exam statuses.
1945
+ # Corresponds to the JSON property `examStatuses`
1946
+ # @return [Array<Google::Apis::PartnersV2::CertificationExamStatus>]
1947
+ attr_accessor :exam_statuses
1948
+
1949
+ # The type of the certification.
1950
+ # Corresponds to the JSON property `type`
1951
+ # @return [String]
1952
+ attr_accessor :type
1953
+
757
1954
  def initialize(**args)
758
1955
  update!(**args)
759
1956
  end
760
1957
 
761
1958
  # Update properties of this object
762
1959
  def update!(**args)
763
- @type = args[:type] if args.key?(:type)
764
- @exam_statuses = args[:exam_statuses] if args.key?(:exam_statuses)
1960
+ @user_count = args[:user_count] if args.key?(:user_count)
765
1961
  @is_certified = args[:is_certified] if args.key?(:is_certified)
1962
+ @exam_statuses = args[:exam_statuses] if args.key?(:exam_statuses)
1963
+ @type = args[:type] if args.key?(:type)
766
1964
  end
767
1965
  end
768
1966
 
769
- # Status for a Google Partners certification exam.
770
- class CertificationExamStatus
1967
+ # The localized company information.
1968
+ class LocalizedCompanyInfo
771
1969
  include Google::Apis::Core::Hashable
772
1970
 
773
- # The type of certification exam.
774
- # Corresponds to the JSON property `type`
1971
+ # Language code of the localized company info, as defined by
1972
+ # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
1973
+ # (IETF BCP 47, "Tags for Identifying Languages").
1974
+ # Corresponds to the JSON property `languageCode`
775
1975
  # @return [String]
776
- attr_accessor :type
1976
+ attr_accessor :language_code
777
1977
 
778
- # The number of people who have passed the certification exam.
779
- # Corresponds to the JSON property `numberUsersPass`
780
- # @return [Fixnum]
781
- attr_accessor :number_users_pass
1978
+ # List of country codes for the localized company info.
1979
+ # Corresponds to the JSON property `countryCodes`
1980
+ # @return [Array<String>]
1981
+ attr_accessor :country_codes
1982
+
1983
+ # Localized brief description that the company uses to advertise themselves.
1984
+ # Corresponds to the JSON property `overview`
1985
+ # @return [String]
1986
+ attr_accessor :overview
1987
+
1988
+ # Localized display name.
1989
+ # Corresponds to the JSON property `displayName`
1990
+ # @return [String]
1991
+ attr_accessor :display_name
782
1992
 
783
1993
  def initialize(**args)
784
1994
  update!(**args)
@@ -786,24 +1996,68 @@ module Google
786
1996
 
787
1997
  # Update properties of this object
788
1998
  def update!(**args)
789
- @type = args[:type] if args.key?(:type)
790
- @number_users_pass = args[:number_users_pass] if args.key?(:number_users_pass)
1999
+ @language_code = args[:language_code] if args.key?(:language_code)
2000
+ @country_codes = args[:country_codes] if args.key?(:country_codes)
2001
+ @overview = args[:overview] if args.key?(:overview)
2002
+ @display_name = args[:display_name] if args.key?(:display_name)
791
2003
  end
792
2004
  end
793
2005
 
794
- # Information related to ranking of results.
795
- class Rank
2006
+ # Response message for
2007
+ # LogUserEvent.
2008
+ class LogUserEventResponse
796
2009
  include Google::Apis::Core::Hashable
797
2010
 
798
- # The type of rank.
799
- # Corresponds to the JSON property `type`
2011
+ # Common data that is in each API response.
2012
+ # Corresponds to the JSON property `responseMetadata`
2013
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
2014
+ attr_accessor :response_metadata
2015
+
2016
+ def initialize(**args)
2017
+ update!(**args)
2018
+ end
2019
+
2020
+ # Update properties of this object
2021
+ def update!(**args)
2022
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
2023
+ end
2024
+ end
2025
+
2026
+ # Response for ListOfferHistory.
2027
+ class ListOffersHistoryResponse
2028
+ include Google::Apis::Core::Hashable
2029
+
2030
+ # Historical offers meeting request.
2031
+ # Corresponds to the JSON property `offers`
2032
+ # @return [Array<Google::Apis::PartnersV2::HistoricalOffer>]
2033
+ attr_accessor :offers
2034
+
2035
+ # Supply this token in a ListOffersHistoryRequest to retrieve the next page.
2036
+ # Corresponds to the JSON property `nextPageToken`
800
2037
  # @return [String]
801
- attr_accessor :type
2038
+ attr_accessor :next_page_token
802
2039
 
803
- # The numerical value of the rank.
804
- # Corresponds to the JSON property `value`
805
- # @return [Float]
806
- attr_accessor :value
2040
+ # Common data that is in each API response.
2041
+ # Corresponds to the JSON property `responseMetadata`
2042
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
2043
+ attr_accessor :response_metadata
2044
+
2045
+ # True if the user has the option to show entire company history.
2046
+ # Corresponds to the JSON property `canShowEntireCompany`
2047
+ # @return [Boolean]
2048
+ attr_accessor :can_show_entire_company
2049
+ alias_method :can_show_entire_company?, :can_show_entire_company
2050
+
2051
+ # Number of results across all pages.
2052
+ # Corresponds to the JSON property `totalResults`
2053
+ # @return [Fixnum]
2054
+ attr_accessor :total_results
2055
+
2056
+ # True if this response is showing entire company history.
2057
+ # Corresponds to the JSON property `showingEntireCompany`
2058
+ # @return [Boolean]
2059
+ attr_accessor :showing_entire_company
2060
+ alias_method :showing_entire_company?, :showing_entire_company
807
2061
 
808
2062
  def initialize(**args)
809
2063
  update!(**args)
@@ -811,13 +2065,18 @@ module Google
811
2065
 
812
2066
  # Update properties of this object
813
2067
  def update!(**args)
814
- @type = args[:type] if args.key?(:type)
815
- @value = args[:value] if args.key?(:value)
2068
+ @offers = args[:offers] if args.key?(:offers)
2069
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2070
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
2071
+ @can_show_entire_company = args[:can_show_entire_company] if args.key?(:can_show_entire_company)
2072
+ @total_results = args[:total_results] if args.key?(:total_results)
2073
+ @showing_entire_company = args[:showing_entire_company] if args.key?(:showing_entire_company)
816
2074
  end
817
2075
  end
818
2076
 
819
- # Response message for ListCompanies.
820
- class ListCompaniesResponse
2077
+ # Response message for
2078
+ # LogClientMessage.
2079
+ class LogMessageResponse
821
2080
  include Google::Apis::Core::Hashable
822
2081
 
823
2082
  # Common data that is in each API response.
@@ -825,17 +2084,29 @@ module Google
825
2084
  # @return [Google::Apis::PartnersV2::ResponseMetadata]
826
2085
  attr_accessor :response_metadata
827
2086
 
828
- # The list of companies.
829
- # Corresponds to the JSON property `companies`
830
- # @return [Array<Google::Apis::PartnersV2::Company>]
831
- attr_accessor :companies
2087
+ def initialize(**args)
2088
+ update!(**args)
2089
+ end
832
2090
 
833
- # A token to retrieve next page of results. Pass this value in the `
834
- # ListCompaniesRequest.page_token` field in the subsequent call to ListCompanies
835
- # to retrieve the next page of results.
836
- # Corresponds to the JSON property `nextPageToken`
2091
+ # Update properties of this object
2092
+ def update!(**args)
2093
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
2094
+ end
2095
+ end
2096
+
2097
+ # Agency specialization status
2098
+ class SpecializationStatus
2099
+ include Google::Apis::Core::Hashable
2100
+
2101
+ # The specialization this status is for.
2102
+ # Corresponds to the JSON property `badgeSpecialization`
837
2103
  # @return [String]
838
- attr_accessor :next_page_token
2104
+ attr_accessor :badge_specialization
2105
+
2106
+ # State of agency specialization.
2107
+ # Corresponds to the JSON property `badgeSpecializationState`
2108
+ # @return [String]
2109
+ attr_accessor :badge_specialization_state
839
2110
 
840
2111
  def initialize(**args)
841
2112
  update!(**args)
@@ -843,31 +2114,41 @@ module Google
843
2114
 
844
2115
  # Update properties of this object
845
2116
  def update!(**args)
846
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
847
- @companies = args[:companies] if args.key?(:companies)
848
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2117
+ @badge_specialization = args[:badge_specialization] if args.key?(:badge_specialization)
2118
+ @badge_specialization_state = args[:badge_specialization_state] if args.key?(:badge_specialization_state)
849
2119
  end
850
2120
  end
851
2121
 
852
- # Request message for CreateLead.
853
- class CreateLeadRequest
2122
+ # A user's information on a specific certification.
2123
+ class Certification
854
2124
  include Google::Apis::Core::Hashable
855
2125
 
856
- # Common data that is in each API request.
857
- # Corresponds to the JSON property `requestMetadata`
858
- # @return [Google::Apis::PartnersV2::RequestMetadata]
859
- attr_accessor :request_metadata
2126
+ # The type of certification, the area of expertise.
2127
+ # Corresponds to the JSON property `certificationType`
2128
+ # @return [String]
2129
+ attr_accessor :certification_type
860
2130
 
861
- # A lead resource that represents an advertiser contact for a `Company`. These
862
- # are usually generated via Google Partner Search (the advertiser portal).
863
- # Corresponds to the JSON property `lead`
864
- # @return [Google::Apis::PartnersV2::Lead]
865
- attr_accessor :lead
2131
+ # The date the user last achieved certification.
2132
+ # Corresponds to the JSON property `lastAchieved`
2133
+ # @return [String]
2134
+ attr_accessor :last_achieved
866
2135
 
867
- # reCaptcha challenge info.
868
- # Corresponds to the JSON property `recaptchaChallenge`
869
- # @return [Google::Apis::PartnersV2::RecaptchaChallenge]
870
- attr_accessor :recaptcha_challenge
2136
+ # Whether this certification has been achieved.
2137
+ # Corresponds to the JSON property `achieved`
2138
+ # @return [Boolean]
2139
+ attr_accessor :achieved
2140
+ alias_method :achieved?, :achieved
2141
+
2142
+ # Date this certification is due to expire.
2143
+ # Corresponds to the JSON property `expiration`
2144
+ # @return [String]
2145
+ attr_accessor :expiration
2146
+
2147
+ # Whether this certification is in the state of warning.
2148
+ # Corresponds to the JSON property `warning`
2149
+ # @return [Boolean]
2150
+ attr_accessor :warning
2151
+ alias_method :warning?, :warning
871
2152
 
872
2153
  def initialize(**args)
873
2154
  update!(**args)
@@ -875,25 +2156,78 @@ module Google
875
2156
 
876
2157
  # Update properties of this object
877
2158
  def update!(**args)
878
- @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
879
- @lead = args[:lead] if args.key?(:lead)
880
- @recaptcha_challenge = args[:recaptcha_challenge] if args.key?(:recaptcha_challenge)
2159
+ @certification_type = args[:certification_type] if args.key?(:certification_type)
2160
+ @last_achieved = args[:last_achieved] if args.key?(:last_achieved)
2161
+ @achieved = args[:achieved] if args.key?(:achieved)
2162
+ @expiration = args[:expiration] if args.key?(:expiration)
2163
+ @warning = args[:warning] if args.key?(:warning)
881
2164
  end
882
2165
  end
883
2166
 
884
- # reCaptcha challenge info.
885
- class RecaptchaChallenge
2167
+ # A resource representing a user of the Partners platform.
2168
+ class User
886
2169
  include Google::Apis::Core::Hashable
887
2170
 
888
- # The ID of the reCaptcha challenge.
2171
+ # The list of exams the user ever taken. For each type of exam, only one
2172
+ # entry is listed.
2173
+ # Corresponds to the JSON property `examStatus`
2174
+ # @return [Array<Google::Apis::PartnersV2::ExamStatus>]
2175
+ attr_accessor :exam_status
2176
+
2177
+ # The ID of the user.
889
2178
  # Corresponds to the JSON property `id`
890
2179
  # @return [String]
891
2180
  attr_accessor :id
892
2181
 
893
- # The response to the reCaptcha challenge.
894
- # Corresponds to the JSON property `response`
2182
+ # Basic information from a public profile.
2183
+ # Corresponds to the JSON property `publicProfile`
2184
+ # @return [Google::Apis::PartnersV2::PublicProfile]
2185
+ attr_accessor :public_profile
2186
+
2187
+ # The email address used by the user used for company verification.
2188
+ # @OutputOnly
2189
+ # Corresponds to the JSON property `companyVerificationEmail`
895
2190
  # @return [String]
896
- attr_accessor :response
2191
+ attr_accessor :company_verification_email
2192
+
2193
+ # The list of achieved certifications. These are calculated based on exam
2194
+ # results and other requirements.
2195
+ # @OutputOnly
2196
+ # Corresponds to the JSON property `certificationStatus`
2197
+ # @return [Array<Google::Apis::PartnersV2::Certification>]
2198
+ attr_accessor :certification_status
2199
+
2200
+ # A CompanyRelation resource representing information about a user's
2201
+ # affiliation and standing with a company in Partners.
2202
+ # Corresponds to the JSON property `company`
2203
+ # @return [Google::Apis::PartnersV2::CompanyRelation]
2204
+ attr_accessor :company
2205
+
2206
+ # The profile information of a Partners user.
2207
+ # Corresponds to the JSON property `profile`
2208
+ # @return [Google::Apis::PartnersV2::UserProfile]
2209
+ attr_accessor :profile
2210
+
2211
+ # The most recent time the user interacted with the Partners site.
2212
+ # @OutputOnly
2213
+ # Corresponds to the JSON property `lastAccessTime`
2214
+ # @return [String]
2215
+ attr_accessor :last_access_time
2216
+
2217
+ # This is the list of AdWords Manager Accounts the user has edit access to.
2218
+ # If the user has edit access to multiple accounts, the user can choose the
2219
+ # preferred account and we use this when a personal account is needed. Can
2220
+ # be empty meaning the user has access to no accounts.
2221
+ # @OutputOnly
2222
+ # Corresponds to the JSON property `availableAdwordsManagerAccounts`
2223
+ # @return [Array<Google::Apis::PartnersV2::AdWordsManagerAccountInfo>]
2224
+ attr_accessor :available_adwords_manager_accounts
2225
+
2226
+ # The list of emails the user has access to/can select as primary.
2227
+ # @OutputOnly
2228
+ # Corresponds to the JSON property `primaryEmails`
2229
+ # @return [Array<String>]
2230
+ attr_accessor :primary_emails
897
2231
 
898
2232
  def initialize(**args)
899
2233
  update!(**args)
@@ -901,30 +2235,49 @@ module Google
901
2235
 
902
2236
  # Update properties of this object
903
2237
  def update!(**args)
2238
+ @exam_status = args[:exam_status] if args.key?(:exam_status)
904
2239
  @id = args[:id] if args.key?(:id)
905
- @response = args[:response] if args.key?(:response)
2240
+ @public_profile = args[:public_profile] if args.key?(:public_profile)
2241
+ @company_verification_email = args[:company_verification_email] if args.key?(:company_verification_email)
2242
+ @certification_status = args[:certification_status] if args.key?(:certification_status)
2243
+ @company = args[:company] if args.key?(:company)
2244
+ @profile = args[:profile] if args.key?(:profile)
2245
+ @last_access_time = args[:last_access_time] if args.key?(:last_access_time)
2246
+ @available_adwords_manager_accounts = args[:available_adwords_manager_accounts] if args.key?(:available_adwords_manager_accounts)
2247
+ @primary_emails = args[:primary_emails] if args.key?(:primary_emails)
906
2248
  end
907
2249
  end
908
2250
 
909
- # Response message for CreateLead. Debug information about this request.
910
- class CreateLeadResponse
2251
+ # Response message for
2252
+ # ListAnalytics.
2253
+ class ListAnalyticsResponse
911
2254
  include Google::Apis::Core::Hashable
912
2255
 
2256
+ # The list of analytics.
2257
+ # Sorted in ascending order of
2258
+ # Analytics.event_date.
2259
+ # Corresponds to the JSON property `analytics`
2260
+ # @return [Array<Google::Apis::PartnersV2::Analytics>]
2261
+ attr_accessor :analytics
2262
+
2263
+ # A token to retrieve next page of results.
2264
+ # Pass this value in the `ListAnalyticsRequest.page_token` field in the
2265
+ # subsequent call to
2266
+ # ListAnalytics to retrieve the
2267
+ # next page of results.
2268
+ # Corresponds to the JSON property `nextPageToken`
2269
+ # @return [String]
2270
+ attr_accessor :next_page_token
2271
+
913
2272
  # Common data that is in each API response.
914
2273
  # Corresponds to the JSON property `responseMetadata`
915
2274
  # @return [Google::Apis::PartnersV2::ResponseMetadata]
916
2275
  attr_accessor :response_metadata
917
2276
 
918
- # A lead resource that represents an advertiser contact for a `Company`. These
919
- # are usually generated via Google Partner Search (the advertiser portal).
920
- # Corresponds to the JSON property `lead`
921
- # @return [Google::Apis::PartnersV2::Lead]
922
- attr_accessor :lead
923
-
924
- # The outcome of reCaptcha validation.
925
- # Corresponds to the JSON property `recaptchaStatus`
926
- # @return [String]
927
- attr_accessor :recaptcha_status
2277
+ # Analytics aggregated data for a `Company` for a given date range.
2278
+ # Corresponds to the JSON property `analyticsSummary`
2279
+ # @return [Google::Apis::PartnersV2::AnalyticsSummary]
2280
+ attr_accessor :analytics_summary
928
2281
 
929
2282
  def initialize(**args)
930
2283
  update!(**args)
@@ -932,9 +2285,10 @@ module Google
932
2285
 
933
2286
  # Update properties of this object
934
2287
  def update!(**args)
2288
+ @analytics = args[:analytics] if args.key?(:analytics)
2289
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
935
2290
  @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
936
- @lead = args[:lead] if args.key?(:lead)
937
- @recaptcha_status = args[:recaptcha_status] if args.key?(:recaptcha_status)
2291
+ @analytics_summary = args[:analytics_summary] if args.key?(:analytics_summary)
938
2292
  end
939
2293
  end
940
2294
  end