google-api-client 0.10.2 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/MIGRATING.md +22 -7
  4. data/README.md +4 -8
  5. data/api_names.yaml +1210 -37815
  6. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
  8. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
  9. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
  12. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
  14. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
  16. data/generated/google/apis/admin_reports_v1.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
  21. data/generated/google/apis/appengine_v1.rb +40 -0
  22. data/generated/google/apis/appengine_v1/classes.rb +2251 -0
  23. data/generated/google/apis/appengine_v1/representations.rb +858 -0
  24. data/generated/google/apis/appengine_v1/service.rb +894 -0
  25. data/generated/google/apis/bigquery_v2.rb +1 -1
  26. data/generated/google/apis/bigquery_v2/classes.rb +11 -6
  27. data/generated/google/apis/books_v1.rb +1 -1
  28. data/generated/google/apis/books_v1/classes.rb +26 -0
  29. data/generated/google/apis/books_v1/representations.rb +15 -0
  30. data/generated/google/apis/books_v1/service.rb +4 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
  35. data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
  36. data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
  37. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  38. data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
  39. data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
  40. data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
  41. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
  42. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
  43. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
  44. data/generated/google/apis/cloudfunctions_v1.rb +35 -0
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
  46. data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
  47. data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
  48. data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
  49. data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
  50. data/generated/google/apis/cloudkms_v1/service.rb +194 -194
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  60. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  61. data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
  62. data/generated/google/apis/compute_beta.rb +1 -1
  63. data/generated/google/apis/compute_beta/classes.rb +32 -7
  64. data/generated/google/apis/compute_beta/representations.rb +2 -0
  65. data/generated/google/apis/compute_beta/service.rb +11 -11
  66. data/generated/google/apis/compute_v1.rb +1 -1
  67. data/generated/google/apis/compute_v1/classes.rb +95 -2
  68. data/generated/google/apis/compute_v1/representations.rb +33 -0
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
  71. data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
  74. data/generated/google/apis/dataproc_v1/representations.rb +200 -200
  75. data/generated/google/apis/dataproc_v1/service.rb +356 -356
  76. data/generated/google/apis/datastore_v1.rb +4 -4
  77. data/generated/google/apis/datastore_v1/classes.rb +701 -690
  78. data/generated/google/apis/datastore_v1/representations.rb +160 -160
  79. data/generated/google/apis/datastore_v1/service.rb +52 -52
  80. data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
  81. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2.rb +1 -1
  83. data/generated/google/apis/drive_v2/classes.rb +158 -35
  84. data/generated/google/apis/drive_v2/representations.rb +39 -0
  85. data/generated/google/apis/drive_v2/service.rb +4 -4
  86. data/generated/google/apis/drive_v3.rb +1 -1
  87. data/generated/google/apis/drive_v3/classes.rb +162 -33
  88. data/generated/google/apis/drive_v3/representations.rb +39 -0
  89. data/generated/google/apis/drive_v3/service.rb +4 -4
  90. data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
  91. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
  92. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
  93. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
  94. data/generated/google/apis/firebaserules_v1.rb +41 -0
  95. data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
  96. data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
  97. data/generated/google/apis/firebaserules_v1/service.rb +495 -0
  98. data/generated/google/apis/games_v1/classes.rb +4 -0
  99. data/generated/google/apis/genomics_v1.rb +7 -7
  100. data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
  101. data/generated/google/apis/genomics_v1/representations.rb +387 -387
  102. data/generated/google/apis/genomics_v1/service.rb +1187 -1187
  103. data/generated/google/apis/gmail_v1/classes.rb +3 -0
  104. data/generated/google/apis/iam_v1.rb +1 -1
  105. data/generated/google/apis/iam_v1/classes.rb +123 -117
  106. data/generated/google/apis/iam_v1/representations.rb +33 -33
  107. data/generated/google/apis/iam_v1/service.rb +109 -109
  108. data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
  109. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  110. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  111. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  112. data/generated/google/apis/language_v1.rb +36 -0
  113. data/generated/google/apis/language_v1/classes.rb +757 -0
  114. data/generated/google/apis/language_v1/representations.rb +338 -0
  115. data/generated/google/apis/language_v1/service.rb +185 -0
  116. data/generated/google/apis/language_v1beta1/classes.rb +407 -407
  117. data/generated/google/apis/language_v1beta1/representations.rb +103 -103
  118. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  119. data/generated/google/apis/logging_v2.rb +46 -0
  120. data/generated/google/apis/logging_v2/classes.rb +1271 -0
  121. data/generated/google/apis/logging_v2/representations.rb +421 -0
  122. data/generated/google/apis/logging_v2/service.rb +1569 -0
  123. data/generated/google/apis/logging_v2beta1.rb +1 -1
  124. data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
  125. data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
  126. data/generated/google/apis/logging_v2beta1/service.rb +235 -235
  127. data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
  128. data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
  129. data/generated/google/apis/ml_v1.rb +34 -0
  130. data/generated/google/apis/ml_v1/classes.rb +1617 -0
  131. data/generated/google/apis/ml_v1/representations.rb +498 -0
  132. data/generated/google/apis/ml_v1/service.rb +769 -0
  133. data/generated/google/apis/monitoring_v3.rb +4 -4
  134. data/generated/google/apis/monitoring_v3/classes.rb +630 -630
  135. data/generated/google/apis/monitoring_v3/representations.rb +134 -134
  136. data/generated/google/apis/monitoring_v3/service.rb +240 -240
  137. data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
  138. data/generated/google/apis/partners_v2.rb +1 -1
  139. data/generated/google/apis/partners_v2/classes.rb +639 -639
  140. data/generated/google/apis/partners_v2/representations.rb +168 -168
  141. data/generated/google/apis/partners_v2/service.rb +381 -381
  142. data/generated/google/apis/people_v1.rb +10 -10
  143. data/generated/google/apis/people_v1/classes.rb +524 -524
  144. data/generated/google/apis/people_v1/representations.rb +143 -143
  145. data/generated/google/apis/people_v1/service.rb +30 -30
  146. data/generated/google/apis/plus_domains_v1.rb +1 -1
  147. data/generated/google/apis/plus_v1.rb +1 -1
  148. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
  149. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
  150. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
  151. data/generated/google/apis/pubsub_v1/classes.rb +175 -173
  152. data/generated/google/apis/pubsub_v1/representations.rb +53 -53
  153. data/generated/google/apis/pubsub_v1/service.rb +210 -210
  154. data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
  155. data/generated/google/apis/runtimeconfig_v1.rb +38 -0
  156. data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
  157. data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
  158. data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
  159. data/generated/google/apis/script_v1.rb +1 -1
  160. data/generated/google/apis/script_v1/classes.rb +6 -6
  161. data/generated/google/apis/script_v1/representations.rb +1 -1
  162. data/generated/google/apis/searchconsole_v1.rb +31 -0
  163. data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
  164. data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
  165. data/generated/google/apis/searchconsole_v1/service.rb +88 -0
  166. data/generated/google/apis/servicecontrol_v1.rb +38 -0
  167. data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
  168. data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
  169. data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
  170. data/generated/google/apis/servicemanagement_v1.rb +45 -0
  171. data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
  172. data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
  173. data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
  174. data/generated/google/apis/serviceuser_v1.rb +42 -0
  175. data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
  176. data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
  177. data/generated/google/apis/serviceuser_v1/service.rb +214 -0
  178. data/generated/google/apis/sheets_v4.rb +3 -3
  179. data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
  180. data/generated/google/apis/sheets_v4/representations.rb +381 -381
  181. data/generated/google/apis/sheets_v4/service.rb +48 -48
  182. data/generated/google/apis/slides_v1.rb +3 -3
  183. data/generated/google/apis/slides_v1/classes.rb +2860 -2860
  184. data/generated/google/apis/slides_v1/representations.rb +693 -693
  185. data/generated/google/apis/slides_v1/service.rb +30 -30
  186. data/generated/google/apis/sourcerepo_v1.rb +34 -0
  187. data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
  188. data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
  189. data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
  190. data/generated/google/apis/spanner_v1.rb +35 -0
  191. data/generated/google/apis/spanner_v1/classes.rb +3294 -0
  192. data/generated/google/apis/spanner_v1/representations.rb +984 -0
  193. data/generated/google/apis/spanner_v1/service.rb +1504 -0
  194. data/generated/google/apis/speech_v1beta1.rb +1 -1
  195. data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
  196. data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
  197. data/generated/google/apis/speech_v1beta1/service.rb +27 -27
  198. data/generated/google/apis/storage_v1.rb +1 -1
  199. data/generated/google/apis/storage_v1/classes.rb +131 -0
  200. data/generated/google/apis/storage_v1/representations.rb +51 -0
  201. data/generated/google/apis/storage_v1/service.rb +182 -0
  202. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  203. data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
  204. data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
  205. data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
  206. data/generated/google/apis/surveys_v2.rb +40 -0
  207. data/generated/google/apis/surveys_v2/classes.rb +806 -0
  208. data/generated/google/apis/surveys_v2/representations.rb +347 -0
  209. data/generated/google/apis/surveys_v2/service.rb +477 -0
  210. data/generated/google/apis/tagmanager_v2.rb +52 -0
  211. data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
  212. data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
  213. data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
  214. data/generated/google/apis/toolresults_v1beta3.rb +34 -0
  215. data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
  216. data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
  217. data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
  218. data/generated/google/apis/tracing_v1.rb +40 -0
  219. data/generated/google/apis/tracing_v1/classes.rb +664 -0
  220. data/generated/google/apis/tracing_v1/representations.rb +279 -0
  221. data/generated/google/apis/tracing_v1/service.rb +225 -0
  222. data/generated/google/apis/vision_v1.rb +1 -1
  223. data/generated/google/apis/vision_v1/classes.rb +1223 -1222
  224. data/generated/google/apis/vision_v1/representations.rb +234 -234
  225. data/generated/google/apis/vision_v1/service.rb +10 -10
  226. data/generated/google/apis/webfonts_v1.rb +33 -0
  227. data/generated/google/apis/webfonts_v1/classes.rb +113 -0
  228. data/generated/google/apis/webfonts_v1/representations.rb +62 -0
  229. data/generated/google/apis/webfonts_v1/service.rb +102 -0
  230. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  231. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  232. data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
  233. data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
  234. data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
  235. data/generated/google/apis/youtube_v3/classes.rb +1 -0
  236. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  237. data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
  238. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  239. data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
  240. data/lib/google/apis/generator/annotator.rb +5 -4
  241. data/lib/google/apis/generator/templates/_class.tmpl +3 -0
  242. data/lib/google/apis/version.rb +1 -1
  243. data/samples/cli/lib/samples/adsense.rb +99 -0
  244. data/samples/cli/lib/samples/analytics.rb +18 -0
  245. data/samples/cli/lib/samples/gmail.rb +33 -0
  246. data/samples/cli/lib/samples/vision.rb +69 -0
  247. metadata +89 -4
  248. data/sync.rb +0 -71
@@ -178,6 +178,7 @@ module Google
178
178
 
179
179
  # Image data base64 encoded.
180
180
  # Corresponds to the JSON property `data`
181
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
181
182
  # @return [String]
182
183
  attr_accessor :data
183
184
 
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/partners/
27
27
  module PartnersV2
