google-api-client 0.9.8 → 0.9.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (238) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +37 -0
  3. data/Gemfile +9 -1
  4. data/README.md +10 -2
  5. data/api_names.yaml +63 -110
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  10. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +260 -13
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +81 -0
  13. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  16. data/generated/google/apis/admin_directory_v1.rb +1 -1
  17. data/generated/google/apis/admin_directory_v1/classes.rb +86 -0
  18. data/generated/google/apis/admin_directory_v1/representations.rb +24 -0
  19. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  20. data/generated/google/apis/admin_reports_v1.rb +3 -3
  21. data/generated/google/apis/admin_reports_v1/service.rb +2 -2
  22. data/generated/google/apis/adsense_v1_4.rb +1 -1
  23. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  24. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  26. data/generated/google/apis/analytics_v3.rb +1 -1
  27. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  28. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  29. data/generated/google/apis/analytics_v3/service.rb +217 -0
  30. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  31. data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
  32. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  33. data/generated/google/apis/androidenterprise_v1/classes.rb +813 -49
  34. data/generated/google/apis/androidenterprise_v1/representations.rb +336 -0
  35. data/generated/google/apis/androidenterprise_v1/service.rb +1234 -145
  36. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  37. data/generated/google/apis/androidpublisher_v2/classes.rb +47 -8
  38. data/generated/google/apis/androidpublisher_v2/representations.rb +27 -0
  39. data/generated/google/apis/androidpublisher_v2/service.rb +55 -0
  40. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  41. data/generated/google/apis/appengine_v1beta5/classes.rb +516 -313
  42. data/generated/google/apis/appengine_v1beta5/representations.rb +115 -22
  43. data/generated/google/apis/appengine_v1beta5/service.rb +329 -33
  44. data/generated/google/apis/appsactivity_v1.rb +1 -1
  45. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  46. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  47. data/generated/google/apis/appstate_v1.rb +1 -1
  48. data/generated/google/apis/bigquery_v2.rb +1 -1
  49. data/generated/google/apis/bigquery_v2/classes.rb +277 -20
  50. data/generated/google/apis/bigquery_v2/representations.rb +86 -0
  51. data/generated/google/apis/bigquery_v2/service.rb +8 -2
  52. data/generated/google/apis/books_v1.rb +2 -2
  53. data/generated/google/apis/books_v1/classes.rb +79 -1
  54. data/generated/google/apis/books_v1/representations.rb +34 -0
  55. data/generated/google/apis/books_v1/service.rb +7 -3
  56. data/generated/google/apis/calendar_v3.rb +1 -1
  57. data/generated/google/apis/civicinfo_v2.rb +3 -2
  58. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  59. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  60. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  61. data/generated/google/apis/classroom_v1.rb +1 -1
  62. data/generated/google/apis/classroom_v1/classes.rb +183 -37
  63. data/generated/google/apis/classroom_v1/representations.rb +74 -9
  64. data/generated/google/apis/classroom_v1/service.rb +403 -38
  65. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  66. data/generated/google/apis/cloudbuild_v1/classes.rb +381 -17
  67. data/generated/google/apis/cloudbuild_v1/representations.rb +137 -2
  68. data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
  69. data/generated/google/apis/clouddebugger_v2.rb +3 -6
  70. data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
  71. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  72. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  73. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +502 -111
  74. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +162 -24
  75. data/generated/google/apis/cloudresourcemanager_v1/service.rb +274 -30
  76. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  77. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +121 -9
  78. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +46 -0
  79. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +71 -58
  80. data/generated/google/apis/compute_beta.rb +1 -1
  81. data/generated/google/apis/compute_beta/classes.rb +2299 -434
  82. data/generated/google/apis/compute_beta/representations.rb +752 -33
  83. data/generated/google/apis/compute_beta/service.rb +6067 -3153
  84. data/generated/google/apis/compute_v1.rb +1 -1
  85. data/generated/google/apis/compute_v1/classes.rb +1681 -207
  86. data/generated/google/apis/compute_v1/representations.rb +552 -0
  87. data/generated/google/apis/compute_v1/service.rb +2797 -1171
  88. data/generated/google/apis/content_v2.rb +1 -1
  89. data/generated/google/apis/content_v2/classes.rb +757 -1
  90. data/generated/google/apis/content_v2/representations.rb +337 -0
  91. data/generated/google/apis/content_v2/service.rb +244 -0
  92. data/generated/google/apis/dataflow_v1b3.rb +38 -0
  93. data/generated/google/apis/dataflow_v1b3/classes.rb +4053 -0
  94. data/generated/google/apis/dataflow_v1b3/representations.rb +1736 -0
  95. data/generated/google/apis/dataflow_v1b3/service.rb +875 -0
  96. data/generated/google/apis/dataproc_v1.rb +2 -2
  97. data/generated/google/apis/dataproc_v1/classes.rb +213 -68
  98. data/generated/google/apis/dataproc_v1/representations.rb +38 -0
  99. data/generated/google/apis/dataproc_v1/service.rb +78 -48
  100. data/generated/google/apis/datastore_v1.rb +38 -0
  101. data/generated/google/apis/datastore_v1/classes.rb +1284 -0
  102. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  103. data/generated/google/apis/datastore_v1/service.rb +259 -0
  104. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  105. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  106. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  107. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  108. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  109. data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
  110. data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
  111. data/generated/google/apis/deploymentmanager_v2/service.rb +217 -55
  112. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  113. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  114. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  115. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  116. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  117. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  118. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  119. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  120. data/generated/google/apis/dns_v1.rb +1 -1
  121. data/generated/google/apis/dns_v1/classes.rb +1 -1
  122. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  123. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  124. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  125. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  126. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  127. data/generated/google/apis/drive_v2.rb +1 -1
  128. data/generated/google/apis/drive_v2/classes.rb +27 -3
  129. data/generated/google/apis/drive_v2/representations.rb +4 -0
  130. data/generated/google/apis/drive_v2/service.rb +16 -3
  131. data/generated/google/apis/drive_v3.rb +1 -1
  132. data/generated/google/apis/drive_v3/classes.rb +50 -16
  133. data/generated/google/apis/drive_v3/representations.rb +4 -0
  134. data/generated/google/apis/drive_v3/service.rb +12 -2
  135. data/generated/google/apis/fitness_v1.rb +8 -2
  136. data/generated/google/apis/fitness_v1/classes.rb +64 -6
  137. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  138. data/generated/google/apis/fitness_v1/service.rb +17 -18
  139. data/generated/google/apis/fusiontables_v2.rb +1 -1
  140. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  141. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  142. data/generated/google/apis/games_management_v1management.rb +1 -1
  143. data/generated/google/apis/games_v1.rb +1 -1
  144. data/generated/google/apis/genomics_v1.rb +2 -4
  145. data/generated/google/apis/genomics_v1/classes.rb +143 -34
  146. data/generated/google/apis/genomics_v1/representations.rb +48 -11
  147. data/generated/google/apis/genomics_v1/service.rb +35 -37
  148. data/generated/google/apis/gmail_v1.rb +10 -1
  149. data/generated/google/apis/gmail_v1/classes.rb +542 -4
  150. data/generated/google/apis/gmail_v1/representations.rb +213 -0
  151. data/generated/google/apis/gmail_v1/service.rb +898 -1
  152. data/generated/google/apis/groupssettings_v1.rb +1 -1
  153. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  154. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  155. data/generated/google/apis/iam_v1.rb +2 -2
  156. data/generated/google/apis/iam_v1/classes.rb +181 -206
  157. data/generated/google/apis/iam_v1/representations.rb +36 -45
  158. data/generated/google/apis/iam_v1/service.rb +101 -67
  159. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  160. data/generated/google/apis/identitytoolkit_v3/classes.rb +171 -1
  161. data/generated/google/apis/identitytoolkit_v3/representations.rb +26 -0
  162. data/generated/google/apis/language_v1beta1.rb +36 -0
  163. data/generated/google/apis/language_v1beta1/classes.rb +599 -0
  164. data/generated/google/apis/language_v1beta1/representations.rb +289 -0
  165. data/generated/google/apis/language_v1beta1/service.rb +152 -0
  166. data/generated/google/apis/logging_v2beta1.rb +6 -6
  167. data/generated/google/apis/logging_v2beta1/classes.rb +760 -731
  168. data/generated/google/apis/logging_v2beta1/representations.rb +136 -147
  169. data/generated/google/apis/logging_v2beta1/service.rb +290 -209
  170. data/generated/google/apis/mirror_v1.rb +2 -2
  171. data/generated/google/apis/mirror_v1/service.rb +1 -1
  172. data/generated/google/apis/monitoring_v3.rb +45 -0
  173. data/generated/google/apis/monitoring_v3/classes.rb +1337 -0
  174. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  175. data/generated/google/apis/monitoring_v3/service.rb +711 -0
  176. data/generated/google/apis/oauth2_v2.rb +1 -1
  177. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  178. data/generated/google/apis/plus_domains_v1.rb +1 -1
  179. data/generated/google/apis/plus_v1.rb +1 -1
  180. data/generated/google/apis/pubsub_v1.rb +1 -1
  181. data/generated/google/apis/pubsub_v1/classes.rb +10 -9
  182. data/generated/google/apis/pubsub_v1/service.rb +128 -27
  183. data/generated/google/apis/qpx_express_v1.rb +1 -1
  184. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  185. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  186. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  187. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  188. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  189. data/generated/google/apis/script_v1.rb +1 -1
  190. data/generated/google/apis/script_v1/classes.rb +6 -0
  191. data/generated/google/apis/script_v1/representations.rb +1 -0
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +910 -89
  194. data/generated/google/apis/sheets_v4/representations.rb +194 -10
  195. data/generated/google/apis/sheets_v4/service.rb +216 -49
  196. data/generated/google/apis/slides_v1.rb +49 -0
  197. data/generated/google/apis/slides_v1/classes.rb +3926 -0
  198. data/generated/google/apis/slides_v1/representations.rb +1722 -0
  199. data/generated/google/apis/slides_v1/service.rb +202 -0
  200. data/generated/google/apis/speech_v1beta1.rb +34 -0
  201. data/generated/google/apis/speech_v1beta1/classes.rb +511 -0
  202. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  203. data/generated/google/apis/speech_v1beta1/service.rb +271 -0
  204. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  205. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -8
  206. data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
  207. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  208. data/generated/google/apis/storage_v1.rb +1 -1
  209. data/generated/google/apis/storage_v1/classes.rb +43 -18
  210. data/generated/google/apis/storage_v1/representations.rb +4 -1
  211. data/generated/google/apis/storage_v1/service.rb +5 -2
  212. data/generated/google/apis/translate_v2.rb +2 -2
  213. data/generated/google/apis/translate_v2/service.rb +1 -1
  214. data/generated/google/apis/vision_v1.rb +1 -1
  215. data/generated/google/apis/vision_v1/classes.rb +12 -11
  216. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  217. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  218. data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
  219. data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
  220. data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
  221. data/generated/google/apis/youtube_v3.rb +1 -1
  222. data/generated/google/apis/youtube_v3/classes.rb +183 -21
  223. data/generated/google/apis/youtube_v3/representations.rb +85 -4
  224. data/generated/google/apis/youtube_v3/service.rb +41 -5
  225. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  226. data/google-api-client.gemspec +2 -1
  227. data/lib/google/apis/core/api_command.rb +4 -0
  228. data/lib/google/apis/core/base_service.rb +10 -4
  229. data/lib/google/apis/core/download.rb +7 -2
  230. data/lib/google/apis/core/http_command.rb +5 -1
  231. data/lib/google/apis/core/upload.rb +7 -1
  232. data/lib/google/apis/errors.rb +2 -2
  233. data/lib/google/apis/generator/annotator.rb +6 -0
  234. data/lib/google/apis/version.rb +1 -1
  235. data/samples/cli/lib/samples/bigquery.rb +101 -0
  236. data/samples/cli/lib/samples/sheets.rb +61 -0
  237. data/sync.rb +71 -0
  238. metadata +55 -13
