google-api-client 0.9.8 → 0.9.15

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 (197) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/Gemfile +9 -1
  4. data/README.md +10 -2
  5. data/api_names.yaml +61 -110
  6. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +160 -9
  8. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +46 -0
  9. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -8
  10. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  11. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  12. data/generated/google/apis/admin_directory_v1.rb +1 -1
  13. data/generated/google/apis/admin_directory_v1/classes.rb +6 -0
  14. data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/service.rb +2 -2
  16. data/generated/google/apis/admin_reports_v1.rb +3 -3
  17. data/generated/google/apis/admin_reports_v1/service.rb +2 -2
  18. data/generated/google/apis/adsense_v1_4.rb +1 -1
  19. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  20. data/generated/google/apis/analytics_v3.rb +1 -1
  21. data/generated/google/apis/analytics_v3/classes.rb +371 -1
  22. data/generated/google/apis/analytics_v3/representations.rb +135 -0
  23. data/generated/google/apis/analytics_v3/service.rb +218 -0
  24. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  25. data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
  26. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  27. data/generated/google/apis/androidenterprise_v1/classes.rb +722 -48
  28. data/generated/google/apis/androidenterprise_v1/representations.rb +305 -0
  29. data/generated/google/apis/androidenterprise_v1/service.rb +1180 -146
  30. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  31. data/generated/google/apis/androidpublisher_v2/classes.rb +9 -8
  32. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  33. data/generated/google/apis/appengine_v1beta5/classes.rb +430 -288
  34. data/generated/google/apis/appengine_v1beta5/representations.rb +84 -10
  35. data/generated/google/apis/appengine_v1beta5/service.rb +285 -25
  36. data/generated/google/apis/appsactivity_v1.rb +1 -1
  37. data/generated/google/apis/appstate_v1.rb +1 -1
  38. data/generated/google/apis/bigquery_v2.rb +1 -1
  39. data/generated/google/apis/bigquery_v2/classes.rb +254 -6
  40. data/generated/google/apis/bigquery_v2/representations.rb +85 -0
  41. data/generated/google/apis/bigquery_v2/service.rb +8 -2
  42. data/generated/google/apis/books_v1.rb +2 -2
  43. data/generated/google/apis/books_v1/classes.rb +77 -0
  44. data/generated/google/apis/books_v1/representations.rb +34 -0
  45. data/generated/google/apis/books_v1/service.rb +7 -3
  46. data/generated/google/apis/calendar_v3.rb +1 -1
  47. data/generated/google/apis/civicinfo_v2.rb +3 -2
  48. data/generated/google/apis/civicinfo_v2/classes.rb +16 -4
  49. data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
  50. data/generated/google/apis/civicinfo_v2/service.rb +8 -2
  51. data/generated/google/apis/classroom_v1.rb +1 -1
  52. data/generated/google/apis/classroom_v1/classes.rb +176 -37
  53. data/generated/google/apis/classroom_v1/representations.rb +73 -9
  54. data/generated/google/apis/classroom_v1/service.rb +392 -37
  55. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  56. data/generated/google/apis/cloudbuild_v1/classes.rb +320 -12
  57. data/generated/google/apis/cloudbuild_v1/representations.rb +136 -2
  58. data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
  59. data/generated/google/apis/clouddebugger_v2.rb +3 -6
  60. data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
  61. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  62. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  63. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +157 -3
  64. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +33 -0
  65. data/generated/google/apis/cloudresourcemanager_v1/service.rb +60 -21
  66. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  67. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +22 -5
  68. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +2 -0
  69. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +61 -39
  70. data/generated/google/apis/compute_beta.rb +1 -1
  71. data/generated/google/apis/compute_beta/classes.rb +1620 -199
  72. data/generated/google/apis/compute_beta/representations.rb +563 -0
  73. data/generated/google/apis/compute_beta/service.rb +5123 -2690
  74. data/generated/google/apis/compute_v1.rb +1 -1
  75. data/generated/google/apis/compute_v1/classes.rb +1717 -295
  76. data/generated/google/apis/compute_v1/representations.rb +536 -0
  77. data/generated/google/apis/compute_v1/service.rb +2038 -1041
  78. data/generated/google/apis/content_v2.rb +1 -1
  79. data/generated/google/apis/content_v2/classes.rb +709 -1
  80. data/generated/google/apis/content_v2/representations.rb +319 -0
  81. data/generated/google/apis/content_v2/service.rb +244 -0
  82. data/generated/google/apis/datastore_v1.rb +38 -0
  83. data/generated/google/apis/datastore_v1/classes.rb +1284 -0
  84. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  85. data/generated/google/apis/datastore_v1/service.rb +259 -0
  86. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  87. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  88. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  89. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  90. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  91. data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
  92. data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
  93. data/generated/google/apis/deploymentmanager_v2/service.rb +162 -50
  94. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  95. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  96. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  97. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  98. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  99. data/generated/google/apis/dfareporting_v2_6/classes.rb +11585 -0
  100. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  101. data/generated/google/apis/dfareporting_v2_6/service.rb +9006 -0
  102. data/generated/google/apis/dns_v1.rb +1 -1
  103. data/generated/google/apis/dns_v1/classes.rb +1 -1
  104. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  105. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  106. data/generated/google/apis/drive_v2.rb +1 -1
  107. data/generated/google/apis/drive_v2/classes.rb +11 -3
  108. data/generated/google/apis/drive_v2/representations.rb +2 -0
  109. data/generated/google/apis/drive_v2/service.rb +8 -2
  110. data/generated/google/apis/drive_v3.rb +1 -1
  111. data/generated/google/apis/drive_v3/classes.rb +36 -16
  112. data/generated/google/apis/drive_v3/representations.rb +2 -0
  113. data/generated/google/apis/drive_v3/service.rb +4 -1
  114. data/generated/google/apis/fitness_v1.rb +8 -2
  115. data/generated/google/apis/fitness_v1/classes.rb +64 -6
  116. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  117. data/generated/google/apis/fitness_v1/service.rb +17 -18
  118. data/generated/google/apis/fusiontables_v2.rb +1 -1
  119. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  120. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  121. data/generated/google/apis/games_management_v1management.rb +1 -1
  122. data/generated/google/apis/games_v1.rb +1 -1
  123. data/generated/google/apis/genomics_v1.rb +2 -4
  124. data/generated/google/apis/genomics_v1/classes.rb +111 -9
  125. data/generated/google/apis/genomics_v1/representations.rb +36 -0
  126. data/generated/google/apis/genomics_v1/service.rb +4 -7
  127. data/generated/google/apis/gmail_v1.rb +7 -1
  128. data/generated/google/apis/gmail_v1/classes.rb +540 -0
  129. data/generated/google/apis/gmail_v1/representations.rb +213 -0
  130. data/generated/google/apis/gmail_v1/service.rb +898 -1
  131. data/generated/google/apis/groupssettings_v1.rb +1 -1
  132. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  133. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  134. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  135. data/generated/google/apis/identitytoolkit_v3/classes.rb +154 -1
  136. data/generated/google/apis/identitytoolkit_v3/representations.rb +35 -0
  137. data/generated/google/apis/language_v1beta1.rb +36 -0
  138. data/generated/google/apis/language_v1beta1/classes.rb +596 -0
  139. data/generated/google/apis/language_v1beta1/representations.rb +289 -0
  140. data/generated/google/apis/language_v1beta1/service.rb +154 -0
  141. data/generated/google/apis/mirror_v1.rb +2 -2
  142. data/generated/google/apis/mirror_v1/service.rb +1 -1
  143. data/generated/google/apis/monitoring_v3.rb +45 -0
  144. data/generated/google/apis/monitoring_v3/classes.rb +1328 -0
  145. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  146. data/generated/google/apis/monitoring_v3/service.rb +711 -0
  147. data/generated/google/apis/oauth2_v2.rb +1 -1
  148. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  149. data/generated/google/apis/plus_domains_v1.rb +1 -1
  150. data/generated/google/apis/plus_v1.rb +1 -1
  151. data/generated/google/apis/qpx_express_v1.rb +1 -1
  152. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  153. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  154. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  155. data/generated/google/apis/script_v1.rb +1 -1
  156. data/generated/google/apis/script_v1/classes.rb +6 -0
  157. data/generated/google/apis/script_v1/representations.rb +1 -0
  158. data/generated/google/apis/sheets_v4.rb +1 -1
  159. data/generated/google/apis/sheets_v4/classes.rb +35 -0
  160. data/generated/google/apis/sheets_v4/representations.rb +16 -0
  161. data/generated/google/apis/sheets_v4/service.rb +55 -0
  162. data/generated/google/apis/speech_v1beta1.rb +34 -0
  163. data/generated/google/apis/speech_v1beta1/classes.rb +521 -0
  164. data/generated/google/apis/speech_v1beta1/representations.rb +219 -0
  165. data/generated/google/apis/speech_v1beta1/service.rb +268 -0
  166. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  167. data/generated/google/apis/sqladmin_v1beta4/classes.rb +26 -8
  168. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
  169. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  170. data/generated/google/apis/storage_v1.rb +1 -1
  171. data/generated/google/apis/storage_v1/classes.rb +19 -10
  172. data/generated/google/apis/translate_v2.rb +2 -2
  173. data/generated/google/apis/translate_v2/service.rb +1 -1
  174. data/generated/google/apis/vision_v1.rb +1 -1
  175. data/generated/google/apis/vision_v1/classes.rb +10 -9
  176. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  177. data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
  178. data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
  179. data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
  180. data/generated/google/apis/youtube_v3.rb +1 -1
  181. data/generated/google/apis/youtube_v3/classes.rb +163 -2
  182. data/generated/google/apis/youtube_v3/representations.rb +82 -0
  183. data/generated/google/apis/youtube_v3/service.rb +6 -2
  184. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  185. data/google-api-client.gemspec +2 -1
  186. data/lib/google/apis/core/api_command.rb +4 -0
  187. data/lib/google/apis/core/base_service.rb +10 -4
  188. data/lib/google/apis/core/download.rb +7 -2
  189. data/lib/google/apis/core/http_command.rb +5 -1
  190. data/lib/google/apis/core/upload.rb +7 -1
  191. data/lib/google/apis/errors.rb +2 -2
  192. data/lib/google/apis/generator/annotator.rb +6 -0
  193. data/lib/google/apis/version.rb +1 -1
  194. data/samples/cli/lib/samples/bigquery.rb +101 -0
  195. data/samples/cli/lib/samples/sheets.rb +61 -0
  196. data/sync.rb +71 -0
  197. metadata +43 -13