28
28
  VERSION = 'V2'
29
- REVISION = '20170316'
29
+ REVISION = '20170324'
30
30
  end
31
31
  end
32
32
  end
@@ -22,6 +22,220 @@ module Google
22
22
  module Apis
23
23
  module PartnersV2
24
24
 
25
+ # A user's information on a specific certification.
26
+ class Certification
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The date the user last achieved certification.
30
+ # Corresponds to the JSON property `lastAchieved`
31
+ # @return [String]
32
+ attr_accessor :last_achieved
33
+
34
+ # Whether this certification has been achieved.
35
+ # Corresponds to the JSON property `achieved`
36
+ # @return [Boolean]
37
+ attr_accessor :achieved
38
+ alias_method :achieved?, :achieved
39
+
40
+ # Date this certification is due to expire.
41
+ # Corresponds to the JSON property `expiration`
42
+ # @return [String]
43
+ attr_accessor :expiration
44
+
45
+ # Whether this certification is in the state of warning.
46
+ # Corresponds to the JSON property `warning`
47
+ # @return [Boolean]
48
+ attr_accessor :warning
49
+ alias_method :warning?, :warning
50
+
51
+ # The type of certification, the area of expertise.
52
+ # Corresponds to the JSON property `certificationType`
53
+ # @return [String]
54
+ attr_accessor :certification_type
55
+
56
+ def initialize(**args)
57
+ update!(**args)
58
+ end
59
+
60
+ # Update properties of this object
61
+ def update!(**args)
62
+ @last_achieved = args[:last_achieved] if args.key?(:last_achieved)
63
+ @achieved = args[:achieved] if args.key?(:achieved)
64
+ @expiration = args[:expiration] if args.key?(:expiration)
65
+ @warning = args[:warning] if args.key?(:warning)
66
+ @certification_type = args[:certification_type] if args.key?(:certification_type)
67
+ end
68
+ end
69
+
70
+ # A resource representing a user of the Partners platform.
71
+ class User
72
+ include Google::Apis::Core::Hashable
73
+
74
+ # The list of exams the user ever taken. For each type of exam, only one
75
+ # entry is listed.
76
+ # Corresponds to the JSON property `examStatus`
77
+ # @return [Array<Google::Apis::PartnersV2::ExamStatus>]
78
+ attr_accessor :exam_status
79
+
80
+ # The ID of the user.
81
+ # Corresponds to the JSON property `id`
82
+ # @return [String]
83
+ attr_accessor :id
84
+
85
+ # Basic information from a public profile.
86
+ # Corresponds to the JSON property `publicProfile`
87
+ # @return [Google::Apis::PartnersV2::PublicProfile]
88
+ attr_accessor :public_profile
89
+
90
+ # The list of achieved certifications. These are calculated based on exam
91
+ # results and other requirements.
92
+ # @OutputOnly
93
+ # Corresponds to the JSON property `certificationStatus`
94
+ # @return [Array<Google::Apis::PartnersV2::Certification>]
95
+ attr_accessor :certification_status
96
+
97
+ # The email address used by the user used for company verification.
98
+ # @OutputOnly
99
+ # Corresponds to the JSON property `companyVerificationEmail`
100
+ # @return [String]
101
+ attr_accessor :company_verification_email
102
+
103
+ # A CompanyRelation resource representing information about a user's
104
+ # affiliation and standing with a company in Partners.
105
+ # Corresponds to the JSON property `company`
106
+ # @return [Google::Apis::PartnersV2::CompanyRelation]
107
+ attr_accessor :company
108
+
109
+ # The profile information of a Partners user.
110
+ # Corresponds to the JSON property `profile`
111
+ # @return [Google::Apis::PartnersV2::UserProfile]
112
+ attr_accessor :profile
113
+
114
+ # The most recent time the user interacted with the Partners site.
115
+ # @OutputOnly
116
+ # Corresponds to the JSON property `lastAccessTime`
117
+ # @return [String]
118
+ attr_accessor :last_access_time
119
+
120
+ # The list of emails the user has access to/can select as primary.
121
+ # @OutputOnly
122
+ # Corresponds to the JSON property `primaryEmails`
123
+ # @return [Array<String>]
124
+ attr_accessor :primary_emails
125
+
126
+ # This is the list of AdWords Manager Accounts the user has edit access to.
127
+ # If the user has edit access to multiple accounts, the user can choose the
128
+ # preferred account and we use this when a personal account is needed. Can
129
+ # be empty meaning the user has access to no accounts.
130
+ # @OutputOnly
131
+ # Corresponds to the JSON property `availableAdwordsManagerAccounts`
132
+ # @return [Array<Google::Apis::PartnersV2::AdWordsManagerAccountInfo>]
133
+ attr_accessor :available_adwords_manager_accounts
134
+
135
+ def initialize(**args)
136
+ update!(**args)
137
+ end
138
+
139
+ # Update properties of this object
140
+ def update!(**args)
141
+ @exam_status = args[:exam_status] if args.key?(:exam_status)
142
+ @id = args[:id] if args.key?(:id)
143
+ @public_profile = args[:public_profile] if args.key?(:public_profile)
144
+ @certification_status = args[:certification_status] if args.key?(:certification_status)
145
+ @company_verification_email = args[:company_verification_email] if args.key?(:company_verification_email)
146
+ @company = args[:company] if args.key?(:company)
147
+ @profile = args[:profile] if args.key?(:profile)
148
+ @last_access_time = args[:last_access_time] if args.key?(:last_access_time)
149
+ @primary_emails = args[:primary_emails] if args.key?(:primary_emails)
150
+ @available_adwords_manager_accounts = args[:available_adwords_manager_accounts] if args.key?(:available_adwords_manager_accounts)
151
+ end
152
+ end
153
+
154
+ # Response message for
155
+ # ListAnalytics.
156
+ class ListAnalyticsResponse
157
+ include Google::Apis::Core::Hashable
158
+
159
+ # A token to retrieve next page of results.
160
+ # Pass this value in the `ListAnalyticsRequest.page_token` field in the
161
+ # subsequent call to
162
+ # ListAnalytics to retrieve the
163
+ # next page of results.
164
+ # Corresponds to the JSON property `nextPageToken`
165
+ # @return [String]
166
+ attr_accessor :next_page_token
167
+
168
+ # Common data that is in each API response.
169
+ # Corresponds to the JSON property `responseMetadata`
170
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
171
+ attr_accessor :response_metadata
172
+
173
+ # Analytics aggregated data for a `Company` for a given date range.
174
+ # Corresponds to the JSON property `analyticsSummary`
175
+ # @return [Google::Apis::PartnersV2::AnalyticsSummary]
176
+ attr_accessor :analytics_summary
177
+
178
+ # The list of analytics.
179
+ # Sorted in ascending order of
180
+ # Analytics.event_date.
181
+ # Corresponds to the JSON property `analytics`
182
+ # @return [Array<Google::Apis::PartnersV2::Analytics>]
183
+ attr_accessor :analytics
184
+
185
+ def initialize(**args)
186
+ update!(**args)
187
+ end
188
+
189
+ # Update properties of this object
190
+ def update!(**args)
191
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
192
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
193
+ @analytics_summary = args[:analytics_summary] if args.key?(:analytics_summary)
194
+ @analytics = args[:analytics] if args.key?(:analytics)
195
+ end
196
+ end
197
+
198
+ # Response message for ListLeads.
199
+ class ListLeadsResponse
200
+ include Google::Apis::Core::Hashable
201
+
202
+ # A token to retrieve next page of results.
203
+ # Pass this value in the `ListLeadsRequest.page_token` field in the
204
+ # subsequent call to
205
+ # ListLeads to retrieve the
206
+ # next page of results.
207
+ # Corresponds to the JSON property `nextPageToken`
208
+ # @return [String]
209
+ attr_accessor :next_page_token
210
+
211
+ # Common data that is in each API response.
212
+ # Corresponds to the JSON property `responseMetadata`
213
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
214
+ attr_accessor :response_metadata
215
+
216
+ # The total count of leads for the given company.
217
+ # Corresponds to the JSON property `totalSize`
218
+ # @return [Fixnum]
219
+ attr_accessor :total_size
220
+
221
+ # The list of leads.
222
+ # Corresponds to the JSON property `leads`
223
+ # @return [Array<Google::Apis::PartnersV2::Lead>]
224
+ attr_accessor :leads
225
+
226
+ def initialize(**args)
227
+ update!(**args)
228
+ end
229
+
230
+ # Update properties of this object
231
+ def update!(**args)
232
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
233
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
234
+ @total_size = args[:total_size] if args.key?(:total_size)
235
+ @leads = args[:leads] if args.key?(:leads)
236
+ end
237
+ end
238
+
25
239
  # A company resource in the Google Partners API. Once certified, it qualifies
26
240
  # for being searched by advertisers.
27
241
  class Company
@@ -74,11 +288,6 @@ module Google
74
288
  # @return [String]
75
289
  attr_accessor :id
76
290
 
77
- # Services the company can help with.
78
- # Corresponds to the JSON property `services`
79
- # @return [Array<String>]
80
- attr_accessor :services
81
-
82
291
  # Represents an amount of money with its currency type.
83
292
  # Corresponds to the JSON property `originalMinMonthlyBudget`
84
293
  # @return [Google::Apis::PartnersV2::Money]
@@ -95,6 +304,11 @@ module Google
95
304
  # @return [Google::Apis::PartnersV2::Location]
96
305
  attr_accessor :primary_location
97
306
 
307
+ # Services the company can help with.
308
+ # Corresponds to the JSON property `services`
309
+ # @return [Array<String>]
310
+ attr_accessor :services
311
+
98
312
  # Information related to the ranking of the company within the list of
99
313
  # companies.
100
314
  # Corresponds to the JSON property `ranks`
@@ -111,21 +325,16 @@ module Google
111
325
  # @return [String]
112
326
  attr_accessor :badge_tier
113
327
 
114
- # Email domains that allow users with a matching email address to get
115
- # auto-approved for associating with this company.
116
- # Corresponds to the JSON property `autoApprovalEmailDomains`
117
- # @return [Array<String>]
118
- attr_accessor :auto_approval_email_domains
119
-
120
328
  # Company type labels listed on the company's profile.
121
329
  # Corresponds to the JSON property `companyTypes`
122
330
  # @return [Array<String>]
123
331
  attr_accessor :company_types
124
332
 
125
- # The public viewability status of the company's profile.
126
- # Corresponds to the JSON property `profileStatus`
127
- # @return [String]
128
- attr_accessor :profile_status
333
+ # Email domains that allow users with a matching email address to get
334
+ # auto-approved for associating with this company.
335
+ # Corresponds to the JSON property `autoApprovalEmailDomains`
336
+ # @return [Array<String>]
337
+ attr_accessor :auto_approval_email_domains
129
338
 
130
339
  # The primary language code of the company, as defined by
131
340
  # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
@@ -134,6 +343,11 @@ module Google
134
343
  # @return [String]
135
344
  attr_accessor :primary_language_code
136
345
 
346
+ # The public viewability status of the company's profile.
347
+ # Corresponds to the JSON property `profileStatus`
348
+ # @return [String]
349
+ attr_accessor :profile_status
350
+
137
351
  # The list of all company locations.
138
352
  # If set, must include the