@@ -82,6 +82,12 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class ChromeOsDeviceAction
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class ChromeOsDevices
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
@@ -512,6 +518,14 @@ module Google
512
518
  end
513
519
  end
514
520
 
521
+ class ChromeOsDeviceAction
522
+ # @private
523
+ class Representation < Google::Apis::Core::JsonRepresentation
524
+ property :action, as: 'action'
525
+ property :deprovision_reason, as: 'deprovisionReason'
526
+ end
527
+ end
528
+
515
529
  class ChromeOsDevices
516
530
  # @private
517
531
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -636,6 +650,7 @@ module Google
636
650
  property :id, as: 'id'
637
651
  property :kind, as: 'kind'
638
652
  property :role, as: 'role'
653
+ property :status, as: 'status'
639
654
  property :type, as: 'type'
640
655
  end
641
656
  end
@@ -658,15 +673,20 @@ module Google
658
673
  collection :applications, as: 'applications', class: Google::Apis::AdminDirectoryV1::MobileDevice::Application, decorator: Google::Apis::AdminDirectoryV1::MobileDevice::Application::Representation
659
674
 
660
675
  property :baseband_version, as: 'basebandVersion'
676
+ property :bootloader_version, as: 'bootloaderVersion'
677
+ property :brand, as: 'brand'
661
678
  property :build_number, as: 'buildNumber'