@@ -376,6 +376,18 @@ module Google
376
376
  include Google::Apis::Core::JsonObjectSupport
377
377
  end
378
378
 
379
+ class IncludeConditions
380
+ class Representation < Google::Apis::Core::JsonRepresentation; end
381
+
382
+ include Google::Apis::Core::JsonObjectSupport
383
+ end
384
+
385
+ class LinkedForeignAccount
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
379
391
  class McfData
380
392
  class Representation < Google::Apis::Core::JsonRepresentation; end
381
393
 
@@ -490,6 +502,36 @@ module Google
490
502
  include Google::Apis::Core::JsonObjectSupport
491
503
  end
492
504
 
505
+ class RemarketingAudience
506
+ class Representation < Google::Apis::Core::JsonRepresentation; end
507
+
508
+ class AudienceDefinition
509
+ class Representation < Google::Apis::Core::JsonRepresentation; end
510
+
511
+ include Google::Apis::Core::JsonObjectSupport
512
+ end
513
+
514
+ class StateBasedAudienceDefinition
515
+ class Representation < Google::Apis::Core::JsonRepresentation; end
516
+
517
+ class ExcludeConditions
518
+ class Representation < Google::Apis::Core::JsonRepresentation; end
519
+
520
+ include Google::Apis::Core::JsonObjectSupport
521
+ end
522
+
523
+ include Google::Apis::Core::JsonObjectSupport
524
+ end
525
+
526
+ include Google::Apis::Core::JsonObjectSupport
527
+ end
528
+
529
+ class RemarketingAudiences
530
+ class Representation < Google::Apis::Core::JsonRepresentation; end
531
+
532
+ include Google::Apis::Core::JsonObjectSupport
533
+ end
534
+
493
535
  class Segment