139
353
  # primary_location
@@ -157,62 +371,21 @@ module Google
157
371
  @localized_infos = args[:localized_infos] if args.key?(:localized_infos)
158
372
  @certification_statuses = args[:certification_statuses] if args.key?(:certification_statuses)
159
373
  @id = args[:id] if args.key?(:id)
160
- @services = args[:services] if args.key?(:services)
161
374
  @original_min_monthly_budget = args[:original_min_monthly_budget] if args.key?(:original_min_monthly_budget)
162
375
  @public_profile = args[:public_profile] if args.key?(:public_profile)
163
376
  @primary_location = args[:primary_location] if args.key?(:primary_location)
377
+ @services = args[:services] if args.key?(:services)
164
378
  @ranks = args[:ranks] if args.key?(:ranks)
165
379
  @specialization_status = args[:specialization_status] if args.key?(:specialization_status)
166
380
  @badge_tier = args[:badge_tier] if args.key?(:badge_tier)
167
- @auto_approval_email_domains = args[:auto_approval_email_domains] if args.key?(:auto_approval_email_domains)
168
381
  @company_types = args[:company_types] if args.key?(:company_types)
169
- @profile_status = args[:profile_status] if args.key?(:profile_status)
382
+ @auto_approval_email_domains = args[:auto_approval_email_domains] if args.key?(:auto_approval_email_domains)
170
383
  @primary_language_code = args[:primary_language_code] if args.key?(:primary_language_code)
384
+ @profile_status = args[:profile_status] if args.key?(:profile_status)
171
385
  @locations = args[:locations] if args.key?(:locations)
172
386
  end
173
387
  end
174
388
 
175
- # Response message for ListLeads.
176
- class ListLeadsResponse
177
- include Google::Apis::Core::Hashable
178
-
179
- # A token to retrieve next page of results.
180
- # Pass this value in the `ListLeadsRequest.page_token` field in the
181
- # subsequent call to
182
- # ListLeads to retrieve the
183
- # next page of results.
184
- # Corresponds to the JSON property `nextPageToken`
185
- # @return [String]
186
- attr_accessor :next_page_token
187
-
188
- # Common data that is in each API response.
189
- # Corresponds to the JSON property `responseMetadata`
190
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
191
- attr_accessor :response_metadata
192
-
193
- # The total count of leads for the given company.
194
- # Corresponds to the JSON property `totalSize`
195
- # @return [Fixnum]
196
- attr_accessor :total_size
197
-
198
- # The list of leads.
199
- # Corresponds to the JSON property `leads`
200
- # @return [Array<Google::Apis::PartnersV2::Lead>]
201
- attr_accessor :leads
202
-
203
- def initialize(**args)
204
- update!(**args)
205
- end
206
-
207
- # Update properties of this object
208
- def update!(**args)
209
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
210
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
211
- @total_size = args[:total_size] if args.key?(:total_size)
212
- @leads = args[:leads] if args.key?(:leads)
213
- end
214
- end
215
-
216
389
  # Response message for CreateLead.
217
390
  class CreateLeadResponse
218
391
  include Google::Apis::Core::Hashable
@@ -250,25 +423,25 @@ module Google
250
423
  class GetCompanyResponse
251
424
  include Google::Apis::Core::Hashable
252
425
 
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
426
  # A company resource in the Google Partners API. Once certified, it qualifies
259
427
  # for being searched by advertisers.
260
428
  # Corresponds to the JSON property `company`
261
429
  # @return [Google::Apis::PartnersV2::Company]
262
430
  attr_accessor :company
263
431
 
432
+ # Common data that is in each API response.
433
+ # Corresponds to the JSON property `responseMetadata`
434
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
435
+ attr_accessor :response_metadata
436
+
264
437
  def initialize(**args)
265
438
  update!(**args)
266
439
  end
267
440
 
268
441
  # Update properties of this object
269
442
  def update!(**args)
270
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
271
443
  @company = args[:company] if args.key?(:company)
444
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
272
445
  end
273
446
  end
274
447
 
@@ -277,11 +450,6 @@ module Google
277
450
  class Location
278
451
  include Google::Apis::Core::Hashable
279
452
 
280
- # Values are frequently alphanumeric.
281
- # Corresponds to the JSON property `postalCode`
282
- # @return [String]
283
- attr_accessor :postal_code
284
-
285
453
  # Language code of the address. Should be in BCP 47 format.
286
454
  # Corresponds to the JSON property `languageCode`
287
455
  # @return [String]
@@ -350,11 +518,6 @@ module Google
350
518
  # @return [Google::Apis::PartnersV2::LatLng]
351
519
  attr_accessor :lat_lng
352
520
 
353
- # The single string version of the address.
354
- # Corresponds to the JSON property `address`
355
- # @return [String]
356
- attr_accessor :address
357
-
358
521
  # Dependent locality or sublocality. Used for UK dependent localities, or
359
522
  # neighborhoods or boroughs in other locations.
360
523
  # Corresponds to the JSON property `dependentLocality`
@@ -366,38 +529,53 @@ module Google
366
529
  # @return [String]
367
530
  attr_accessor :region_code
368
531
 
532
+ # The single string version of the address.
533
+ # Corresponds to the JSON property `address`
534
+ # @return [String]
535
+ attr_accessor :address
536
+
537
+ # Values are frequently alphanumeric.
538
+ # Corresponds to the JSON property `postalCode`
539
+ # @return [String]
540
+ attr_accessor :postal_code
541
+
369
542
  def initialize(**args)
370
543
  update!(**args)
371
544
  end
372
545
 
373
546
  # Update properties of this object
374
547
  def update!(**args)
375
- @postal_code = args[:postal_code] if args.key?(:postal_code)
376
548
  @language_code = args[:language_code] if args.key?(:language_code)
377
549
  @sorting_code = args[:sorting_code] if args.key?(:sorting_code)
378
550
  @address_line = args[:address_line] if args.key?(:address_line)
379
551
  @administrative_area = args[:administrative_area] if args.key?(:administrative_area)
380
552
  @locality = args[:locality] if args.key?(:locality)
381
553
  @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
382
- @address = args[:address] if args.key?(:address)
383
554
  @dependent_locality = args[:dependent_locality] if args.key?(:dependent_locality)
384
555
  @region_code = args[:region_code] if args.key?(:region_code)
556
+ @address = args[:address] if args.key?(:address)
557
+ @postal_code = args[:postal_code] if args.key?(:postal_code)
385
558
  end
386
559
  end
387
560
 
388
- # Status for a Google Partners certification exam.
389
- class CertificationExamStatus
561
+ # A token that allows a user to take an exam.
562
+ class ExamToken
390
563
  include Google::Apis::Core::Hashable
391
564
 
392
- # The number of people who have passed the certification exam.
393
- # Corresponds to the JSON property `numberUsersPass`
394
- # @return [Fixnum]
395
- attr_accessor :number_users_pass
565
+ # The token, only present if the user has access to the exam.
566
+ # Corresponds to the JSON property `token`
567
+ # @return [String]
568
+ attr_accessor :token
396
569
 
397
- # The type of certification exam.
398
- # Corresponds to the JSON property `type`
570
+ # The type of the exam the token belongs to.
571
+ # Corresponds to the JSON property `examType`
399
572
  # @return [String]
400
- attr_accessor :type
573
+ attr_accessor :exam_type
574
+
575
+ # The id of the exam the token is for.
576
+ # Corresponds to the JSON property `examId`
577
+ # @return [String]
578
+ attr_accessor :exam_id
401
579
 
402
580
  def initialize(**args)
403
581
  update!(**args)
@@ -405,29 +583,25 @@ module Google
405
583
 
406
584
  # Update properties of this object
407
585
  def update!(**args)
408
- @number_users_pass = args[:number_users_pass] if args.key?(:number_users_pass)
409
- @type = args[:type] if args.key?(:type)
586
+ @token = args[:token] if args.key?(:token)
587
+ @exam_type = args[:exam_type] if args.key?(:exam_type)
588
+ @exam_id = args[:exam_id] if args.key?(:exam_id)
410
589
  end
411
590
  end
412
591
 
413
- # A token that allows a user to take an exam.
414
- class ExamToken
592
+ # Status for a Google Partners certification exam.
593
+ class CertificationExamStatus
415
594
  include Google::Apis::Core::Hashable
416
595
 
417
- # The id of the exam the token is for.
418
- # Corresponds to the JSON property `examId`
419
- # @return [String]
420
- attr_accessor :exam_id
421
-
422
- # The token, only present if the user has access to the exam.
423
- # Corresponds to the JSON property `token`
424
- # @return [String]
425
- attr_accessor :token
596
+ # The number of people who have passed the certification exam.
597
+ # Corresponds to the JSON property `numberUsersPass`
598
+ # @return [Fixnum]
599
+ attr_accessor :number_users_pass
426
600
 
427
- # The type of the exam the token belongs to.
428
- # Corresponds to the JSON property `examType`
601
+ # The type of certification exam.
602
+ # Corresponds to the JSON property `type`
429
603
  # @return [String]
430
- attr_accessor :exam_type
604
+ attr_accessor :type
431
605
 
432
606
  def initialize(**args)
433
607
  update!(**args)
@@ -435,9 +609,8 @@ module Google
435
609
 
436
610
  # Update properties of this object
437
611
  def update!(**args)
438
- @exam_id = args[:exam_id] if args.key?(:exam_id)
439
- @token = args[:token] if args.key?(:token)
440
- @exam_type = args[:exam_type] if args.key?(:exam_type)
612
+ @number_users_pass = args[:number_users_pass] if args.key?(:number_users_pass)
613
+ @type = args[:type] if args.key?(:type)
441
614
  end
442
615
  end
443
616
 
@@ -445,18 +618,6 @@ module Google
445
618
  class OptIns
446
619
  include Google::Apis::Core::Hashable
447
620
 
448
- # An opt-in to receive special promotional gifts and material in the mail.
449
- # Corresponds to the JSON property `physicalMail`
450
- # @return [Boolean]
451
- attr_accessor :physical_mail
452
- alias_method :physical_mail?, :physical_mail
453
-
454
- # An opt-in to allow recieivng phone calls about their Partners account.
455
- # Corresponds to the JSON property `phoneContact`
456
- # @return [Boolean]
457
- attr_accessor :phone_contact
458
- alias_method :phone_contact?, :phone_contact
459
-
460
621
  # An opt-in about receiving email from Partners marketing teams. Includes
461
622
  # member-only events and special promotional offers for Google products.
462
623
  # Corresponds to the JSON property `marketComm`
@@ -477,17 +638,29 @@ module Google
477
638
  attr_accessor :performance_suggestions
478
639
  alias_method :performance_suggestions?, :performance_suggestions
479
640
 
641
+ # An opt-in to receive special promotional gifts and material in the mail.
642
+ # Corresponds to the JSON property `physicalMail`
643
+ # @return [Boolean]
644
+ attr_accessor :physical_mail
645
+ alias_method :physical_mail?, :physical_mail
646
+
647
+ # An opt-in to allow recieivng phone calls about their Partners account.
648
+ # Corresponds to the JSON property `phoneContact`
649
+ # @return [Boolean]
650
+ attr_accessor :phone_contact
651
+ alias_method :phone_contact?, :phone_contact
652
+
480
653
  def initialize(**args)