662
679
  property :default_language, as: 'defaultLanguage'
663
680
  property :developer_options_status, as: 'developerOptionsStatus'
664
681
  property :device_compromised_status, as: 'deviceCompromisedStatus'
665
682
  property :device_id, as: 'deviceId'
683
+ property :device_password_status, as: 'devicePasswordStatus'
666
684
  collection :email, as: 'email'
685
+ property :encryption_status, as: 'encryptionStatus'
667
686
  property :etag, as: 'etag'
668
687
  property :first_sync, as: 'firstSync', type: DateTime
669
688
 
689
+ property :hardware, as: 'hardware'
670
690
  property :hardware_id, as: 'hardwareId'
671
691
  property :imei, as: 'imei'
672
692
  property :kernel_version, as: 'kernelVersion'
@@ -674,13 +694,17 @@ module Google
674
694
  property :last_sync, as: 'lastSync', type: DateTime
675
695
 
676
696
  property :managed_account_is_on_owner_profile, as: 'managedAccountIsOnOwnerProfile'
697
+ property :manufacturer, as: 'manufacturer'
677
698
  property :meid, as: 'meid'
678
699
  property :model, as: 'model'
679
700
  collection :name, as: 'name'
680
701
  property :network_operator, as: 'networkOperator'
681
702
  property :os, as: 'os'
682
703
  collection :other_accounts_info, as: 'otherAccountsInfo'
704
+ property :privilege, as: 'privilege'
705
+ property :release_version, as: 'releaseVersion'
683
706
  property :resource_id, as: 'resourceId'
707
+ property :security_patch_level, as: 'securityPatchLevel'
684
708
  property :serial_number, as: 'serialNumber'
685
709
  property :status, as: 'status'
686
710
  property :supports_work_profile, as: 'supportsWorkProfile'
@@ -198,6 +198,45 @@ module Google
198
198
  execute_or_queue_command(command, &block)