494
536
  class Representation < Google::Apis::Core::JsonRepresentation; end
495
537
 
@@ -1366,6 +1408,33 @@ module Google
1366
1408
  end
1367
1409
  end
1368
1410
 
1411
+ class IncludeConditions
1412
+ # @private
1413
+ class Representation < Google::Apis::Core::JsonRepresentation
1414
+ property :days_to_look_back, as: 'daysToLookBack'
1415
+ property :is_smart_list, as: 'isSmartList'
1416
+ property :kind, as: 'kind'
1417
+ property :membership_duration_days, as: 'membershipDurationDays'
1418
+ property :segment, as: 'segment'
1419
+ end
1420
+ end
1421
+
1422
+ class LinkedForeignAccount
1423
+ # @private
1424
+ class Representation < Google::Apis::Core::JsonRepresentation
1425
+ property :account_id, as: 'accountId'
1426
+ property :eligible_for_search, as: 'eligibleForSearch'
1427
+ property :id, as: 'id'
1428
+ property :internal_web_property_id, as: 'internalWebPropertyId'
1429
+ property :kind, as: 'kind'
1430
+ property :linked_account_id, as: 'linkedAccountId'
1431
+ property :remarketing_audience_id, as: 'remarketingAudienceId'
1432
+ property :status, as: 'status'
1433
+ property :type, as: 'type'
1434
+ property :web_property_id, as: 'webPropertyId'
1435
+ end
1436
+ end
1437
+
1369
1438
  class McfData
1370
1439
  # @private
1371
1440
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1633,6 +1702,72 @@ module Google
1633
1702
  end
1634
1703
  end
1635
1704
 