481
654
  update!(**args)
482
655
  end
483
656
 
484
657
  # Update properties of this object
485
658
  def update!(**args)
486
- @physical_mail = args[:physical_mail] if args.key?(:physical_mail)
487
- @phone_contact = args[:phone_contact] if args.key?(:phone_contact)
488
659
  @market_comm = args[:market_comm] if args.key?(:market_comm)
489
660
  @special_offers = args[:special_offers] if args.key?(:special_offers)
490
661
  @performance_suggestions = args[:performance_suggestions] if args.key?(:performance_suggestions)
662
+ @physical_mail = args[:physical_mail] if args.key?(:physical_mail)
663
+ @phone_contact = args[:phone_contact] if args.key?(:phone_contact)
491
664
  end
492
665
  end
493
666
 
@@ -520,32 +693,16 @@ module Google
520
693
  class UserProfile
521
694
  include Google::Apis::Core::Hashable
522
695
 
523
- # The user's given name.
524
- # Corresponds to the JSON property `givenName`
696
+ # The user's family name.
697
+ # Corresponds to the JSON property `familyName`
525
698
  # @return [String]
526
- attr_accessor :given_name
527
-
528
- # A location with address and geographic coordinates. May optionally contain a
529
- # detailed (multi-field) version of the address.
530
- # Corresponds to the JSON property `address`
531
- # @return [Google::Apis::PartnersV2::Location]
532
- attr_accessor :address
533
-
534
- # A list of ids representing which industries the user selected.
535
- # Corresponds to the JSON property `industries`
536
- # @return [Array<String>]
537
- attr_accessor :industries
699
+ attr_accessor :family_name
538
700
 
539
701
  # The list of languages this user understands.
540
702
  # Corresponds to the JSON property `languages`
541
703
  # @return [Array<String>]
542
704
  attr_accessor :languages
543
705
 
544
- # The user's family name.
545
- # Corresponds to the JSON property `familyName`
546
- # @return [String]
547
- attr_accessor :family_name
548
-
549
706
  # A set of opt-ins for a user.
550
707
  # Corresponds to the JSON property `emailOptIns`
551
708
  # @return [Google::Apis::PartnersV2::OptIns]
@@ -556,11 +713,6 @@ module Google
556
713
  # @return [Array<String>]
557
714
  attr_accessor :markets
558
715
 
559
- # The user's phone number.
560
- # Corresponds to the JSON property `phoneNumber`
561
- # @return [String]
562
- attr_accessor :phone_number
563
-
564
716
  # If the user has edit access to multiple accounts, the user can choose the
565
717
  # preferred account and it is used when a personal account is needed. Can
566
718
  # be empty.
@@ -568,6 +720,11 @@ module Google
568
720
  # @return [String]
569
721
  attr_accessor :adwords_manager_account
570
722
 
723
+ # The user's phone number.
724
+ # Corresponds to the JSON property `phoneNumber`
725
+ # @return [String]
726
+ attr_accessor :phone_number
727
+
571
728
  # The user's primary country, an ISO 2-character code.
572
729
  # Corresponds to the JSON property `primaryCountryCode`
573
730
  # @return [String]
@@ -594,26 +751,42 @@ module Google
594
751
  # @return [Array<String>]
595
752
  attr_accessor :job_functions
596
753
 
754
+ # The user's given name.
755
+ # Corresponds to the JSON property `givenName`
756
+ # @return [String]
757
+ attr_accessor :given_name
758
+
759
+ # A location with address and geographic coordinates. May optionally contain a
760
+ # detailed (multi-field) version of the address.
761
+ # Corresponds to the JSON property `address`
762
+ # @return [Google::Apis::PartnersV2::Location]
763
+ attr_accessor :address
764
+
765
+ # A list of ids representing which industries the user selected.
766
+ # Corresponds to the JSON property `industries`
767
+ # @return [Array<String>]
768
+ attr_accessor :industries
769
+
597
770
  def initialize(**args)
598
771
  update!(**args)
599
772
  end
600
773
 
601
774
  # Update properties of this object
602
775
  def update!(**args)
603
- @given_name = args[:given_name] if args.key?(:given_name)
604
- @address = args[:address] if args.key?(:address)
605
- @industries = args[:industries] if args.key?(:industries)
606
- @languages = args[:languages] if args.key?(:languages)
607
776
  @family_name = args[:family_name] if args.key?(:family_name)
777
+ @languages = args[:languages] if args.key?(:languages)
608
778
  @email_opt_ins = args[:email_opt_ins] if args.key?(:email_opt_ins)
609
779
  @markets = args[:markets] if args.key?(:markets)
610
- @phone_number = args[:phone_number] if args.key?(:phone_number)
611
780
  @adwords_manager_account = args[:adwords_manager_account] if args.key?(:adwords_manager_account)
781
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
612
782
  @primary_country_code = args[:primary_country_code] if args.key?(:primary_country_code)
613
783
  @email_address = args[:email_address] if args.key?(:email_address)
614
784
  @profile_public = args[:profile_public] if args.key?(:profile_public)
615
785
  @channels = args[:channels] if args.key?(:channels)
616
786
  @job_functions = args[:job_functions] if args.key?(:job_functions)
787
+ @given_name = args[:given_name] if args.key?(:given_name)
788
+ @address = args[:address] if args.key?(:address)
789
+ @industries = args[:industries] if args.key?(:industries)
617
790
  end
618
791
  end
619
792
 
@@ -641,11 +814,6 @@ module Google
641
814
  class HistoricalOffer
642
815
  include Google::Apis::Core::Hashable
643
816
 
644
- # ID of client.
645
- # Corresponds to the JSON property `clientId`
646
- # @return [String]
647
- attr_accessor :client_id
648
-
649
817
  # Name of the client.
650
818
  # Corresponds to the JSON property `clientName`
651
819
  # @return [String]
@@ -691,15 +859,20 @@ module Google
691
859
  # @return [String]
692
860
  attr_accessor :creation_time
693
861
 
862
+ # Status of the offer.
863
+ # Corresponds to the JSON property `status`
864
+ # @return [String]
865
+ attr_accessor :status
866
+
694
867
  # Email address for client.
695
868
  # Corresponds to the JSON property `clientEmail`
696
869
  # @return [String]
697
870
  attr_accessor :client_email
698
871
 
699
- # Status of the offer.
700
- # Corresponds to the JSON property `status`
872
+ # ID of client.
873
+ # Corresponds to the JSON property `clientId`
701
874
  # @return [String]
702
- attr_accessor :status
875
+ attr_accessor :client_id
703
876
 
704
877
  def initialize(**args)
705
878
  update!(**args)
@@ -707,7 +880,6 @@ module Google
707
880
 
708
881
  # Update properties of this object
709
882
  def update!(**args)
710
- @client_id = args[:client_id] if args.key?(:client_id)
711
883
  @client_name = args[:client_name] if args.key?(:client_name)
712
884
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
713
885
  @adwords_url = args[:adwords_url] if args.key?(:adwords_url)
@@ -717,8 +889,35 @@ module Google
717
889
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
718
890
  @offer_code = args[:offer_code] if args.key?(:offer_code)
719
891
  @creation_time = args[:creation_time] if args.key?(:creation_time)
720
- @client_email = args[:client_email] if args.key?(:client_email)
721
892
  @status = args[:status] if args.key?(:status)
893
+ @client_email = args[:client_email] if args.key?(:client_email)
894
+ @client_id = args[:client_id] if args.key?(:client_id)
895
+ end
896
+ end
897
+
898
+ # Values to use instead of the user's respective defaults. These are only
899
+ # honored by whitelisted products.
900
+ class UserOverrides
901
+ include Google::Apis::Core::Hashable
902
+
903
+ # IP address to use instead of the user's geo-located IP address.
904
+ # Corresponds to the JSON property `ipAddress`
905
+ # @return [String]
906
+ attr_accessor :ip_address
907
+
908
+ # Logged-in user ID to impersonate instead of the user's ID.
909
+ # Corresponds to the JSON property `userId`
910
+ # @return [String]
911
+ attr_accessor :user_id
912
+
913
+ def initialize(**args)
914
+ update!(**args)
915
+ end
916
+
917
+ # Update properties of this object
918
+ def update!(**args)
919
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
920
+ @user_id = args[:user_id] if args.key?(:user_id)
722
921
  end
723
922
  end
724
923
 
@@ -737,16 +936,16 @@ module Google
737
936
  # @return [Google::Apis::PartnersV2::RequestMetadata]
738
937
  attr_accessor :request_metadata
739
938
 
740
- # List of event data for the event.
741
- # Corresponds to the JSON property `eventDatas`
742
- # @return [Array<Google::Apis::PartnersV2::EventData>]
743
- attr_accessor :event_datas
744
-
745
939
  # The scope of the event.
746
940
  # Corresponds to the JSON property `eventScope`
747
941
  # @return [String]
748
942
  attr_accessor :event_scope
749
943
 
944
+ # List of event data for the event.
945
+ # Corresponds to the JSON property `eventDatas`
946
+ # @return [Array<Google::Apis::PartnersV2::EventData>]
947
+ attr_accessor :event_datas
948
+
750
949
  # The category the action belongs to.
751
950
  # Corresponds to the JSON property `eventCategory`
752
951
  # @return [String]
@@ -771,40 +970,14 @@ module Google
771
970
  def update!(**args)
772
971
  @url = args[:url] if args.key?(:url)
773
972
  @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
774
- @event_datas = args[:event_datas] if args.key?(:event_datas)
775
973
  @event_scope = args[:event_scope] if args.key?(:event_scope)
974
+ @event_datas = args[:event_datas] if args.key?(:event_datas)
776
975
  @event_category = args[:event_category] if args.key?(:event_category)
777
976
  @lead = args[:lead] if args.key?(:lead)
778
977
  @event_action = args[:event_action] if args.key?(:event_action)
779
978
  end
780
979
  end
781
980
 
782
- # Values to use instead of the user's respective defaults. These are only
783
- # honored by whitelisted products.
784
- class UserOverrides
785
- include Google::Apis::Core::Hashable
786
-
787
- # Logged-in user ID to impersonate instead of the user's ID.
788
- # Corresponds to the JSON property `userId`
789
- # @return [String]
790
- attr_accessor :user_id
791
-
792
- # IP address to use instead of the user's geo-located IP address.
793
- # Corresponds to the JSON property `ipAddress`
794
- # @return [String]
795
- attr_accessor :ip_address
796
-
797
- def initialize(**args)
798
- update!(**args)
799
- end
800
-
801
- # Update properties of this object
802
- def update!(**args)
803
- @user_id = args[:user_id] if args.key?(:user_id)
804
- @ip_address = args[:ip_address] if args.key?(:ip_address)
805
- end
806
- end
807
-
808
981
  # Details of the analytics events for a `Company` within a single day.
809
982
  class AnalyticsDataPoint
810
983
  include Google::Apis::Core::Hashable
@@ -835,11 +1008,6 @@ module Google
835
1008
  class Analytics
836
1009
  include Google::Apis::Core::Hashable
837
1010
 
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
1011
  # Represents a whole calendar date, e.g. date of birth. The time of day and
844
1012
  # time zone are either specified elsewhere or are not significant. The date
845
1013
  # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