199
199
  end
200
200
 
201
+ # Take action on Chrome OS Device
202
+ # @param [String] customer_id
203
+ # Immutable id of the Google Apps account
204
+ # @param [String] resource_id
205
+ # Immutable id of Chrome OS Device
206
+ # @param [Google::Apis::AdminDirectoryV1::ChromeOsDeviceAction] chrome_os_device_action_object
207
+ # @param [String] fields
208
+ # Selector specifying which fields to include in a partial response.
209
+ # @param [String] quota_user
210
+ # Available to use for quota purposes for server-side applications. Can be any
211
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
212
+ # Overrides userIp if both are provided.
213
+ # @param [String] user_ip
214
+ # IP address of the site where the request originates. Use this if you want to
215
+ # enforce per-user limits.
216
+ # @param [Google::Apis::RequestOptions] options
217
+ # Request-specific options
218
+ #
219
+ # @yield [result, err] Result & error if block supplied
220
+ # @yieldparam result [NilClass] No result returned for this method
221
+ # @yieldparam err [StandardError] error object if request failed
222
+ #
223
+ # @return [void]
224
+ #
225
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
226
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
227
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
228
+ def action_chromeosdevice(customer_id, resource_id, chrome_os_device_action_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
229
+ command = make_simple_command(:post, 'customer/{customerId}/devices/chromeos/{resourceId}/action', options)
230
+ command.request_representation = Google::Apis::AdminDirectoryV1::ChromeOsDeviceAction::Representation
231
+ command.request_object = chrome_os_device_action_object
232
+ command.params['customerId'] = customer_id unless customer_id.nil?
233
+ command.params['resourceId'] = resource_id unless resource_id.nil?
234
+ command.query['fields'] = fields unless fields.nil?
235
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
236
+ command.query['userIp'] = user_ip unless user_ip.nil?
237
+ execute_or_queue_command(command, &block)
238
+ end
239
+
201
240
  # Retrieve Chrome OS Device
202
241
  # @param [String] customer_id
203
242
  # Immutable id of the Google Apps account
@@ -382,7 +421,7 @@ module Google
382
421
  execute_or_queue_command(command, &block)
383
422
  end
384
423
 
385
- # Retrives a customer.
424
+ # Retrieves a customer.
386
425
  # @param [String] customer_key
387
426
  # Id of the customer to be retrieved
388
427
  # @param [String] fields
@@ -679,7 +718,7 @@ module Google
679
718
  execute_or_queue_command(command, &block)
680
719
  end
681
720
 
682
- # Retrives a domain of the customer.
721
+ # Retrieves a domain of the customer.
683
722
  # @param [String] customer
684
723
  # Immutable id of the Google Apps account.
685
724
  # @param [String] domain_name
@@ -20,13 +20,13 @@ module Google
20
20
  module Apis
21
21
  # Admin Reports API
22
22
  #
23
- # Allows the administrators of Google Apps customers to fetch reports about the
24
- # usage, collaboration, security and risk for their users.
23
+ # Fetches reports for the administrators of Google Apps customers about the
24
+ # usage, collaboration, security, and risk for their users.
25
25
  #
26
26
  # @see https://developers.google.com/admin-sdk/reports/
27
27
  module AdminReportsV1
28
28
  VERSION = 'ReportsV1'
29
- REVISION = '20151113'
29
+ REVISION = '20160704'
30
30
 
31
31
  # View audit reports of Google Apps for your domain
32
32
  AUTH_ADMIN_REPORTS_AUDIT_READONLY = 'https://www.googleapis.com/auth/admin.reports.audit.readonly'
@@ -22,8 +22,8 @@ module Google
22
22
  module AdminReportsV1
23
23
  # Admin Reports API
24
24
  #
25
- # Allows the administrators of Google Apps customers to fetch reports about the
26
- # usage, collaboration, security and risk for their users.
25
+ # Fetches reports for the administrators of Google Apps customers about the
26
+ # usage, collaboration, security, and risk for their users.
27
27
  #
28
28
  # @example
29
29
  # require 'google/apis/admin_reports_v1'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/adsense/management/
26
26
  module AdsenseV1_4
27
27
  VERSION = 'V1_4'
28
- REVISION = '20160523'
28
+ REVISION = '20161107'
29
29
 
30
30
  # View and manage your AdSense data
31
31
  AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
@@ -236,7 +236,7 @@ module Google
236
236
  # @return [Google::Apis::AdsenseV1_4::AdStyle::Colors]
237
237
  attr_accessor :colors
238
238
 
239
- # The style of the corners in the ad.
239
+ # The style of the corners in the ad (deprecated: never populated, ignored).
240
240
  # Corresponds to the JSON property `corners`
241
241
  # @return [String]
242
242
  attr_accessor :corners
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/adsense/host/
27
27
  module AdsensehostV4_1
28
28
  VERSION = 'V4_1'
29
- REVISION = '20160523'
29
+ REVISION = '20161107'
30
30
 
31
31
  # View and manage your AdSense host data and associated accounts
32
32
  AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
@@ -209,8 +209,7 @@ module Google
209
209
  # @return [Google::Apis::AdsensehostV4_1::AdStyle::Colors]
210
210
  attr_accessor :colors
211
211
 
212
- # The style of the corners in the ad. Possible values are SQUARE,
213
- # SLIGHTLY_ROUNDED and VERY_ROUNDED.
212
+ # The style of the corners in the ad (deprecated: never populated, ignored).
214
213
  # Corresponds to the JSON property `corners`
215
214
  # @return [String]
216
215
  attr_accessor :corners
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/analytics/
26
26
  module AnalyticsV3
27
27
  VERSION = 'V3'
28
- REVISION = '20160401'
28
+ REVISION = '20161004'
29
29
 
30
30
  # View and manage your Google Analytics data
31
31
  AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
@@ -2413,6 +2413,11 @@ module Google
2413
2413
  attr_accessor :contains_sampled_data
2414
2414
  alias_method :contains_sampled_data?, :contains_sampled_data
2415
2415
 
2416
+ # The last refreshed time in seconds for Analytics data.
2417
+ # Corresponds to the JSON property `dataLastRefreshed`
2418
+ # @return [String]
2419
+ attr_accessor :data_last_refreshed
2420
+
2416
2421
  #
2417
2422
  # Corresponds to the JSON property `dataTable`
2418
2423
  # @return [Google::Apis::AnalyticsV3::GaData::DataTable]
@@ -2498,6 +2503,7 @@ module Google
2498
2503
  def update!(**args)
2499
2504
  @column_headers = args[:column_headers] if args.key?(:column_headers)
2500
2505
  @contains_sampled_data = args[:contains_sampled_data] if args.key?(:contains_sampled_data)
2506
+ @data_last_refreshed = args[:data_last_refreshed] if args.key?(:data_last_refreshed)
2501
2507
  @data_table = args[:data_table] if args.key?(:data_table)
2502
2508
  @id = args[:id] if args.key?(:id)
2503
2509
  @items_per_page = args[:items_per_page] if args.key?(:items_per_page)
@@ -3187,6 +3193,131 @@ module Google
3187
3193
  end
3188
3194
  end
3189
3195
 
3196
+ # JSON template for an Analytics Remarketing Include Conditions.
3197
+ class IncludeConditions
3198
+ include Google::Apis::Core::Hashable
3199
+
3200
+ # The look-back window lets you specify a time frame for evaluating the behavior
3201
+ # that qualifies users for your audience. For example, if your filters include
3202
+ # users from Central Asia, and Transactions Greater than 2, and you set the look-
3203
+ # back window to 14 days, then any user from Central Asia whose cumulative
3204
+ # transactions exceed 2 during the last 14 days is added to the audience.
3205
+ # Corresponds to the JSON property `daysToLookBack`
3206
+ # @return [Fixnum]
3207
+ attr_accessor :days_to_look_back
3208
+
3209
+ # Boolean indicating whether this segment is a smart list. https://support.
3210
+ # google.com/analytics/answer/4628577
3211
+ # Corresponds to the JSON property `isSmartList`
3212
+ # @return [Boolean]
3213
+ attr_accessor :is_smart_list
3214
+ alias_method :is_smart_list?, :is_smart_list
3215
+
3216
+ # Resource type for include conditions.
3217
+ # Corresponds to the JSON property `kind`
3218
+ # @return [String]
3219
+ attr_accessor :kind
3220
+
3221
+ # Number of days (in the range 1 to 540) a user remains in the audience.
3222
+ # Corresponds to the JSON property `membershipDurationDays`
3223
+ # @return [Fixnum]
3224
+ attr_accessor :membership_duration_days
3225
+
3226
+ # The segment condition that will cause a user to be added to an audience.
3227
+ # Corresponds to the JSON property `segment`
3228
+ # @return [String]
3229
+ attr_accessor :segment
3230
+
3231
+ def initialize(**args)
3232
+ update!(**args)
3233
+ end
3234
+
3235
+ # Update properties of this object
3236
+ def update!(**args)
3237
+ @days_to_look_back = args[:days_to_look_back] if args.key?(:days_to_look_back)
3238
+ @is_smart_list = args[:is_smart_list] if args.key?(:is_smart_list)
3239
+ @kind = args[:kind] if args.key?(:kind)
3240
+ @membership_duration_days = args[:membership_duration_days] if args.key?(:membership_duration_days)
3241
+ @segment = args[:segment] if args.key?(:segment)
3242
+ end
3243
+ end
3244
+
3245
+ # JSON template for an Analytics Remarketing Audience Foreign Link.
3246
+ class LinkedForeignAccount
3247
+ include Google::Apis::Core::Hashable
3248
+
3249
+ # Account ID to which this linked foreign account belongs.
3250
+ # Corresponds to the JSON property `accountId`
3251
+ # @return [String]
3252
+ attr_accessor :account_id
3253
+
3254
+ # Boolean indicating whether this is eligible for search.
3255
+ # Corresponds to the JSON property `eligibleForSearch`
3256
+ # @return [Boolean]
3257
+ attr_accessor :eligible_for_search
3258
+ alias_method :eligible_for_search?, :eligible_for_search
3259
+
3260
+ # Entity ad account link ID.
3261
+ # Corresponds to the JSON property `id`
3262
+ # @return [String]
3263
+ attr_accessor :id
3264
+
3265
+ # Internal ID for the web property to which this linked foreign account belongs.
3266
+ # Corresponds to the JSON property `internalWebPropertyId`
3267
+ # @return [String]
3268
+ attr_accessor :internal_web_property_id
3269
+
3270
+ # Resource type for linked foreign account.
3271
+ # Corresponds to the JSON property `kind`
3272
+ # @return [String]
3273
+ attr_accessor :kind
3274
+
3275
+ # The foreign account ID. For example the an AdWords `linkedAccountId` has the
3276
+ # following format XXX-XXX-XXXX.
3277
+ # Corresponds to the JSON property `linkedAccountId`
3278
+ # @return [String]
3279
+ attr_accessor :linked_account_id
3280
+
3281
+ # Remarketing audience ID to which this linked foreign account belongs.
3282
+ # Corresponds to the JSON property `remarketingAudienceId`
3283
+ # @return [String]
3284
+ attr_accessor :remarketing_audience_id
3285
+
3286
+ # The status of this foreign account link.
3287
+ # Corresponds to the JSON property `status`
3288
+ # @return [String]
3289
+ attr_accessor :status
3290
+
3291
+ # The type of the foreign account. For example `ADWORDS_LINKS`.
3292
+ # Corresponds to the JSON property `type`
3293
+ # @return [String]
3294
+ attr_accessor :type
3295
+
3296
+ # Web property ID of the form UA-XXXXX-YY to which this linked foreign account
3297
+ # belongs.
3298
+ # Corresponds to the JSON property `webPropertyId`
3299
+ # @return [String]
3300
+ attr_accessor :web_property_id
3301
+
3302
+ def initialize(**args)
3303
+ update!(**args)
3304
+ end
3305
+
3306
+ # Update properties of this object
3307
+ def update!(**args)
3308
+ @account_id = args[:account_id] if args.key?(:account_id)
3309
+ @eligible_for_search = args[:eligible_for_search] if args.key?(:eligible_for_search)
3310
+ @id = args[:id] if args.key?(:id)
3311
+ @internal_web_property_id = args[:internal_web_property_id] if args.key?(:internal_web_property_id)
3312
+ @kind = args[:kind] if args.key?(:kind)
3313
+ @linked_account_id = args[:linked_account_id] if args.key?(:linked_account_id)
3314
+ @remarketing_audience_id = args[:remarketing_audience_id] if args.key?(:remarketing_audience_id)
3315
+ @status = args[:status] if args.key?(:status)
3316
+ @type = args[:type] if args.key?(:type)
3317
+ @web_property_id = args[:web_property_id] if args.key?(:web_property_id)
3318
+ end
3319
+ end
3320
+
3190
3321
  # Multi-Channel Funnels data for a given view (profile).
3191
3322
  class McfData
3192
3323
  include Google::Apis::Core::Hashable
@@ -3539,8 +3670,10 @@ module Google
3539
3670
 
3540
3671
  # The currency type associated with this view (profile), defaults to USD. The
3541
3672
  # supported values are:
3542
- # ARS, AUD, BGN, BRL, CAD, CHF, CNY, CZK, DKK, EUR, GBP, HKD, HUF, IDR, INR, JPY,
3543
- # KRW, LTL, MXN, NOK, NZD, PHP, PLN, RUB, SEK, THB, TRY, TWD, USD, VND, ZAR
3673
+ # USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD,
3674
+ # THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR,
3675
+ # UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD,
3676
+ # VEF, LVL
3544
3677
  # Corresponds to the JSON property `currency`
3545
3678
  # @return [String]
3546
3679
  attr_accessor :currency
@@ -4267,6 +4400,246 @@ module Google
4267
4400
  end
4268
4401
  end
4269
4402
 
4403
+ # JSON template for an Analytics remarketing audience.
4404
+ class RemarketingAudience
4405
+ include Google::Apis::Core::Hashable
4406
+
4407
+ # Account ID to which this remarketing audience belongs.
4408
+ # Corresponds to the JSON property `accountId`
4409
+ # @return [String]
4410
+ attr_accessor :account_id
4411
+
4412
+ # The simple audience definition that will cause a user to be added to an
4413
+ # audience.
4414
+ # Corresponds to the JSON property `audienceDefinition`
4415
+ # @return [Google::Apis::AnalyticsV3::RemarketingAudience::AudienceDefinition]
4416
+ attr_accessor :audience_definition
4417
+
4418
+ # The type of audience, either SIMPLE or STATE_BASED.
4419
+ # Corresponds to the JSON property `audienceType`
4420
+ # @return [String]
4421
+ attr_accessor :audience_type
4422
+
4423
+ # Time this remarketing audience was created.
4424
+ # Corresponds to the JSON property `created`
4425
+ # @return [DateTime]
4426
+ attr_accessor :created
4427
+
4428
+ # The description of this remarketing audience.
4429
+ # Corresponds to the JSON property `description`
4430
+ # @return [String]
4431
+ attr_accessor :description
4432
+
4433
+ # Remarketing Audience ID.
4434
+ # Corresponds to the JSON property `id`
4435
+ # @return [String]
4436
+ attr_accessor :id
4437
+
4438
+ # Internal ID for the web property to which this remarketing audience belongs.
4439
+ # Corresponds to the JSON property `internalWebPropertyId`
4440
+ # @return [String]
4441
+ attr_accessor :internal_web_property_id
4442
+
4443
+ # Collection type.
4444
+ # Corresponds to the JSON property `kind`
4445
+ # @return [String]
4446
+ attr_accessor :kind
4447
+
4448
+ # The linked ad accounts associated with this remarketing audience. A
4449
+ # remarketing audience can have only one linkedAdAccount currently.
4450
+ # Corresponds to the JSON property `linkedAdAccounts`
4451
+ # @return [Array<Google::Apis::AnalyticsV3::LinkedForeignAccount>]
4452
+ attr_accessor :linked_ad_accounts
4453
+
4454
+ # The views (profiles) that this remarketing audience is linked to.
4455
+ # Corresponds to the JSON property `linkedViews`
4456
+ # @return [Array<String>]
4457
+ attr_accessor :linked_views
4458
+
4459
+ # The name of this remarketing audience.
4460
+ # Corresponds to the JSON property `name`
4461
+ # @return [String]
4462
+ attr_accessor :name
4463
+
4464
+ # A state based audience definition that will cause a user to be added or
4465
+ # removed from an audience.
4466
+ # Corresponds to the JSON property `stateBasedAudienceDefinition`
4467
+ # @return [Google::Apis::AnalyticsV3::RemarketingAudience::StateBasedAudienceDefinition]
4468
+ attr_accessor :state_based_audience_definition
4469
+
4470
+ # Time this remarketing audience was last modified.
4471
+ # Corresponds to the JSON property `updated`
4472
+ # @return [DateTime]
4473
+ attr_accessor :updated
4474
+
4475
+ # Web property ID of the form UA-XXXXX-YY to which this remarketing audience
4476
+ # belongs.
4477
+ # Corresponds to the JSON property `webPropertyId`
4478
+ # @return [String]
4479
+ attr_accessor :web_property_id
4480
+
4481
+ def initialize(**args)
4482
+ update!(**args)
4483
+ end
4484
+
4485
+ # Update properties of this object
4486
+ def update!(**args)
4487
+ @account_id = args[:account_id] if args.key?(:account_id)
4488
+ @audience_definition = args[:audience_definition] if args.key?(:audience_definition)
4489
+ @audience_type = args[:audience_type] if args.key?(:audience_type)
4490
+ @created = args[:created] if args.key?(:created)
4491
+ @description = args[:description] if args.key?(:description)
4492
+ @id = args[:id] if args.key?(:id)
4493
+ @internal_web_property_id = args[:internal_web_property_id] if args.key?(:internal_web_property_id)
4494
+ @kind = args[:kind] if args.key?(:kind)
4495
+ @linked_ad_accounts = args[:linked_ad_accounts] if args.key?(:linked_ad_accounts)
4496
+ @linked_views = args[:linked_views] if args.key?(:linked_views)
4497
+ @name = args[:name] if args.key?(:name)
4498
+ @state_based_audience_definition = args[:state_based_audience_definition] if args.key?(:state_based_audience_definition)
4499
+ @updated = args[:updated] if args.key?(:updated)
4500
+ @web_property_id = args[:web_property_id] if args.key?(:web_property_id)
4501
+ end
4502
+
4503
+ # The simple audience definition that will cause a user to be added to an
4504
+ # audience.
4505
+ class AudienceDefinition
4506
+ include Google::Apis::Core::Hashable
4507
+
4508
+ # JSON template for an Analytics Remarketing Include Conditions.
4509
+ # Corresponds to the JSON property `includeConditions`
4510
+ # @return [Google::Apis::AnalyticsV3::IncludeConditions]
4511
+ attr_accessor :include_conditions
4512
+
4513
+ def initialize(**args)
4514
+ update!(**args)
4515
+ end
4516
+
4517
+ # Update properties of this object
4518
+ def update!(**args)
4519
+ @include_conditions = args[:include_conditions] if args.key?(:include_conditions)
4520
+ end
4521
+ end
4522
+
4523
+ # A state based audience definition that will cause a user to be added or
4524
+ # removed from an audience.
4525
+ class StateBasedAudienceDefinition
4526
+ include Google::Apis::Core::Hashable
4527
+
4528
+ # Defines the conditions to exclude users from the audience.
4529
+ # Corresponds to the JSON property `excludeConditions`
4530
+ # @return [Google::Apis::AnalyticsV3::RemarketingAudience::StateBasedAudienceDefinition::ExcludeConditions]
4531
+ attr_accessor :exclude_conditions
4532
+
4533
+ # JSON template for an Analytics Remarketing Include Conditions.
4534
+ # Corresponds to the JSON property `includeConditions`
4535
+ # @return [Google::Apis::AnalyticsV3::IncludeConditions]
4536
+ attr_accessor :include_conditions
4537
+
4538
+ def initialize(**args)
4539
+ update!(**args)
4540
+ end
4541
+
4542
+ # Update properties of this object
4543
+ def update!(**args)
4544
+ @exclude_conditions = args[:exclude_conditions] if args.key?(:exclude_conditions)
4545
+ @include_conditions = args[:include_conditions] if args.key?(:include_conditions)
4546
+ end
4547
+
4548
+ # Defines the conditions to exclude users from the audience.
4549
+ class ExcludeConditions
4550
+ include Google::Apis::Core::Hashable
4551
+
4552
+ # Whether to make the exclusion TEMPORARY or PERMANENT.
4553
+ # Corresponds to the JSON property `exclusionDuration`
4554
+ # @return [String]
4555
+ attr_accessor :exclusion_duration
4556
+
4557
+ # The segment condition that will cause a user to be removed from an audience.
4558
+ # Corresponds to the JSON property `segment`
4559
+ # @return [String]
4560
+ attr_accessor :segment
4561
+
4562
+ def initialize(**args)
4563
+ update!(**args)
4564
+ end
4565
+
4566
+ # Update properties of this object
4567
+ def update!(**args)
4568
+ @exclusion_duration = args[:exclusion_duration] if args.key?(:exclusion_duration)
4569
+ @segment = args[:segment] if args.key?(:segment)
4570
+ end
4571
+ end
4572
+ end
4573
+ end
4574
+
4575
+ # A remarketing audience collection lists Analytics remarketing audiences to
4576
+ # which the user has access. Each resource in the collection corresponds to a
4577
+ # single Analytics remarketing audience.
4578
+ class RemarketingAudiences
4579
+ include Google::Apis::Core::Hashable
4580
+
4581
+ # A list of remarketing audiences.
4582
+ # Corresponds to the JSON property `items`
4583
+ # @return [Array<Google::Apis::AnalyticsV3::RemarketingAudience>]
4584
+ attr_accessor :items
4585
+
4586
+ # The maximum number of resources the response can contain, regardless of the
4587
+ # actual number of resources returned. Its value ranges from 1 to 1000 with a
4588
+ # value of 1000 by default, or otherwise specified by the max-results query
4589
+ # parameter.
4590
+ # Corresponds to the JSON property `itemsPerPage`
4591
+ # @return [Fixnum]
4592
+ attr_accessor :items_per_page
4593
+
4594
+ # Collection type.
4595
+ # Corresponds to the JSON property `kind`
4596
+ # @return [String]
4597
+ attr_accessor :kind
4598
+
4599
+ # Link to next page for this remarketing audience collection.
4600
+ # Corresponds to the JSON property `nextLink`
4601
+ # @return [String]
4602
+ attr_accessor :next_link
4603
+
4604
+ # Link to previous page for this view (profile) collection.
4605
+ # Corresponds to the JSON property `previousLink`
4606
+ # @return [String]
4607
+ attr_accessor :previous_link
4608
+
4609
+ # The starting index of the resources, which is 1 by default or otherwise
4610
+ # specified by the start-index query parameter.
4611
+ # Corresponds to the JSON property `startIndex`
4612
+ # @return [Fixnum]
4613
+ attr_accessor :start_index
4614
+
4615
+ # The total number of results for the query, regardless of the number of results
4616
+ # in the response.
4617
+ # Corresponds to the JSON property `totalResults`
4618
+ # @return [Fixnum]
4619
+ attr_accessor :total_results
4620
+
4621
+ # Email ID of the authenticated user
4622
+ # Corresponds to the JSON property `username`
4623
+ # @return [String]
4624
+ attr_accessor :username
4625
+
4626
+ def initialize(**args)
4627
+ update!(**args)
4628
+ end
4629
+
4630
+ # Update properties of this object
4631
+ def update!(**args)
4632
+ @items = args[:items] if args.key?(:items)
4633
+ @items_per_page = args[:items_per_page] if args.key?(:items_per_page)
4634
+ @kind = args[:kind] if args.key?(:kind)
4635
+ @next_link = args[:next_link] if args.key?(:next_link)
4636
+ @previous_link = args[:previous_link] if args.key?(:previous_link)
4637
+ @start_index = args[:start_index] if args.key?(:start_index)
4638
+ @total_results = args[:total_results] if args.key?(:total_results)
4639
+ @username = args[:username] if args.key?(:username)
4640
+ end
4641
+ end
4642
+
4270
4643
  # JSON template for an Analytics segment.
4271
4644
  class Segment
4272
4645
  include Google::Apis::Core::Hashable
@@ -4425,7 +4798,10 @@ module Google
4425
4798
  # @return [String]
4426
4799
  attr_accessor :dimensions
4427
4800
 
4428
- # The type of download you need to use for the report data file.
4801
+ # The type of download you need to use for the report data file. Possible values
4802
+ # include `GOOGLE_DRIVE` and `GOOGLE_CLOUD_STORAGE`. If the value is `
4803
+ # GOOGLE_DRIVE`, see the `driveDownloadDetails` field. If the value is `
4804
+ # GOOGLE_CLOUD_STORAGE`, see the `cloudStorageDownloadDetails` field.
4429
4805
  # Corresponds to the JSON property `downloadType`
4430
4806
  # @return [String]
4431
4807
  attr_accessor :download_type