1705
+ class RemarketingAudience
1706
+ # @private
1707
+ class Representation < Google::Apis::Core::JsonRepresentation
1708
+ property :account_id, as: 'accountId'
1709
+ property :audience_definition, as: 'audienceDefinition', class: Google::Apis::AnalyticsV3::RemarketingAudience::AudienceDefinition, decorator: Google::Apis::AnalyticsV3::RemarketingAudience::AudienceDefinition::Representation
1710
+
1711
+ property :audience_type, as: 'audienceType'
1712
+ property :created, as: 'created', type: DateTime
1713
+
1714
+ property :description, as: 'description'
1715
+ property :id, as: 'id'
1716
+ property :internal_web_property_id, as: 'internalWebPropertyId'
1717
+ property :kind, as: 'kind'
1718
+ collection :linked_ad_accounts, as: 'linkedAdAccounts', class: Google::Apis::AnalyticsV3::LinkedForeignAccount, decorator: Google::Apis::AnalyticsV3::LinkedForeignAccount::Representation
1719
+
1720
+ collection :linked_views, as: 'linkedViews'
1721
+ property :name, as: 'name'
1722
+ property :state_based_audience_definition, as: 'stateBasedAudienceDefinition', class: Google::Apis::AnalyticsV3::RemarketingAudience::StateBasedAudienceDefinition, decorator: Google::Apis::AnalyticsV3::RemarketingAudience::StateBasedAudienceDefinition::Representation
1723
+
1724
+ property :updated, as: 'updated', type: DateTime
1725
+
1726
+ property :web_property_id, as: 'webPropertyId'
1727
+ end
1728
+
1729
+ class AudienceDefinition
1730
+ # @private
1731
+ class Representation < Google::Apis::Core::JsonRepresentation
1732
+ property :include_conditions, as: 'includeConditions', class: Google::Apis::AnalyticsV3::IncludeConditions, decorator: Google::Apis::AnalyticsV3::IncludeConditions::Representation
1733
+
1734
+ end
1735
+ end
1736
+
1737
+ class StateBasedAudienceDefinition
1738
+ # @private
1739
+ class Representation < Google::Apis::Core::JsonRepresentation
1740
+ property :exclude_conditions, as: 'excludeConditions', class: Google::Apis::AnalyticsV3::RemarketingAudience::StateBasedAudienceDefinition::ExcludeConditions, decorator: Google::Apis::AnalyticsV3::RemarketingAudience::StateBasedAudienceDefinition::ExcludeConditions::Representation
1741
+
1742
+ property :include_conditions, as: 'includeConditions', class: Google::Apis::AnalyticsV3::IncludeConditions, decorator: Google::Apis::AnalyticsV3::IncludeConditions::Representation
1743
+
1744
+ end
1745
+
1746
+ class ExcludeConditions
1747
+ # @private
1748
+ class Representation < Google::Apis::Core::JsonRepresentation
1749
+ property :exclusion_duration, as: 'exclusionDuration'
1750
+ property :segment, as: 'segment'
1751
+ end
1752
+ end
1753
+ end
1754
+ end
1755
+
1756
+ class RemarketingAudiences
1757
+ # @private
1758
+ class Representation < Google::Apis::Core::JsonRepresentation
1759
+ collection :items, as: 'items', class: Google::Apis::AnalyticsV3::RemarketingAudience, decorator: Google::Apis::AnalyticsV3::RemarketingAudience::Representation
1760
+
1761
+ property :items_per_page, as: 'itemsPerPage'
1762
+ property :kind, as: 'kind'
1763
+ property :next_link, as: 'nextLink'
1764
+ property :previous_link, as: 'previousLink'
1765
+ property :start_index, as: 'startIndex'
1766
+ property :total_results, as: 'totalResults'
1767
+ property :username, as: 'username'
1768
+ end
1769
+ end
1770
+
1636
1771
  class Segment
1637
1772
  # @private
1638
1773
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2450,6 +2450,224 @@ module Google
2450
2450
  execute_or_queue_command(command, &block)
2451
2451
  end
2452
2452
 