@@ -861,42 +1029,21 @@ module Google
861
1029
  # @return [Google::Apis::PartnersV2::AnalyticsDataPoint]
862
1030
  attr_accessor :search_views
863
1031
 
1032
+ # Details of the analytics events for a `Company` within a single day.
1033
+ # Corresponds to the JSON property `contacts`
1034
+ # @return [Google::Apis::PartnersV2::AnalyticsDataPoint]
1035
+ attr_accessor :contacts
1036
+
864
1037
  def initialize(**args)
865
1038
  update!(**args)
866
1039
  end
867
1040
 
868
1041
  # Update properties of this object
869
1042
  def update!(**args)
870
- @contacts = args[:contacts] if args.key?(:contacts)
871
1043
  @event_date = args[:event_date] if args.key?(:event_date)
872
1044
  @profile_views = args[:profile_views] if args.key?(:profile_views)
873
1045
  @search_views = args[:search_views] if args.key?(:search_views)
874
- end
875
- end
876
-
877
- # Information about a particular AdWords Manager Account.
878
- # Read more at https://support.google.com/adwords/answer/6139186
879
- class AdWordsManagerAccountInfo
880
- include Google::Apis::Core::Hashable
881
-
882
- # The AdWords Manager Account id.
883
- # Corresponds to the JSON property `id`
884
- # @return [String]
885
- attr_accessor :id
886
-
887
- # Name of the customer this account represents.
888
- # Corresponds to the JSON property `customerName`
889
- # @return [String]
890
- attr_accessor :customer_name
891
-
892
- def initialize(**args)
893
- update!(**args)
894
- end
895
-
896
- # Update properties of this object
897
- def update!(**args)
898
- @id = args[:id] if args.key?(:id)
899
- @customer_name = args[:customer_name] if args.key?(:customer_name)
1046
+ @contacts = args[:contacts] if args.key?(:contacts)
900
1047
  end
901
1048
  end
902
1049
 
@@ -904,11 +1051,6 @@ module Google
904
1051
  class PublicProfile
905
1052
  include Google::Apis::Core::Hashable
906
1053
 
907
- # The URL to the main profile image of the public profile.
908
- # Corresponds to the JSON property `profileImage`
909
- # @return [String]
910
- attr_accessor :profile_image
911
-
912
1054
  # The display name of the public profile.
913
1055
  # Corresponds to the JSON property `displayName`
914
1056
  # @return [String]
@@ -929,17 +1071,48 @@ module Google
929
1071
  # @return [String]
930
1072
  attr_accessor :url
931
1073
 
1074
+ # The URL to the main profile image of the public profile.
1075
+ # Corresponds to the JSON property `profileImage`
1076
+ # @return [String]
1077
+ attr_accessor :profile_image
1078
+
932
1079
  def initialize(**args)
933
1080
  update!(**args)
934
1081
  end
935
1082
 
936
1083
  # Update properties of this object
937
1084
  def update!(**args)
938
- @profile_image = args[:profile_image] if args.key?(:profile_image)
939
1085
  @display_name = args[:display_name] if args.key?(:display_name)
940
1086
  @display_image_url = args[:display_image_url] if args.key?(:display_image_url)
941
1087
  @id = args[:id] if args.key?(:id)
942
1088
  @url = args[:url] if args.key?(:url)
1089
+ @profile_image = args[:profile_image] if args.key?(:profile_image)
1090
+ end
1091
+ end
1092
+
1093
+ # Information about a particular AdWords Manager Account.
1094
+ # Read more at https://support.google.com/adwords/answer/6139186
1095
+ class AdWordsManagerAccountInfo
1096
+ include Google::Apis::Core::Hashable
1097
+
1098
+ # The AdWords Manager Account id.
1099
+ # Corresponds to the JSON property `id`
1100
+ # @return [String]
1101
+ attr_accessor :id
1102
+
1103
+ # Name of the customer this account represents.
1104
+ # Corresponds to the JSON property `customerName`
1105
+ # @return [String]
1106
+ attr_accessor :customer_name
1107
+
1108
+ def initialize(**args)
1109
+ update!(**args)
1110
+ end
1111
+
1112
+ # Update properties of this object
1113
+ def update!(**args)
1114
+ @id = args[:id] if args.key?(:id)
1115
+ @customer_name = args[:customer_name] if args.key?(:customer_name)
943
1116
  end
944
1117
  end
945
1118
 
@@ -1114,24 +1287,24 @@ module Google
1114
1287
  class LatLng
1115
1288
  include Google::Apis::Core::Hashable
1116
1289
 
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
1290
  # The latitude in degrees. It must be in the range [-90.0, +90.0].
1123
1291
  # Corresponds to the JSON property `latitude`
1124
1292
  # @return [Float]
1125
1293
  attr_accessor :latitude
1126
1294
 
1295
+ # The longitude in degrees. It must be in the range [-180.0, +180.0].
1296
+ # Corresponds to the JSON property `longitude`
1297
+ # @return [Float]
1298
+ attr_accessor :longitude
1299
+
1127
1300
  def initialize(**args)
1128
1301
  update!(**args)
1129
1302
  end
1130
1303
 
1131
1304
  # Update properties of this object
1132
1305
  def update!(**args)
1133
- @longitude = args[:longitude] if args.key?(:longitude)
1134
1306
  @latitude = args[:latitude] if args.key?(:latitude)
1307
+ @longitude = args[:longitude] if args.key?(:longitude)
1135
1308
  end
1136
1309
  end
1137
1310
 
@@ -1176,12 +1349,6 @@ module Google
1176
1349
  class AnalyticsSummary
1177
1350
  include Google::Apis::Core::Hashable
1178
1351
 
1179
- # Aggregated number of times users saw the `Company`
1180
- # in Google Partners Search results for given date range.
1181
- # Corresponds to the JSON property `searchViewsCount`
1182
- # @return [Fixnum]
1183
- attr_accessor :search_views_count
1184
-
1185
1352
  # Aggregated number of times users contacted the `Company`
1186
1353
  # for given date range.
1187
1354
  # Corresponds to the JSON property `contactsCount`
@@ -1193,15 +1360,21 @@ module Google
1193
1360
  # @return [Fixnum]
1194
1361
  attr_accessor :profile_views_count
1195
1362
 
1363
+ # Aggregated number of times users saw the `Company`
1364
+ # in Google Partners Search results for given date range.
1365
+ # Corresponds to the JSON property `searchViewsCount`
1366
+ # @return [Fixnum]
1367
+ attr_accessor :search_views_count
1368
+
1196
1369
  def initialize(**args)
1197
1370
  update!(**args)
1198
1371
  end
1199
1372
 
1200
1373
  # Update properties of this object
1201
1374
  def update!(**args)
1202
- @search_views_count = args[:search_views_count] if args.key?(:search_views_count)
1203
1375
  @contacts_count = args[:contacts_count] if args.key?(:contacts_count)
1204
1376
  @profile_views_count = args[:profile_views_count] if args.key?(:profile_views_count)
1377
+ @search_views_count = args[:search_views_count] if args.key?(:search_views_count)
1205
1378
  end
1206
1379
  end
1207
1380
 
@@ -1210,6 +1383,11 @@ module Google
1210
1383
  class LogMessageRequest
1211
1384
  include Google::Apis::Core::Hashable
1212
1385
 
1386
+ # Map of client info, such as URL, browser navigator, browser platform, etc.
1387
+ # Corresponds to the JSON property `clientInfo`
1388
+ # @return [Hash<String,String>]
1389
+ attr_accessor :client_info
1390
+
1213
1391
  # Common data that is in each API request.
1214
1392
  # Corresponds to the JSON property `requestMetadata`
1215
1393
  # @return [Google::Apis::PartnersV2::RequestMetadata]
@@ -1225,52 +1403,16 @@ module Google
1225
1403
  # @return [String]
1226
1404
  attr_accessor :details
1227
1405
 
1228
- # Map of client info, such as URL, browser navigator, browser platform, etc.
1229
- # Corresponds to the JSON property `clientInfo`
1230
- # @return [Hash<String,String>]
1231
- attr_accessor :client_info
1232
-
1233
1406
  def initialize(**args)
1234
1407
  update!(**args)
1235
1408
  end
1236
1409
 
1237
1410
  # Update properties of this object
1238
1411
  def update!(**args)
1412
+ @client_info = args[:client_info] if args.key?(:client_info)
1239
1413
  @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
1240
1414
  @level = args[:level] if args.key?(:level)
1241
1415
  @details = args[:details] if args.key?(:details)
1242
- @client_info = args[:client_info] if args.key?(:client_info)
1243
- end
1244
- end
1245
-
1246
- # Debug information about this request.
1247
- class DebugInfo
1248
- include Google::Apis::Core::Hashable
1249
-
1250
- # Info about the server that serviced this request.
1251
- # Corresponds to the JSON property `serverInfo`
1252
- # @return [String]
1253
- attr_accessor :server_info
1254
-
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
1264
-
1265
- def initialize(**args)
1266
- update!(**args)
1267
- end
1268
-
1269
- # Update properties of this object
1270
- def update!(**args)
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)
1274
1416
  end
1275
1417
  end
1276
1418
 
@@ -1279,20 +1421,31 @@ module Google
1279
1421
  class Lead
1280
1422
  include Google::Apis::Core::Hashable
1281
1423
 
1282
- # First name of lead source.
1283
- # Corresponds to the JSON property `givenName`
1424
+ # Timestamp of when this lead was created.
1425
+ # Corresponds to the JSON property `createTime`
1284
1426
  # @return [String]
1285
- attr_accessor :given_name
1427
+ attr_accessor :create_time
1428
+
1429
+ # Whether or not the lead signed up for marketing emails
1430
+ # Corresponds to the JSON property `marketingOptIn`
1431
+ # @return [Boolean]
1432
+ attr_accessor :marketing_opt_in
1433
+ alias_method :marketing_opt_in?, :marketing_opt_in
1434
+
1435
+ # Type of lead.
1436
+ # Corresponds to the JSON property `type`
1437
+ # @return [String]
1438
+ attr_accessor :type
1286
1439
 
1287
1440
  # Represents an amount of money with its currency type.
1288
1441
  # Corresponds to the JSON property `minMonthlyBudget`
1289
1442
  # @return [Google::Apis::PartnersV2::Money]
1290
1443
  attr_accessor :min_monthly_budget
1291
1444
 
1292
- # Website URL of lead source.
1293
- # Corresponds to the JSON property `websiteUrl`
1445
+ # First name of lead source.
1446
+ # Corresponds to the JSON property `givenName`
1294
1447
  # @return [String]
1295
- attr_accessor :website_url
1448
+ attr_accessor :given_name
1296
1449
 
1297
1450
  # Language code of the lead's language preference, as defined by
1298
1451
  # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
@@ -1301,6 +1454,11 @@ module Google
1301
1454
  # @return [String]
1302
1455
  attr_accessor :language_code
1303
1456
 
1457
+ # Website URL of lead source.
1458
+ # Corresponds to the JSON property `websiteUrl`
1459
+ # @return [String]
1460
+ attr_accessor :website_url
1461
+
1304
1462
  # The lead's state in relation to the company.
1305
1463
  # Corresponds to the JSON property `state`
1306
1464
  # @return [String]
@@ -1341,21 +1499,48 @@ module Google
1341
1499
  # @return [String]
1342
1500
  attr_accessor :adwords_customer_id
1343
1501
 
1344
- # Timestamp of when this lead was created.
1345
- # Corresponds to the JSON property `createTime`
1346
- # @return [String]
1347
- attr_accessor :create_time
1502
+ def initialize(**args)
1503
+ update!(**args)
1504
+ end
1348
1505
 
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
1506
+ # Update properties of this object
1507
+ def update!(**args)
1508
+ @create_time = args[:create_time] if args.key?(:create_time)
1509
+ @marketing_opt_in = args[:marketing_opt_in] if args.key?(:marketing_opt_in)
1510
+ @type = args[:type] if args.key?(:type)
1511
+ @min_monthly_budget = args[:min_monthly_budget] if args.key?(:min_monthly_budget)
1512
+ @given_name = args[:given_name] if args.key?(:given_name)
1513
+ @language_code = args[:language_code] if args.key?(:language_code)
1514
+ @website_url = args[:website_url] if args.key?(:website_url)
1515
+ @state = args[:state] if args.key?(:state)
1516
+ @gps_motivations = args[:gps_motivations] if args.key?(:gps_motivations)
1517
+ @email = args[:email] if args.key?(:email)
1518
+ @family_name = args[:family_name] if args.key?(:family_name)
1519
+ @id = args[:id] if args.key?(:id)
1520
+ @comments = args[:comments] if args.key?(:comments)
1521
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
1522
+ @adwords_customer_id = args[:adwords_customer_id] if args.key?(:adwords_customer_id)
1523
+ end
1524
+ end
1525
+
1526
+ # Debug information about this request.
1527
+ class DebugInfo
1528
+ include Google::Apis::Core::Hashable
1529
+
1530
+ # Info about the server that serviced this request.
1531
+ # Corresponds to the JSON property `serverInfo`
1532
+ # @return [String]
1533
+ attr_accessor :server_info
1354
1534
 
1355
- # Type of lead.
1356
- # Corresponds to the JSON property `type`
1535
+ # Server-side debug stack trace.
1536
+ # Corresponds to the JSON property `serverTraceInfo`
1357
1537
  # @return [String]
1358
- attr_accessor :type
1538
+ attr_accessor :server_trace_info
1539
+
1540
+ # URL of the service that handled this request.
1541
+ # Corresponds to the JSON property `serviceUrl`
1542
+ # @return [String]
1543
+ attr_accessor :service_url
1359
1544
 
1360
1545
  def initialize(**args)
1361
1546
  update!(**args)
@@ -1363,21 +1548,9 @@ module Google
1363
1548
 
1364
1549
  # Update properties of this object
1365
1550
  def update!(**args)
1366
- @given_name = args[:given_name] if args.key?(:given_name)
1367
- @min_monthly_budget = args[:min_monthly_budget] if args.key?(:min_monthly_budget)
1368
- @website_url = args[:website_url] if args.key?(:website_url)
1369
- @language_code = args[:language_code] if args.key?(:language_code)
1370
- @state = args[:state] if args.key?(:state)
1371
- @gps_motivations = args[:gps_motivations] if args.key?(:gps_motivations)
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)
1551
+ @server_info = args[:server_info] if args.key?(:server_info)
1552
+ @server_trace_info = args[:server_trace_info] if args.key?(:server_trace_info)
1553
+ @service_url = args[:service_url] if args.key?(:service_url)
1381
1554
  end
1382
1555
  end
1383
1556
 
@@ -1412,55 +1585,21 @@ module Google
1412
1585
  class CompanyRelation
1413
1586
  include Google::Apis::Core::Hashable
1414
1587
 
1415
- # A URL to a profile photo, e.g. a G+ profile photo.
1416
- # Corresponds to the JSON property `logoUrl`
1417
- # @return [String]
1418
- attr_accessor :logo_url
1419
-
1420
- # The timestamp when the user was approved.
1421
- # @OutputOnly
1422
- # Corresponds to the JSON property `resolvedTimestamp`
1423
- # @return [String]
1424
- attr_accessor :resolved_timestamp
1425
-
1426
- # Indicates if the user is an admin for this company.
1427
- # Corresponds to the JSON property `companyAdmin`
1428
- # @return [Boolean]
1429
- attr_accessor :company_admin
1430
- alias_method :company_admin?, :company_admin
1431
-
1432
- # The primary address for this company.
1433
- # Corresponds to the JSON property `address`
1434
- # @return [String]
1435
- attr_accessor :address
1436
-
1437
- # The flag that indicates if the company is pending verification.
1438
- # Corresponds to the JSON property `isPending`
1439
- # @return [Boolean]
1440
- attr_accessor :is_pending
1441
- alias_method :is_pending?, :is_pending
1442
-
1443
- # The timestamp of when affiliation was requested.
1444
- # @OutputOnly
1445
- # Corresponds to the JSON property `creationTime`
1446
- # @return [String]
1447
- attr_accessor :creation_time
1448
-
1449
1588
  # The state of relationship, in terms of approvals.
1450
1589
  # Corresponds to the JSON property `state`
1451
1590
  # @return [String]
1452
1591
  attr_accessor :state
1453
1592
 
1454
- # The AdWords manager account # associated this company.
1455
- # Corresponds to the JSON property `managerAccount`
1456
- # @return [String]
1457
- attr_accessor :manager_account
1458
-
1459
1593
  # The name (in the company's primary language) for the company.
1460
1594
  # Corresponds to the JSON property `name`
1461
1595
  # @return [String]
1462
1596
  attr_accessor :name
1463
1597
 
1598
+ # The AdWords manager account # associated this company.
1599
+ # Corresponds to the JSON property `managerAccount`
1600
+ # @return [String]
1601
+ attr_accessor :manager_account
1602
+
1464
1603
  # The segment the company is classified as.
1465
1604
  # Corresponds to the JSON property `segment`
1466
1605
  # @return [Array<String>]
@@ -1492,27 +1631,61 @@ module Google
1492
1631
  # @return [String]
1493
1632
  attr_accessor :company_id
1494
1633
 
1634
+ # A URL to a profile photo, e.g. a G+ profile photo.
1635
+ # Corresponds to the JSON property `logoUrl`
1636
+ # @return [String]
1637
+ attr_accessor :logo_url
1638
+
1639
+ # The timestamp when the user was approved.
1640
+ # @OutputOnly
1641
+ # Corresponds to the JSON property `resolvedTimestamp`
1642
+ # @return [String]
1643
+ attr_accessor :resolved_timestamp
1644
+
1645
+ # Indicates if the user is an admin for this company.
1646
+ # Corresponds to the JSON property `companyAdmin`
1647
+ # @return [Boolean]
1648
+ attr_accessor :company_admin
1649
+ alias_method :company_admin?, :company_admin
1650
+
1651
+ # The primary address for this company.
1652
+ # Corresponds to the JSON property `address`
1653
+ # @return [String]
1654
+ attr_accessor :address
1655
+
1656
+ # The flag that indicates if the company is pending verification.
1657
+ # Corresponds to the JSON property `isPending`
1658
+ # @return [Boolean]
1659
+ attr_accessor :is_pending
1660
+ alias_method :is_pending?, :is_pending
1661
+
1662
+ # The timestamp of when affiliation was requested.
1663
+ # @OutputOnly
1664
+ # Corresponds to the JSON property `creationTime`
1665
+ # @return [String]
1666
+ attr_accessor :creation_time
1667
+
1495
1668
  def initialize(**args)
1496
1669
  update!(**args)
1497
1670
  end
1498
1671
 
1499
1672
  # Update properties of this object
1500
1673
  def update!(**args)
1501
- @logo_url = args[:logo_url] if args.key?(:logo_url)
1502
- @resolved_timestamp = args[:resolved_timestamp] if args.key?(:resolved_timestamp)
1503
- @company_admin = args[:company_admin] if args.key?(:company_admin)
1504
- @address = args[:address] if args.key?(:address)
1505
- @is_pending = args[:is_pending] if args.key?(:is_pending)
1506
- @creation_time = args[:creation_time] if args.key?(:creation_time)
1507
1674
  @state = args[:state] if args.key?(:state)
1508
- @manager_account = args[:manager_account] if args.key?(:manager_account)
1509
1675
  @name = args[:name] if args.key?(:name)
1676
+ @manager_account = args[:manager_account] if args.key?(:manager_account)
1510
1677
  @segment = args[:segment] if args.key?(:segment)
1511
1678
  @specialization_status = args[:specialization_status] if args.key?(:specialization_status)
1512
1679
  @badge_tier = args[:badge_tier] if args.key?(:badge_tier)
1513
1680
  @website = args[:website] if args.key?(:website)
1514
1681
  @phone_number = args[:phone_number] if args.key?(:phone_number)
1515
1682
  @company_id = args[:company_id] if args.key?(:company_id)
1683
+ @logo_url = args[:logo_url] if args.key?(:logo_url)
1684
+ @resolved_timestamp = args[:resolved_timestamp] if args.key?(:resolved_timestamp)
1685
+ @company_admin = args[:company_admin] if args.key?(:company_admin)
1686
+ @address = args[:address] if args.key?(:address)
1687
+ @is_pending = args[:is_pending] if args.key?(:is_pending)
1688
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
1516
1689
  end
1517
1690
  end
1518
1691
 
@@ -1603,38 +1776,6 @@ module Google
1603
1776
  end
1604
1777
  end
1605
1778
 
1606
- # Request message for CreateLead.
1607
- class CreateLeadRequest
1608
- include Google::Apis::Core::Hashable
1609
-
1610
- # Common data that is in each API request.
1611
- # Corresponds to the JSON property `requestMetadata`
1612
- # @return [Google::Apis::PartnersV2::RequestMetadata]
1613
- attr_accessor :request_metadata
1614
-
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
1620
-
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
1625
-
1626
- def initialize(**args)
1627
- update!(**args)
1628
- end
1629
-
1630
- # Update properties of this object
1631
- def update!(**args)
1632
- @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
1633
- @lead = args[:lead] if args.key?(:lead)
1634
- @recaptcha_challenge = args[:recaptcha_challenge] if args.key?(:recaptcha_challenge)
1635
- end
1636
- end
1637
-
1638
1779
  # Common data that is in each API request.
1639
1780
  class RequestMetadata
1640
1781
  include Google::Apis::Core::Hashable
@@ -1679,28 +1820,60 @@ module Google
1679
1820
  end
1680
1821
  end
1681
1822
 
1823
+ # Request message for CreateLead.
1824
+ class CreateLeadRequest
1825
+ include Google::Apis::Core::Hashable
1826
+
1827
+ # A lead resource that represents an advertiser contact for a `Company`. These
1828
+ # are usually generated via Google Partner Search (the advertiser portal).
1829
+ # Corresponds to the JSON property `lead`
1830
+ # @return [Google::Apis::PartnersV2::Lead]
1831
+ attr_accessor :lead
1832
+
1833
+ # <a href="https://www.google.com/recaptcha/">reCaptcha</a> challenge info.
1834
+ # Corresponds to the JSON property `recaptchaChallenge`
1835
+ # @return [Google::Apis::PartnersV2::RecaptchaChallenge]
1836
+ attr_accessor :recaptcha_challenge
1837
+
1838
+ # Common data that is in each API request.
1839
+ # Corresponds to the JSON property `requestMetadata`
1840
+ # @return [Google::Apis::PartnersV2::RequestMetadata]
1841
+ attr_accessor :request_metadata
1842
+
1843
+ def initialize(**args)
1844
+ update!(**args)
1845
+ end
1846
+
1847
+ # Update properties of this object
1848
+ def update!(**args)
1849
+ @lead = args[:lead] if args.key?(:lead)
1850
+ @recaptcha_challenge = args[:recaptcha_challenge] if args.key?(:recaptcha_challenge)
1851
+ @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
1852
+ end
1853
+ end
1854
+
1682
1855
  # Key value data pair for an event.