2453
+ # Gets remarketing audiences to which the user has access.
2454
+ # @param [String] account_id
2455
+ # Account ID for the remarketing audience to retrieve.
2456
+ # @param [String] web_property_id
2457
+ # Web property ID for the remarketing audience to retrieve.
2458
+ # @param [String] remarketing_audience_id
2459
+ # The ID to retrieve the Remarketing Audience for.
2460
+ # @param [String] fields
2461
+ # Selector specifying which fields to include in a partial response.
2462
+ # @param [String] quota_user
2463
+ # Available to use for quota purposes for server-side applications. Can be any
2464
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2465
+ # Overrides userIp if both are provided.
2466
+ # @param [String] user_ip
2467
+ # IP address of the site where the request originates. Use this if you want to
2468
+ # enforce per-user limits.
2469
+ # @param [Google::Apis::RequestOptions] options
2470
+ # Request-specific options
2471
+ #
2472
+ # @yield [result, err] Result & error if block supplied
2473
+ # @yieldparam result [Google::Apis::AnalyticsV3::RemarketingAudience] parsed result object
2474
+ # @yieldparam err [StandardError] error object if request failed
2475
+ #
2476
+ # @return [Google::Apis::AnalyticsV3::RemarketingAudience]
2477
+ #
2478
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2479
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2480
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2481
+ def get_management_remarketing_audience(account_id, web_property_id, remarketing_audience_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2482
+ command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', options)
2483
+ command.response_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
2484
+ command.response_class = Google::Apis::AnalyticsV3::RemarketingAudience
2485
+ command.params['accountId'] = account_id unless account_id.nil?
2486
+ command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
2487
+ command.params['remarketingAudienceId'] = remarketing_audience_id unless remarketing_audience_id.nil?
2488
+ command.query['fields'] = fields unless fields.nil?
2489
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2490
+ command.query['userIp'] = user_ip unless user_ip.nil?
2491
+ execute_or_queue_command(command, &block)
2492
+ end
2493
+
2494
+ # Creates a new remarketing audiences.
2495
+ # @param [String] account_id
2496
+ # Account ID to create the remarketing audience for.
2497
+ # @param [String] web_property_id
2498
+ # Web property ID to create the remarketing audience for.
2499
+ # @param [Google::Apis::AnalyticsV3::RemarketingAudience] remarketing_audience_object
2500
+ # @param [String] fields
2501
+ # Selector specifying which fields to include in a partial response.
2502
+ # @param [String] quota_user
2503
+ # Available to use for quota purposes for server-side applications. Can be any
2504
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2505
+ # Overrides userIp if both are provided.
2506
+ # @param [String] user_ip
2507
+ # IP address of the site where the request originates. Use this if you want to
2508
+ # enforce per-user limits.
2509
+ # @param [Google::Apis::RequestOptions] options
2510
+ # Request-specific options
2511
+ #
2512
+ # @yield [result, err] Result & error if block supplied
2513
+ # @yieldparam result [Google::Apis::AnalyticsV3::RemarketingAudience] parsed result object
2514
+ # @yieldparam err [StandardError] error object if request failed
2515
+ #
2516
+ # @return [Google::Apis::AnalyticsV3::RemarketingAudience]
2517
+ #
2518
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2519
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2520
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2521
+ def insert_management_remarketing_audience(account_id, web_property_id, remarketing_audience_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2522
+ command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences', options)
2523
+ command.request_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
2524
+ command.request_object = remarketing_audience_object
2525
+ command.response_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
2526
+ command.response_class = Google::Apis::AnalyticsV3::RemarketingAudience
2527
+ command.params['accountId'] = account_id unless account_id.nil?
2528
+ command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
2529
+ command.query['fields'] = fields unless fields.nil?
2530
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2531
+ command.query['userIp'] = user_ip unless user_ip.nil?
2532
+ execute_or_queue_command(command, &block)
2533
+ end
2534
+
2535
+ # Lists remarketing audiences to which the user has access.
2536
+ # @param [String] account_id
2537
+ # Account ID for the remarketing audience to retrieve.
2538
+ # @param [String] web_property_id
2539
+ # Web property ID for the remarketing audience to retrieve.
2540
+ # @param [Fixnum] max_results
2541
+ # The maximum number of remarketing audiences to include in this response.
2542
+ # @param [Fixnum] start_index
2543
+ # An index of the first entity to retrieve. Use this parameter as a pagination
2544
+ # mechanism along with the max-results parameter.
2545
+ # @param [String] type
2546
+ # @param [String] fields
2547
+ # Selector specifying which fields to include in a partial response.
2548
+ # @param [String] quota_user
2549
+ # Available to use for quota purposes for server-side applications. Can be any
2550
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2551
+ # Overrides userIp if both are provided.
2552
+ # @param [String] user_ip
2553
+ # IP address of the site where the request originates. Use this if you want to
2554
+ # enforce per-user limits.
2555
+ # @param [Google::Apis::RequestOptions] options
2556
+ # Request-specific options
2557
+ #
2558
+ # @yield [result, err] Result & error if block supplied
2559
+ # @yieldparam result [Google::Apis::AnalyticsV3::RemarketingAudiences] parsed result object
2560
+ # @yieldparam err [StandardError] error object if request failed
2561
+ #
2562
+ # @return [Google::Apis::AnalyticsV3::RemarketingAudiences]
2563
+ #
2564
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2565
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2566
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2567
+ def list_management_remarketing_audiences(account_id, web_property_id, max_results: nil, start_index: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2568
+ command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences', options)
2569
+ command.response_representation = Google::Apis::AnalyticsV3::RemarketingAudiences::Representation
2570
+ command.response_class = Google::Apis::AnalyticsV3::RemarketingAudiences
2571
+ command.params['accountId'] = account_id unless account_id.nil?
2572
+ command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
2573
+ command.query['max-results'] = max_results unless max_results.nil?
2574
+ command.query['start-index'] = start_index unless start_index.nil?
2575
+ command.query['type'] = type unless type.nil?
2576
+ command.query['fields'] = fields unless fields.nil?
2577
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2578
+ command.query['userIp'] = user_ip unless user_ip.nil?
2579
+ execute_or_queue_command(command, &block)
2580
+ end
2581
+
2582
+ # Updates an existing remarketing audiences. This method supports patch
2583
+ # semantics.
2584
+ # @param [String] account_id
2585
+ # Account ID for the remarketing audience to update.
2586
+ # @param [String] web_property_id
2587
+ # Web property ID for the remarketing audience to update.
2588
+ # @param [String] remarketing_audience_id
2589
+ # Remarketing audience ID of the remarketing audience to update.
2590
+ # @param [Google::Apis::AnalyticsV3::RemarketingAudience] remarketing_audience_object
2591
+ # @param [String] fields
2592
+ # Selector specifying which fields to include in a partial response.
2593
+ # @param [String] quota_user
2594
+ # Available to use for quota purposes for server-side applications. Can be any
2595
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2596
+ # Overrides userIp if both are provided.
2597
+ # @param [String] user_ip
2598
+ # IP address of the site where the request originates. Use this if you want to
2599
+ # enforce per-user limits.
2600
+ # @param [Google::Apis::RequestOptions] options
2601
+ # Request-specific options
2602
+ #
2603
+ # @yield [result, err] Result & error if block supplied
2604
+ # @yieldparam result [Google::Apis::AnalyticsV3::RemarketingAudience] parsed result object
2605
+ # @yieldparam err [StandardError] error object if request failed
2606
+ #
2607
+ # @return [Google::Apis::AnalyticsV3::RemarketingAudience]
2608
+ #
2609
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2610
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2611
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2612
+ def patch_management_remarketing_audience(account_id, web_property_id, remarketing_audience_id, remarketing_audience_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2613
+ command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', options)
2614
+ command.request_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
2615
+ command.request_object = remarketing_audience_object
2616
+ command.response_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
2617
+ command.response_class = Google::Apis::AnalyticsV3::RemarketingAudience
2618
+ command.params['accountId'] = account_id unless account_id.nil?
2619
+ command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
2620
+ command.params['remarketingAudienceId'] = remarketing_audience_id unless remarketing_audience_id.nil?
2621
+ command.query['fields'] = fields unless fields.nil?
2622
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2623
+ command.query['userIp'] = user_ip unless user_ip.nil?
2624
+ execute_or_queue_command(command, &block)
2625
+ end
2626
+
2627
+ # Updates an existing remarketing audiences.
2628
+ # @param [String] account_id
2629
+ # Account ID for the remarketing audience to update.
2630
+ # @param [String] web_property_id
2631
+ # Web property ID for the remarketing audience to update.
2632
+ # @param [String] remarketing_audience_id
2633
+ # Remarketing audience ID of the remarketing audience to update.
2634
+ # @param [Google::Apis::AnalyticsV3::RemarketingAudience] remarketing_audience_object
2635
+ # @param [String] fields
2636
+ # Selector specifying which fields to include in a partial response.
2637
+ # @param [String] quota_user
2638
+ # Available to use for quota purposes for server-side applications. Can be any
2639
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2640
+ # Overrides userIp if both are provided.
2641
+ # @param [String] user_ip
2642
+ # IP address of the site where the request originates. Use this if you want to
2643
+ # enforce per-user limits.
2644
+ # @param [Google::Apis::RequestOptions] options
2645
+ # Request-specific options
2646
+ #
2647
+ # @yield [result, err] Result & error if block supplied
2648
+ # @yieldparam result [Google::Apis::AnalyticsV3::RemarketingAudience] parsed result object
2649
+ # @yieldparam err [StandardError] error object if request failed
2650
+ #
2651
+ # @return [Google::Apis::AnalyticsV3::RemarketingAudience]
2652
+ #
2653
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2654
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2655
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2656
+ def update_management_remarketing_audience(account_id, web_property_id, remarketing_audience_id, remarketing_audience_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2657
+ command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', options)
2658
+ command.request_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
2659
+ command.request_object = remarketing_audience_object
2660
+ command.response_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
2661
+ command.response_class = Google::Apis::AnalyticsV3::RemarketingAudience
2662
+ command.params['accountId'] = account_id unless account_id.nil?
2663
+ command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
2664
+ command.params['remarketingAudienceId'] = remarketing_audience_id unless remarketing_audience_id.nil?
2665
+ command.query['fields'] = fields unless fields.nil?
2666
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2667
+ command.query['userIp'] = user_ip unless user_ip.nil?
2668
+ execute_or_queue_command(command, &block)
2669
+ end
2670
+
2453
2671
  # Lists segments to which the user has access.
2454
2672
  # @param [Fixnum] max_results
2455
2673
  # The maximum number of segments to include in this response.
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/analytics/devguides/reporting/core/v4/
26
26
  module AnalyticsreportingV4
27
27
  VERSION = 'V4'
28
- REVISION = '20160512'
28
+ REVISION = '20160809'
29
29
 
30
30
  # View your Google Analytics data
31
31
  AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly'
@@ -47,7 +47,9 @@ module Google
47
47
  end
48
48
  end
49
49
 
50
- # A metric in the request.
50
+ # [Metrics](https://support.google.com/analytics/answer/1033861)
51
+ # are the quantitative measurements. For example, the metric `ga:users`
52
+ # indicates the total number of users for the requested time period.
51
53
  class Metric
52
54
  include Google::Apis::Core::Hashable
53
55
 
@@ -358,7 +360,8 @@ module Google
358
360
  # @return [Google::Apis::AnalyticsreportingV4::CohortGroup]
359
361
  attr_accessor :cohort_group
360
362
 
361
- # Dimensions requested in the request.
363
+ # The dimensions requested.
364
+ # Requests can have a total of 7 dimensions.
362
365
  # Corresponds to the JSON property `dimensions`
363
366
  # @return [Array<Google::Apis::AnalyticsreportingV4::Dimension>]
364
367
  attr_accessor :dimensions
@@ -394,7 +397,7 @@ module Google
394
397
  # @return [Array<Google::Apis::AnalyticsreportingV4::DimensionFilterClause>]
395
398
  attr_accessor :dimension_filter_clauses
396
399
 
397
- # The pivot definitions.
400
+ # The pivot definitions. Requests can have a maximum of 2 pivots.
398
401
  # Corresponds to the JSON property `pivots`
399
402
  # @return [Array<Google::Apis::AnalyticsreportingV4::Pivot>]
400
403
  attr_accessor :pivots
@@ -407,28 +410,36 @@ module Google
407
410
  # The `reportRequest.dateRanges` field should not be specified for cohorts
408
411
  # or Lifetime value requests.
409
412
  # If a date range is not provided, the default date range is (startDate:
410
- # current date - 7 days, endDate: current date - 1 day)
413
+ # current date - 7 days, endDate: current date - 1 day). Every
414
+ # [ReportRequest](#ReportRequest) within a `batchGet` method must
415
+ # contain the same `dateRanges` definition.
411
416
  # Corresponds to the JSON property `dateRanges`
412
417
  # @return [Array<Google::Apis::AnalyticsreportingV4::DateRange>]
413
418
  attr_accessor :date_ranges
414
419
 
415
420
  # Segment the data returned for the request. A segment definition helps look
416
421
  # at a subset of the segment request. A request can contain up to four
417
- # segments. All requests should have the same segment definitions. Requests
422
+ # segments. Every [ReportRequest](#ReportRequest) within a
423
+ # `batchGet` method must contain the same `segments` definition. Requests
418
424
  # with segments must have the `ga:segment` dimension.
419
425
  # Corresponds to the JSON property `segments`
420
426
  # @return [Array<Google::Apis::AnalyticsreportingV4::Segment>]
421
427
  attr_accessor :segments
422
428
 
423
- # The desired sampling level. If the sampling level is not specified the
424
- # DEFAULT sampling level will be used. All requests should have same
425
- # `samplingLevel`.
429
+ # The desired report
430
+ # [sample](https://support.google.com/analytics/answer/2637192) size.
431
+ # If the the `samplingLevel` field is unspecified the `DEFAULT` sampling
432
+ # level is used. Every [ReportRequest](#ReportRequest) within a
433
+ # `batchGet` method must contain the same `samplingLevel` definition. See
434
+ # [developer guide](/analytics/devguides/reporting/core/v4/basics#sampling)
435
+ # for details.
426
436
  # Corresponds to the JSON property `samplingLevel`
427
437
  # @return [String]
428
438
  attr_accessor :sampling_level
429
439
 
430
- # Metrics, the quantitative measurements, requested in the request.
431
- # Requests must specify at least one metric.
440
+ # The metrics requested.
441
+ # Requests must specify at least one metric. Requests can have a
442
+ # total of 10 metrics.
432
443
  # Corresponds to the JSON property `metrics`
433
444
  # @return [Array<Google::Apis::AnalyticsreportingV4::Metric>]
434
445
  attr_accessor :metrics
@@ -471,7 +482,10 @@ module Google
471
482
  attr_accessor :hide_value_ranges
472
483
  alias_method :hide_value_ranges?, :hide_value_ranges
473
484
 
474
- # Unique View Id for retrieving Analytics data.
485
+ # The Analytics
486
+ # [view ID](https://support.google.com/analytics/answer/1009618)
487
+ # from which to retrieve data. Every [ReportRequest](#ReportRequest)
488
+ # within a `batchGet` method must contain the same `viewId`.
475
489
  # Corresponds to the JSON property `viewId`
476
490
  # @return [String]
477
491
  attr_accessor :view_id
@@ -610,8 +624,13 @@ module Google
610
624
  # @return [Fixnum]
611
625
  attr_accessor :row_count
612
626
 
613
- # If sampling was enabled, this returns the total number of samples
614
- # present, one entry per date range.
627
+ # If the results are
628
+ # [sampled](https://support.google.com/analytics/answer/2637192),
629
+ # this returns the total number of
630
+ # samples present, one entry per date range. If the results are not sampled
631
+ # this field will not be defined. See
632
+ # [developer guide](/analytics/devguides/reporting/core/v4/basics#sampling)
633
+ # for details.
615
634
  # Corresponds to the JSON property `samplingSpaceSizes`
616
635
  # @return [Array<String>]
617
636
  attr_accessor :sampling_space_sizes
@@ -623,8 +642,12 @@ module Google
623
642
  # @return [Array<Google::Apis::AnalyticsreportingV4::DateRangeValues>]
624
643
  attr_accessor :maximums
625
644
 
626
- # If sampling was enabled, this returns the total number of samples
627
- # read, one entry per date range
645
+ # If the results are
646
+ # [sampled](https://support.google.com/analytics/answer/2637192),
647
+ # this returns the total number of samples read, one entry per date range.
648
+ # If the results are not sampled this field will not be defined. See
649
+ # [developer guide](/analytics/devguides/reporting/core/v4/basics#sampling)
650
+ # for details.
628
651
  # Corresponds to the JSON property `samplesReadCounts`
629
652
  # @return [Array<String>]
630
653
  attr_accessor :samples_read_counts
@@ -684,7 +707,7 @@ module Google
684
707
 
685
708
  # Requests, each request will have a separate response.
686
709
  # There can be a maximum of 5 requests. All requests should have the same
687
- # `dateRange`, `viewId`, `segments`, `samplingLevel`, and `cohortGroup`.
710
+ # `dateRanges`, `viewId`, `segments`, `samplingLevel`, and `cohortGroup`.
688
711
  # Corresponds to the JSON property `reportRequests`
689
712
  # @return [Array<Google::Apis::AnalyticsreportingV4::ReportRequest>]
690
713
  attr_accessor :report_requests
@@ -880,8 +903,7 @@ module Google
880
903
  class PivotHeaderEntry
881
904
  include Google::Apis::Core::Hashable
882
905
 
883
- # The name of the dimensions in the pivotDimensionValues field in the
884
- # response.
906
+ # The name of the dimensions in the pivot response.
885
907
  # Corresponds to the JSON property `dimensionNames`
886
908
  # @return [Array<String>]
887
909
  attr_accessor :dimension_names
@@ -969,12 +991,15 @@ module Google
969
991
  class Pivot
970
992
  include Google::Apis::Core::Hashable
971
993
 
972
- # A list of dimensions to show as pivot columns.
994
+ # A list of dimensions to show as pivot columns. A Pivot can have a maximum
995
+ # of 4 dimensions. Pivot dimensions are part of the restriction on the
996
+ # total number of dimensions allowed in the request.
973
997
  # Corresponds to the JSON property `dimensions`
974
998
  # @return [Array<Google::Apis::AnalyticsreportingV4::Dimension>]
975
999
  attr_accessor :dimensions
976
1000
 
977
- # Metrics to aggregate and return.
1001
+ # The pivot metrics. Pivot metrics are part of the
1002
+ # restriction on total number of metrics allowed in the request.
978
1003
  # Corresponds to the JSON property `metrics`
979
1004
  # @return [Array<Google::Apis::AnalyticsreportingV4::Metric>]
980
1005
  attr_accessor :metrics
@@ -1144,7 +1169,7 @@ module Google
1144
1169
  # @return [Array<String>]
1145
1170
  attr_accessor :dimensions
1146
1171
 
1147
- # List of metrics for each requested DateRange
1172
+ # List of metrics for each requested DateRange.
1148
1173
  # Corresponds to the JSON property `metrics`
1149
1174
  # @return [Array<Google::Apis::AnalyticsreportingV4::DateRangeValues>]
1150
1175
  attr_accessor :metrics
@@ -1313,7 +1338,10 @@ module Google
1313
1338
  end
1314
1339
  end
1315
1340
 
1316
- # A dimension in the request.
1341
+ # [Dimensions](https://support.google.com/analytics/answer/1033861)
1342
+ # are attributes of your data. For example, the dimension `ga:city`
1343
+ # indicates the city, for example, "Paris" or "New York", from which
1344
+ # a session originates.
1317
1345
  class Dimension
1318
1346
  include Google::Apis::Core::Hashable
1319
1347