1683
1856
  class EventData
1684
1857
  include Google::Apis::Core::Hashable
1685
1858
 
1686
- # Data type.
1687
- # Corresponds to the JSON property `key`
1688
- # @return [String]
1689
- attr_accessor :key
1690
-
1691
1859
  # Data values.
1692
1860
  # Corresponds to the JSON property `values`
1693
1861
  # @return [Array<String>]
1694
1862
  attr_accessor :values
1695
1863
 
1864
+ # Data type.
1865
+ # Corresponds to the JSON property `key`
1866
+ # @return [String]
1867
+ attr_accessor :key
1868
+
1696
1869
  def initialize(**args)
1697
1870
  update!(**args)
1698
1871
  end
1699
1872
 
1700
1873
  # Update properties of this object
1701
1874
  def update!(**args)
1702
- @key = args[:key] if args.key?(:key)
1703
1875
  @values = args[:values] if args.key?(:values)
1876
+ @key = args[:key] if args.key?(:key)
1704
1877
  end
1705
1878
  end
1706
1879
 
@@ -1708,17 +1881,6 @@ module Google
1708
1881
  class ExamStatus
1709
1882
  include Google::Apis::Core::Hashable
1710
1883
 
1711
- # Whether this exam has been passed and not expired.
1712
- # Corresponds to the JSON property `passed`
1713
- # @return [Boolean]
1714
- attr_accessor :passed
1715
- alias_method :passed?, :passed
1716
-
1717
- # The date the user last taken this exam.
1718
- # Corresponds to the JSON property `taken`
1719
- # @return [String]
1720
- attr_accessor :taken
1721
-
1722
1884
  # Whether this exam is in the state of warning.
1723
1885
  # Corresponds to the JSON property `warning`
1724
1886
  # @return [Boolean]
@@ -1740,18 +1902,29 @@ module Google
1740
1902
  # @return [String]
1741
1903
  attr_accessor :exam_type
1742
1904
 
1905
+ # Whether this exam has been passed and not expired.
1906
+ # Corresponds to the JSON property `passed`
1907
+ # @return [Boolean]
1908
+ attr_accessor :passed
1909
+ alias_method :passed?, :passed
1910
+
1911
+ # The date the user last taken this exam.
1912
+ # Corresponds to the JSON property `taken`
1913
+ # @return [String]
1914
+ attr_accessor :taken
1915
+
1743
1916
  def initialize(**args)
1744
1917
  update!(**args)
1745
1918
  end
1746
1919
 
1747
1920
  # Update properties of this object
1748
1921
  def update!(**args)
1749
- @passed = args[:passed] if args.key?(:passed)
1750
- @taken = args[:taken] if args.key?(:taken)
1751
1922
  @warning = args[:warning] if args.key?(:warning)
1752
1923
  @expiration = args[:expiration] if args.key?(:expiration)
1753
1924
  @last_passed = args[:last_passed] if args.key?(:last_passed)
1754
1925
  @exam_type = args[:exam_type] if args.key?(:exam_type)
1926
+ @passed = args[:passed] if args.key?(:passed)
1927
+ @taken = args[:taken] if args.key?(:taken)
1755
1928
  end
1756
1929
  end
1757
1930
 
@@ -1759,11 +1932,6 @@ module Google
1759
1932
  class ListOffersResponse
1760
1933
  include Google::Apis::Core::Hashable
1761
1934
 
1762
- # Available Offers to be distributed.
1763
- # Corresponds to the JSON property `availableOffers`
1764
- # @return [Array<Google::Apis::PartnersV2::AvailableOffer>]
1765
- attr_accessor :available_offers
1766
-
1767
1935
  # Common data that is in each API response.
1768
1936
  # Corresponds to the JSON property `responseMetadata`
1769
1937
  # @return [Google::Apis::PartnersV2::ResponseMetadata]
@@ -1774,15 +1942,20 @@ module Google
1774
1942
  # @return [String]
1775
1943
  attr_accessor :no_offer_reason
1776
1944
 
1945
+ # Available Offers to be distributed.
1946
+ # Corresponds to the JSON property `availableOffers`
1947
+ # @return [Array<Google::Apis::PartnersV2::AvailableOffer>]
1948
+ attr_accessor :available_offers
1949
+
1777
1950
  def initialize(**args)
1778
1951
  update!(**args)
1779
1952
  end
1780
1953
 
1781
1954
  # Update properties of this object
1782
1955
  def update!(**args)
1783
- @available_offers = args[:available_offers] if args.key?(:available_offers)
1784
1956
  @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1785
1957
  @no_offer_reason = args[:no_offer_reason] if args.key?(:no_offer_reason)
1958
+ @available_offers = args[:available_offers] if args.key?(:available_offers)
1786
1959
  end
1787
1960
  end
1788
1961
 
@@ -1790,6 +1963,11 @@ module Google
1790
1963
  class CountryOfferInfo
1791
1964
  include Google::Apis::Core::Hashable
1792
1965
 
1966
+ # (localized) Get Y amount for that country's offer.
1967
+ # Corresponds to the JSON property `getYAmount`
1968
+ # @return [String]
1969
+ attr_accessor :get_y_amount
1970
+
1793
1971
  # Country code for which offer codes may be requested.
1794
1972
  # Corresponds to the JSON property `offerCountryCode`
1795
1973
  # @return [String]
@@ -1805,21 +1983,16 @@ module Google
1805
1983
  # @return [String]
1806
1984
  attr_accessor :offer_type
1807
1985
 
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
1812
-
1813
1986
  def initialize(**args)
1814
1987
  update!(**args)
1815
1988
  end
1816
1989
 
1817
1990
  # Update properties of this object
1818
1991
  def update!(**args)
1992
+ @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount)
1819
1993
  @offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code)
1820
1994
  @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount)
1821
1995
  @offer_type = args[:offer_type] if args.key?(:offer_type)
1822
- @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount)
1823
1996
  end
1824
1997
  end
1825
1998
 
@@ -1828,6 +2001,15 @@ module Google
1828
2001
  class ListCompaniesResponse
1829
2002
  include Google::Apis::Core::Hashable
1830
2003
 
2004
+ # A token to retrieve next page of results.
2005
+ # Pass this value in the `ListCompaniesRequest.page_token` field in the
2006
+ # subsequent call to
2007
+ # ListCompanies to retrieve the
2008
+ # next page of results.
2009
+ # Corresponds to the JSON property `nextPageToken`
2010
+ # @return [String]
2011
+ attr_accessor :next_page_token
2012
+
1831
2013
  # Common data that is in each API response.
1832
2014
  # Corresponds to the JSON property `responseMetadata`
1833
2015
  # @return [Google::Apis::PartnersV2::ResponseMetadata]
@@ -1838,24 +2020,15 @@ module Google
1838
2020
  # @return [Array<Google::Apis::PartnersV2::Company>]
1839
2021
  attr_accessor :companies
1840
2022
 
1841
- # A token to retrieve next page of results.
1842
- # Pass this value in the `ListCompaniesRequest.page_token` field in the
1843
- # subsequent call to
1844
- # ListCompanies to retrieve the
1845
- # next page of results.
1846
- # Corresponds to the JSON property `nextPageToken`
1847
- # @return [String]
1848
- attr_accessor :next_page_token
1849
-
1850
2023
  def initialize(**args)
1851
2024
  update!(**args)
1852
2025
  end
1853
2026
 
1854
2027
  # Update properties of this object
1855
2028
  def update!(**args)
2029
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1856
2030
  @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1857
2031
  @companies = args[:companies] if args.key?(:companies)
1858
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1859
2032
  end
1860
2033
  end
1861
2034
 
@@ -1863,11 +2036,26 @@ module Google
1863
2036
  class OfferCustomer
1864
2037
  include Google::Apis::Core::Hashable
1865
2038
 
2039
+ # Formatted Spend X amount with currency code.
2040
+ # Corresponds to the JSON property `spendXAmount`
2041
+ # @return [String]
2042
+ attr_accessor :spend_x_amount
2043
+
2044
+ # URL to the customer's AdWords page.
2045
+ # Corresponds to the JSON property `adwordsUrl`
2046
+ # @return [String]
2047
+ attr_accessor :adwords_url
2048
+
1866
2049
  # Country code of the customer.
1867
2050
  # Corresponds to the JSON property `countryCode`
1868
2051
  # @return [String]
1869
2052
  attr_accessor :country_code
1870
2053
 
2054
+ # External CID for the customer.
2055
+ # Corresponds to the JSON property `externalCid`
2056
+ # @return [String]
2057
+ attr_accessor :external_cid
2058
+
1871
2059
  # Time the customer was created.
1872
2060
  # Corresponds to the JSON property `creationTime`
1873
2061
  # @return [String]
@@ -1883,11 +2071,6 @@ module Google
1883
2071
  # @return [String]
1884
2072
  attr_accessor :offer_type
1885
2073
 
1886
- # External CID for the customer.
1887
- # Corresponds to the JSON property `externalCid`
1888
- # @return [String]
1889
- attr_accessor :external_cid
1890
-
1891
2074
  # Formatted Get Y amount with currency code.
1892
2075
  # Corresponds to the JSON property `getYAmount`
1893
2076
  # @return [String]
@@ -1898,31 +2081,21 @@ module Google
1898
2081
  # @return [String]
1899
2082
  attr_accessor :name
1900
2083
 
1901
- # Formatted Spend X amount with currency code.
1902
- # Corresponds to the JSON property `spendXAmount`
1903
- # @return [String]
1904
- attr_accessor :spend_x_amount
1905
-
1906
- # URL to the customer's AdWords page.
1907
- # Corresponds to the JSON property `adwordsUrl`
1908
- # @return [String]
1909
- attr_accessor :adwords_url
1910
-
1911
2084
  def initialize(**args)
1912
2085
  update!(**args)
1913
2086
  end
1914
2087
 
1915
2088
  # Update properties of this object
1916
2089
  def update!(**args)
2090
+ @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount)
2091
+ @adwords_url = args[:adwords_url] if args.key?(:adwords_url)
1917
2092
  @country_code = args[:country_code] if args.key?(:country_code)
2093
+ @external_cid = args[:external_cid] if args.key?(:external_cid)
1918
2094
  @creation_time = args[:creation_time] if args.key?(:creation_time)
1919
2095
  @eligibility_days_left = args[:eligibility_days_left] if args.key?(:eligibility_days_left)
1920
2096
  @offer_type = args[:offer_type] if args.key?(:offer_type)
1921
- @external_cid = args[:external_cid] if args.key?(:external_cid)
1922
2097
  @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount)
1923
2098
  @name = args[:name] if args.key?(:name)
1924
- @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount)
1925
- @adwords_url = args[:adwords_url] if args.key?(:adwords_url)
1926
2099
  end
1927
2100
  end
1928
2101
 
@@ -1930,11 +2103,6 @@ module Google
1930
2103
  class CertificationStatus
1931
2104
  include Google::Apis::Core::Hashable
1932
2105
 
1933
- # List of certification exam statuses.
1934
- # Corresponds to the JSON property `examStatuses`
1935
- # @return [Array<Google::Apis::PartnersV2::CertificationExamStatus>]
1936
- attr_accessor :exam_statuses
1937
-
1938
2106
  # The type of the certification.
1939
2107
  # Corresponds to the JSON property `type`
1940
2108
  # @return [String]
@@ -1951,16 +2119,21 @@ module Google
1951
2119
  attr_accessor :is_certified
1952
2120
  alias_method :is_certified?, :is_certified
1953
2121
 
2122
+ # List of certification exam statuses.
2123
+ # Corresponds to the JSON property `examStatuses`
2124
+ # @return [Array<Google::Apis::PartnersV2::CertificationExamStatus>]
2125
+ attr_accessor :exam_statuses
2126
+
1954
2127
  def initialize(**args)
1955
2128
  update!(**args)
1956
2129
  end
1957
2130
 
1958
2131
  # Update properties of this object
1959
2132
  def update!(**args)
1960
- @exam_statuses = args[:exam_statuses] if args.key?(:exam_statuses)
1961
2133
  @type = args[:type] if args.key?(:type)
1962
2134
  @user_count = args[:user_count] if args.key?(:user_count)
1963
2135
  @is_certified = args[:is_certified] if args.key?(:is_certified)
2136
+ @exam_statuses = args[:exam_statuses] if args.key?(:exam_statuses)
1964
2137
  end
1965
2138
  end
1966
2139
 
@@ -1968,6 +2141,11 @@ module Google
1968
2141
  class LocalizedCompanyInfo
1969
2142
  include Google::Apis::Core::Hashable
1970
2143
 
2144
+ # Localized display name.
2145
+ # Corresponds to the JSON property `displayName`
2146
+ # @return [String]
2147
+ attr_accessor :display_name
2148
+
1971
2149
  # Language code of the localized company info, as defined by
1972
2150
  # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
1973
2151
  # (IETF BCP 47, "Tags for Identifying Languages").
@@ -1985,21 +2163,16 @@ module Google
1985
2163
  # @return [String]
1986
2164
  attr_accessor :overview
1987
2165
 
1988
- # Localized display name.
1989
- # Corresponds to the JSON property `displayName`
1990
- # @return [String]
1991
- attr_accessor :display_name
1992
-
1993
2166
  def initialize(**args)
1994
2167
  update!(**args)
1995
2168
  end
1996
2169
 
1997
2170
  # Update properties of this object
1998
2171
  def update!(**args)
2172
+ @display_name = args[:display_name] if args.key?(:display_name)
1999
2173
  @language_code = args[:language_code] if args.key?(:language_code)
2000
2174
  @country_codes = args[:country_codes] if args.key?(:country_codes)
2001
2175
  @overview = args[:overview] if args.key?(:overview)
2002
- @display_name = args[:display_name] if args.key?(:display_name)
2003
2176
  end
2004
2177
  end
2005
2178
 
@@ -2027,11 +2200,6 @@ module Google
2027
2200
  class ListOffersHistoryResponse
2028
2201
  include Google::Apis::Core::Hashable
2029
2202
 
2030
- # Common data that is in each API response.
2031
- # Corresponds to the JSON property `responseMetadata`
2032
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
2033
- attr_accessor :response_metadata
2034
-
2035
2203
  # True if the user has the option to show entire company history.
2036
2204
  # Corresponds to the JSON property `canShowEntireCompany`
2037
2205
  # @return [Boolean]
@@ -2059,18 +2227,23 @@ module Google
2059
2227
  # @return [String]
2060
2228
  attr_accessor :next_page_token
2061
2229
 
2230
+ # Common data that is in each API response.
2231
+ # Corresponds to the JSON property `responseMetadata`
2232
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
2233
+ attr_accessor :response_metadata
2234
+
2062
2235
  def initialize(**args)
2063
2236
  update!(**args)
2064
2237
  end
2065
2238
 
2066
2239
  # Update properties of this object
2067
2240
  def update!(**args)
2068
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
2069
2241
  @can_show_entire_company = args[:can_show_entire_company] if args.key?(:can_show_entire_company)
2070
2242
  @total_results = args[:total_results] if args.key?(:total_results)
2071
2243
  @showing_entire_company = args[:showing_entire_company] if args.key?(:showing_entire_company)
2072
2244
  @offers = args[:offers] if args.key?(:offers)
2073
2245
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2246
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
2074
2247
  end
2075
2248
  end
2076
2249
 
@@ -2118,179 +2291,6 @@ module Google
2118
2291
  @badge_specialization_state = args[:badge_specialization_state] if args.key?(:badge_specialization_state)
2119
2292
  end
2120
2293
  end
2121
-
2122
- # A user's information on a specific certification.
2123
- class Certification
2124
- include Google::Apis::Core::Hashable
2125
-
2126
- # Whether this certification has been achieved.
2127
- # Corresponds to the JSON property `achieved`
2128
- # @return [Boolean]
2129
- attr_accessor :achieved
2130
- alias_method :achieved?, :achieved
2131
-
2132
- # Date this certification is due to expire.
2133
- # Corresponds to the JSON property `expiration`
2134
- # @return [String]
2135
- attr_accessor :expiration
2136
-
2137
- # Whether this certification is in the state of warning.
2138
- # Corresponds to the JSON property `warning`
2139
- # @return [Boolean]
2140
- attr_accessor :warning
2141
- alias_method :warning?, :warning
2142
-
2143
- # The type of certification, the area of expertise.
2144
- # Corresponds to the JSON property `certificationType`
2145
- # @return [String]
2146
- attr_accessor :certification_type
2147
-
2148
- # The date the user last achieved certification.
2149
- # Corresponds to the JSON property `lastAchieved`
2150
- # @return [String]
2151
- attr_accessor :last_achieved
2152
-
2153
- def initialize(**args)
2154
- update!(**args)
2155
- end
2156
-
2157
- # Update properties of this object
2158
- def update!(**args)
2159
- @achieved = args[:achieved] if args.key?(:achieved)
2160
- @expiration = args[:expiration] if args.key?(:expiration)
2161
- @warning = args[:warning] if args.key?(:warning)
2162
- @certification_type = args[:certification_type] if args.key?(:certification_type)
2163
- @last_achieved = args[:last_achieved] if args.key?(:last_achieved)
2164
- end
2165
- end
2166
-
2167
- # A resource representing a user of the Partners platform.
2168
- class User
2169
- include Google::Apis::Core::Hashable
2170
-
2171
- # A CompanyRelation resource representing information about a user's
2172
- # affiliation and standing with a company in Partners.
2173
- # Corresponds to the JSON property `company`
2174
- # @return [Google::Apis::PartnersV2::CompanyRelation]
2175
- attr_accessor :company
2176
-
2177
- # The profile information of a Partners user.
2178
- # Corresponds to the JSON property `profile`
2179
- # @return [Google::Apis::PartnersV2::UserProfile]
2180
- attr_accessor :profile
2181
-
2182
- # The most recent time the user interacted with the Partners site.
2183
- # @OutputOnly
2184
- # Corresponds to the JSON property `lastAccessTime`
2185
- # @return [String]
2186
- attr_accessor :last_access_time
2187
-
2188
- # The list of emails the user has access to/can select as primary.
2189
- # @OutputOnly
2190
- # Corresponds to the JSON property `primaryEmails`
2191
- # @return [Array<String>]
2192
- attr_accessor :primary_emails
2193
-
2194
- # This is the list of AdWords Manager Accounts the user has edit access to.
2195
- # If the user has edit access to multiple accounts, the user can choose the
2196
- # preferred account and we use this when a personal account is needed. Can
2197
- # be empty meaning the user has access to no accounts.
2198
- # @OutputOnly
2199
- # Corresponds to the JSON property `availableAdwordsManagerAccounts`
2200
- # @return [Array<Google::Apis::PartnersV2::AdWordsManagerAccountInfo>]
2201
- attr_accessor :available_adwords_manager_accounts
2202
-
2203
- # The list of exams the user ever taken. For each type of exam, only one
2204
- # entry is listed.
2205
- # Corresponds to the JSON property `examStatus`
2206
- # @return [Array<Google::Apis::PartnersV2::ExamStatus>]
2207
- attr_accessor :exam_status
2208
-
2209
- # The ID of the user.
2210
- # Corresponds to the JSON property `id`
2211
- # @return [String]
2212
- attr_accessor :id
2213
-
2214
- # Basic information from a public profile.
2215
- # Corresponds to the JSON property `publicProfile`
2216
- # @return [Google::Apis::PartnersV2::PublicProfile]
2217
- attr_accessor :public_profile
2218
-
2219
- # The list of achieved certifications. These are calculated based on exam
2220
- # results and other requirements.
2221
- # @OutputOnly
2222
- # Corresponds to the JSON property `certificationStatus`
2223
- # @return [Array<Google::Apis::PartnersV2::Certification>]
2224
- attr_accessor :certification_status
2225
-
2226
- # The email address used by the user used for company verification.
2227
- # @OutputOnly
2228
- # Corresponds to the JSON property `companyVerificationEmail`
2229
- # @return [String]
2230
- attr_accessor :company_verification_email
2231
-
2232
- def initialize(**args)
2233
- update!(**args)
2234
- end
2235
-
2236
- # Update properties of this object
2237
- def update!(**args)
2238
- @company = args[:company] if args.key?(:company)
2239
- @profile = args[:profile] if args.key?(:profile)
2240
- @last_access_time = args[:last_access_time] if args.key?(:last_access_time)
2241
- @primary_emails = args[:primary_emails] if args.key?(:primary_emails)
2242
- @available_adwords_manager_accounts = args[:available_adwords_manager_accounts] if args.key?(:available_adwords_manager_accounts)
2243
- @exam_status = args[:exam_status] if args.key?(:exam_status)
2244
- @id = args[:id] if args.key?(:id)
2245
- @public_profile = args[:public_profile] if args.key?(:public_profile)
2246
- @certification_status = args[:certification_status] if args.key?(:certification_status)
2247
- @company_verification_email = args[:company_verification_email] if args.key?(:company_verification_email)
2248
- end
2249
- end
2250
-
2251
- # Response message for
2252
- # ListAnalytics.
2253
- class ListAnalyticsResponse
2254
- include Google::Apis::Core::Hashable
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
-
2272
- # Common data that is in each API response.
2273
- # Corresponds to the JSON property `responseMetadata`
2274
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
2275
- attr_accessor :response_metadata
2276
-
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
2281
-
2282
- def initialize(**args)
2283
- update!(**args)
2284
- end
2285
-
2286
- # Update properties of this object
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)
2290
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
2291
- @analytics_summary = args[:analytics_summary] if args.key?(:analytics_summary)
2292
- end
2293
- end
2294
2294
  end
2295
2295
  end
2296
2296
  end