google-api-client 0.9.20 → 0.9.21

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 (159) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +8 -4
  3. data/api_names.yaml +33179 -1058
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +24 -6
  7. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +2 -0
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +14 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +2 -0
  11. data/generated/google/apis/adsense_v1_4.rb +1 -1
  12. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  13. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  14. data/generated/google/apis/analyticsreporting_v4/classes.rb +7 -0
  15. data/generated/google/apis/analyticsreporting_v4/representations.rb +1 -0
  16. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  17. data/generated/google/apis/androidenterprise_v1/classes.rb +96 -156
  18. data/generated/google/apis/androidenterprise_v1/representations.rb +18 -47
  19. data/generated/google/apis/androidenterprise_v1/service.rb +15 -459
  20. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  21. data/generated/google/apis/androidpublisher_v2/classes.rb +176 -0
  22. data/generated/google/apis/androidpublisher_v2/representations.rb +62 -0
  23. data/generated/google/apis/androidpublisher_v2/service.rb +60 -2
  24. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  25. data/generated/google/apis/appengine_v1beta5/classes.rb +300 -198
  26. data/generated/google/apis/appengine_v1beta5/representations.rb +36 -0
  27. data/generated/google/apis/appengine_v1beta5/service.rb +54 -49
  28. data/generated/google/apis/appsactivity_v1.rb +1 -1
  29. data/generated/google/apis/appstate_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/bigquery_v2/classes.rb +50 -6
  32. data/generated/google/apis/bigquery_v2/representations.rb +5 -0
  33. data/generated/google/apis/books_v1.rb +1 -1
  34. data/generated/google/apis/books_v1/classes.rb +7 -2
  35. data/generated/google/apis/books_v1/representations.rb +1 -0
  36. data/generated/google/apis/calendar_v3.rb +1 -1
  37. data/generated/google/apis/classroom_v1.rb +1 -1
  38. data/generated/google/apis/classroom_v1/classes.rb +74 -74
  39. data/generated/google/apis/classroom_v1/representations.rb +29 -29
  40. data/generated/google/apis/classroom_v1/service.rb +132 -28
  41. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  42. data/generated/google/apis/cloudbuild_v1/classes.rb +47 -27
  43. data/generated/google/apis/cloudbuild_v1/representations.rb +20 -7
  44. data/generated/google/apis/cloudbuild_v1/service.rb +42 -0
  45. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  46. data/generated/google/apis/clouddebugger_v2/classes.rb +648 -578
  47. data/generated/google/apis/clouddebugger_v2/representations.rb +140 -140
  48. data/generated/google/apis/clouddebugger_v2/service.rb +161 -155
  49. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  50. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +563 -423
  51. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +116 -76
  52. data/generated/google/apis/cloudresourcemanager_v1/service.rb +318 -249
  53. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +396 -331
  55. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +317 -281
  57. data/generated/google/apis/compute_beta.rb +1 -1
  58. data/generated/google/apis/compute_beta/classes.rb +352 -80
  59. data/generated/google/apis/compute_beta/representations.rb +132 -19
  60. data/generated/google/apis/compute_beta/service.rb +214 -0
  61. data/generated/google/apis/compute_v1.rb +1 -1
  62. data/generated/google/apis/compute_v1/classes.rb +673 -73
  63. data/generated/google/apis/compute_v1/representations.rb +274 -9
  64. data/generated/google/apis/compute_v1/service.rb +1574 -2
  65. data/generated/google/apis/content_v2.rb +1 -1
  66. data/generated/google/apis/content_v2/classes.rb +7 -8
  67. data/generated/google/apis/content_v2/service.rb +125 -54
  68. data/generated/google/apis/dataflow_v1b3.rb +2 -3
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +286 -114
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +73 -0
  71. data/generated/google/apis/dataflow_v1b3/service.rb +37 -38
  72. data/generated/google/apis/datastore_v1.rb +1 -1
  73. data/generated/google/apis/datastore_v1/classes.rb +5 -0
  74. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  75. data/generated/google/apis/deploymentmanager_v2/classes.rb +37 -5
  76. data/generated/google/apis/deploymentmanager_v2/representations.rb +16 -0
  77. data/generated/google/apis/deploymentmanager_v2/service.rb +4 -1
  78. data/generated/google/apis/dns_v1.rb +1 -1
  79. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  80. data/generated/google/apis/drive_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2/classes.rb +55 -21
  82. data/generated/google/apis/drive_v2/representations.rb +2 -0
  83. data/generated/google/apis/drive_v3.rb +1 -1
  84. data/generated/google/apis/drive_v3/classes.rb +41 -12
  85. data/generated/google/apis/drive_v3/representations.rb +2 -0
  86. data/generated/google/apis/fitness_v1.rb +31 -1
  87. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  88. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  89. data/generated/google/apis/games_management_v1management.rb +1 -1
  90. data/generated/google/apis/games_v1.rb +1 -1
  91. data/generated/google/apis/gmail_v1.rb +1 -1
  92. data/generated/google/apis/gmail_v1/classes.rb +32 -1
  93. data/generated/google/apis/gmail_v1/representations.rb +15 -0
  94. data/generated/google/apis/gmail_v1/service.rb +41 -2
  95. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  96. data/generated/google/apis/identitytoolkit_v3/classes.rb +7 -0
  97. data/generated/google/apis/identitytoolkit_v3/representations.rb +1 -0
  98. data/generated/google/apis/kgsearch_v1.rb +2 -3
  99. data/generated/google/apis/kgsearch_v1/classes.rb +10 -10
  100. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  101. data/generated/google/apis/kgsearch_v1/service.rb +28 -26
  102. data/generated/google/apis/language_v1beta1.rb +1 -1
  103. data/generated/google/apis/language_v1beta1/classes.rb +166 -8
  104. data/generated/google/apis/language_v1beta1/representations.rb +50 -0
  105. data/generated/google/apis/language_v1beta1/service.rb +32 -0
  106. data/generated/google/apis/logging_v2beta1.rb +6 -6
  107. data/generated/google/apis/logging_v2beta1/classes.rb +868 -789
  108. data/generated/google/apis/logging_v2beta1/representations.rb +179 -147
  109. data/generated/google/apis/logging_v2beta1/service.rb +378 -211
  110. data/generated/google/apis/monitoring_v3.rb +1 -1
  111. data/generated/google/apis/monitoring_v3/classes.rb +110 -112
  112. data/generated/google/apis/monitoring_v3/service.rb +68 -73
  113. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  114. data/generated/google/apis/plus_domains_v1.rb +1 -1
  115. data/generated/google/apis/plus_v1.rb +1 -1
  116. data/generated/google/apis/pubsub_v1.rb +1 -1
  117. data/generated/google/apis/pubsub_v1/classes.rb +380 -327
  118. data/generated/google/apis/pubsub_v1/representations.rb +79 -79
  119. data/generated/google/apis/pubsub_v1/service.rb +424 -396
  120. data/generated/google/apis/sheets_v4.rb +1 -1
  121. data/generated/google/apis/sheets_v4/classes.rb +175 -53
  122. data/generated/google/apis/sheets_v4/representations.rb +48 -13
  123. data/generated/google/apis/site_verification_v1.rb +1 -1
  124. data/generated/google/apis/slides_v1.rb +1 -1
  125. data/generated/google/apis/slides_v1/classes.rb +149 -31
  126. data/generated/google/apis/slides_v1/representations.rb +52 -9
  127. data/generated/google/apis/slides_v1/service.rb +5 -5
  128. data/generated/google/apis/speech_v1beta1.rb +1 -1
  129. data/generated/google/apis/speech_v1beta1/service.rb +3 -1
  130. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  131. data/generated/google/apis/sqladmin_v1beta4/classes.rb +54 -2
  132. data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -0
  133. data/generated/google/apis/sqladmin_v1beta4/service.rb +41 -0
  134. data/generated/google/apis/storage_v1.rb +1 -1
  135. data/generated/google/apis/storage_v1/classes.rb +7 -0
  136. data/generated/google/apis/storage_v1/representations.rb +2 -0
  137. data/generated/google/apis/tagmanager_v1.rb +5 -5
  138. data/generated/google/apis/vision_v1.rb +1 -1
  139. data/generated/google/apis/vision_v1/classes.rb +63 -59
  140. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  141. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  142. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  143. data/generated/google/apis/youtube_analytics_v1/service.rb +0 -76
  144. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  145. data/generated/google/apis/youtube_partner_v1/classes.rb +71 -0
  146. data/generated/google/apis/youtube_partner_v1/representations.rb +33 -0
  147. data/generated/google/apis/youtube_partner_v1/service.rb +52 -0
  148. data/generated/google/apis/youtube_v3.rb +1 -1
  149. data/generated/google/apis/youtube_v3/classes.rb +15 -2
  150. data/generated/google/apis/youtube_v3/representations.rb +3 -0
  151. data/generated/google/apis/youtube_v3/service.rb +4 -4
  152. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  153. data/generated/google/apis/youtubereporting_v1/classes.rb +146 -137
  154. data/generated/google/apis/youtubereporting_v1/representations.rb +33 -33
  155. data/generated/google/apis/youtubereporting_v1/service.rb +149 -145
  156. data/lib/google/apis/version.rb +1 -1
  157. data/samples/cli/lib/samples/calendar.rb +1 -1
  158. data/samples/cli/lib/samples/gmail.rb +74 -0
  159. metadata +29 -29
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
27
27
  module Adexchangebuyer2V2beta1
28
28
  VERSION = 'V2beta1'
29
- REVISION = '20161107'
29
+ REVISION = '20170118'
30
30
 
31
31
  # Manage your Ad Exchange buyer account configuration
32
32
  AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/ad-exchange/buyer-rest
27
27
  module AdexchangebuyerV1_4
28
28
  VERSION = 'V1_4'
29
- REVISION = '20161020'
29
+ REVISION = '20170118'
30
30
 
31
31
  # Manage your Ad Exchange buyer account configuration
32
32
  AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
@@ -91,15 +91,15 @@ module Google
91
91
  class BidderLocation
92
92
  include Google::Apis::Core::Hashable
93
93
 
94
- # The protocol that the bidder endpoint is using. By default, OpenRTB protocols
95
- # use JSON, except PROTOCOL_OPENRTB_PROTOBUF. PROTOCOL_OPENRTB_PROTOBUF uses
96
- # protobuf encoding over the latest OpenRTB protocol version, which is 2.4 right
97
- # now. Allowed values:
94
+ # The protocol that the bidder endpoint is using. OpenRTB protocols with prefix
95
+ # PROTOCOL_OPENRTB_PROTOBUF use proto buffer, otherwise use JSON. Allowed
96
+ # values:
98
97
  # - PROTOCOL_ADX
99
98
  # - PROTOCOL_OPENRTB_2_2
100
99
  # - PROTOCOL_OPENRTB_2_3
101
100
  # - PROTOCOL_OPENRTB_2_4
102
- # - PROTOCOL_OPENRTB_PROTOBUF
101
+ # - PROTOCOL_OPENRTB_PROTOBUF_2_3
102
+ # - PROTOCOL_OPENRTB_PROTOBUF_2_4
103
103
  # Corresponds to the JSON property `bidProtocol`
104
104
  # @return [String]
105
105
  attr_accessor :bid_protocol
@@ -1901,7 +1901,7 @@ module Google
1901
1901
  # @return [String]
1902
1902
  attr_accessor :flight_start_time_ms
1903
1903
 
1904
- # Description for the deal terms. (updatable)
1904
+ # Description for the deal terms. (buyer-readonly)
1905
1905
  # Corresponds to the JSON property `inventoryDescription`
1906
1906
  # @return [String]
1907
1907
  attr_accessor :inventory_description
@@ -2398,6 +2398,14 @@ module Google
2398
2398
  # @return [Array<String>]
2399
2399
  attr_accessor :languages
2400
2400
 
2401
+ # Requests where the predicted viewability is below the specified decile will
2402
+ # not match. E.g. if the buyer sets this value to 5, requests from slots where
2403
+ # the predicted viewability is below 50% will not match. If the predicted
2404
+ # viewability is unknown this field will be ignored.
2405
+ # Corresponds to the JSON property `minimumViewabilityDecile`
2406
+ # @return [Fixnum]
2407
+ attr_accessor :minimum_viewability_decile
2408
+
2401
2409
  # Requests containing any of these mobile carrier ids will match. Values are
2402
2410
  # from mobile-carriers.csv in the downloadable files section.
2403
2411
  # Corresponds to the JSON property `mobileCarriers`
@@ -2484,6 +2492,7 @@ module Google
2484
2492
  @is_active = args[:is_active] if args.key?(:is_active)
2485
2493
  @kind = args[:kind] if args.key?(:kind)
2486
2494
  @languages = args[:languages] if args.key?(:languages)
2495
+ @minimum_viewability_decile = args[:minimum_viewability_decile] if args.key?(:minimum_viewability_decile)
2487
2496
  @mobile_carriers = args[:mobile_carriers] if args.key?(:mobile_carriers)
2488
2497
  @mobile_devices = args[:mobile_devices] if args.key?(:mobile_devices)
2489
2498
  @mobile_operating_system_versions = args[:mobile_operating_system_versions] if args.key?(:mobile_operating_system_versions)
@@ -2809,6 +2818,14 @@ module Google
2809
2818
  # @return [String]
2810
2819
  attr_accessor :legacy_offer_id
2811
2820
 
2821
+ # Marketplace publisher profile Id. This Id differs from the regular
2822
+ # publisher_profile_id in that 1. This is a new id, the old Id will be
2823
+ # deprecated in 2017. 2. This id uniquely identifies a publisher profile by
2824
+ # itself.
2825
+ # Corresponds to the JSON property `marketplacePublisherProfileId`
2826
+ # @return [String]
2827
+ attr_accessor :marketplace_publisher_profile_id
2828
+
2812
2829
  # The name for this product as set by the seller. (buyer-readonly)
2813
2830
  # Corresponds to the JSON property `name`
2814
2831
  # @return [String]
@@ -2893,6 +2910,7 @@ module Google
2893
2910
  @labels = args[:labels] if args.key?(:labels)
2894
2911
  @last_update_time_ms = args[:last_update_time_ms] if args.key?(:last_update_time_ms)
2895
2912
  @legacy_offer_id = args[:legacy_offer_id] if args.key?(:legacy_offer_id)
2913
+ @marketplace_publisher_profile_id = args[:marketplace_publisher_profile_id] if args.key?(:marketplace_publisher_profile_id)
2896
2914
  @name = args[:name] if args.key?(:name)
2897
2915
  @private_auction_id = args[:private_auction_id] if args.key?(:private_auction_id)
2898
2916
  @product_id = args[:product_id] if args.key?(:product_id)
@@ -1133,6 +1133,7 @@ module Google
1133
1133
  property :is_active, as: 'isActive'
1134
1134
  property :kind, as: 'kind'
1135
1135
  collection :languages, as: 'languages'
1136
+ property :minimum_viewability_decile, as: 'minimumViewabilityDecile'
1136
1137
  collection :mobile_carriers, as: 'mobileCarriers'
1137
1138
  collection :mobile_devices, as: 'mobileDevices'
1138
1139
  collection :mobile_operating_system_versions, as: 'mobileOperatingSystemVersions'
@@ -1237,6 +1238,7 @@ module Google
1237
1238
 
1238
1239
  property :last_update_time_ms, as: 'lastUpdateTimeMs'
1239
1240
  property :legacy_offer_id, as: 'legacyOfferId'
1241
+ property :marketplace_publisher_profile_id, as: 'marketplacePublisherProfileId'
1240
1242
  property :name, as: 'name'
1241
1243
  property :private_auction_id, as: 'privateAuctionId'
1242
1244
  property :product_id, as: 'productId'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/admin-sdk/directory/
27
27
  module AdminDirectoryV1
28
28
  VERSION = 'DirectoryV1'
29
- REVISION = '20161020'
29
+ REVISION = '20161214'
30
30
 
31
31
  # View and manage customer related information
32
32
  AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'
@@ -2400,6 +2400,18 @@ module Google
2400
2400
  attr_accessor :is_delegated_admin
2401
2401
  alias_method :is_delegated_admin?, :is_delegated_admin
2402
2402
 
2403
+ # Is 2-step verification enforced (Read-only)
2404
+ # Corresponds to the JSON property `isEnforcedIn2Sv`
2405
+ # @return [Boolean]
2406
+ attr_accessor :is_enforced_in2_sv
2407
+ alias_method :is_enforced_in2_sv?, :is_enforced_in2_sv
2408
+
2409
+ # Is enrolled in 2-step verification (Read-only)
2410
+ # Corresponds to the JSON property `isEnrolledIn2Sv`
2411
+ # @return [Boolean]
2412
+ attr_accessor :is_enrolled_in2_sv
2413
+ alias_method :is_enrolled_in2_sv?, :is_enrolled_in2_sv
2414
+
2403
2415
  # Is mailbox setup (Read-only)
2404
2416
  # Corresponds to the JSON property `isMailboxSetup`
2405
2417
  # @return [Boolean]
@@ -2511,6 +2523,8 @@ module Google
2511
2523
  @ip_whitelisted = args[:ip_whitelisted] if args.key?(:ip_whitelisted)
2512
2524
  @is_admin = args[:is_admin] if args.key?(:is_admin)
2513
2525
  @is_delegated_admin = args[:is_delegated_admin] if args.key?(:is_delegated_admin)
2526
+ @is_enforced_in2_sv = args[:is_enforced_in2_sv] if args.key?(:is_enforced_in2_sv)
2527
+ @is_enrolled_in2_sv = args[:is_enrolled_in2_sv] if args.key?(:is_enrolled_in2_sv)
2514
2528
  @is_mailbox_setup = args[:is_mailbox_setup] if args.key?(:is_mailbox_setup)
2515
2529
  @kind = args[:kind] if args.key?(:kind)
2516
2530
  @last_login_time = args[:last_login_time] if args.key?(:last_login_time)
@@ -971,6 +971,8 @@ module Google
971
971
  property :ip_whitelisted, as: 'ipWhitelisted'
972
972
  property :is_admin, as: 'isAdmin'
973
973
  property :is_delegated_admin, as: 'isDelegatedAdmin'
974
+ property :is_enforced_in2_sv, as: 'isEnforcedIn2Sv'
975
+ property :is_enrolled_in2_sv, as: 'isEnrolledIn2Sv'
974
976
  property :is_mailbox_setup, as: 'isMailboxSetup'
975
977
  property :kind, as: 'kind'
976
978
  property :last_login_time, as: 'lastLoginTime', type: DateTime
@@ -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 = '20161107'
28
+ REVISION = '20170118'
29
29
 
30
30
  # View and manage your AdSense data
31
31
  AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
@@ -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 = '20161107'
29
+ REVISION = '20170118'
30
30
 
31
31
  # View and manage your AdSense host data and associated accounts
32
32
  AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
@@ -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 = '20161011'
28
+ REVISION = '20161129'
29
29
 
30
30
  # View your Google Analytics data
31
31
  AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly'
@@ -664,6 +664,12 @@ module Google
664
664
  # @return [Array<Google::Apis::AnalyticsreportingV4::ReportRow>]
665
665
  attr_accessor :rows
666
666
 
667
+ # The last time the data in the report was refreshed. All the hits received
668
+ # before this timestamp are included in the calculation of the report.
669
+ # Corresponds to the JSON property `dataLastRefreshed`
670
+ # @return [String]
671
+ attr_accessor :data_last_refreshed
672
+
667
673
  # For each requested date range, for the set of all rows that match
668
674
  # the query, every requested value format gets a total. The total
669
675
  # for a value format is computed by first totaling the metrics
@@ -696,6 +702,7 @@ module Google
696
702
  @samples_read_counts = args[:samples_read_counts] if args.key?(:samples_read_counts)
697
703
  @minimums = args[:minimums] if args.key?(:minimums)
698
704
  @rows = args[:rows] if args.key?(:rows)
705
+ @data_last_refreshed = args[:data_last_refreshed] if args.key?(:data_last_refreshed)
699
706
  @totals = args[:totals] if args.key?(:totals)
700
707
  @is_data_golden = args[:is_data_golden] if args.key?(:is_data_golden)
701
708
  end
@@ -396,6 +396,7 @@ module Google
396
396
 
397
397
  collection :rows, as: 'rows', class: Google::Apis::AnalyticsreportingV4::ReportRow, decorator: Google::Apis::AnalyticsreportingV4::ReportRow::Representation
398
398
 
399
+ property :data_last_refreshed, as: 'dataLastRefreshed'
399
400
  collection :totals, as: 'totals', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
400
401
 
401
402
  property :is_data_golden, as: 'isDataGolden'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/android/work/play/emm-api
26
26
  module AndroidenterpriseV1
27
27
  VERSION = 'V1'
28
- REVISION = '20161102'
28
+ REVISION = '20170111'
29
29
 
30
30
  # Manage corporate Android devices
31
31
  AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
@@ -22,12 +22,12 @@ module Google
22
22
  module Apis
23
23
  module AndroidenterpriseV1
24
24
 
25
- # This represents an enterprise administrator who can manage the enterprise in
26
- # the Google Play for Work Store.
25
+ # This represents an enterprise admin who can manage the enterprise in the
26
+ # managed Google Play store.
27
27
  class Administrator
28
28
  include Google::Apis::Core::Hashable
29
29
 
30
- # The administrator's email address.
30
+ # The admin's email address.
31
31
  # Corresponds to the JSON property `email`
32
32
  # @return [String]
33
33
  attr_accessor :email
@@ -42,7 +42,7 @@ module Google
42
42
  end
43
43
  end
44
44
 
45
- # A token authorizing an administrator to access an iframe.
45
+ # A token authorizing an admin to access an iframe.
46
46
  class AdministratorWebToken
47
47
  include Google::Apis::Core::Hashable
48
48
 
@@ -300,7 +300,7 @@ module Google
300
300
  # @return [Fixnum]
301
301
  attr_accessor :version_code
302
302
 
303
- # The string used in the Play Store by the app developer to identify the version.
303
+ # The string used in the Play store by the app developer to identify the version.
304
304
  # The string is not necessarily unique or localized (for example, the string
305
305
  # could be "1.4").
306
306
  # Corresponds to the JSON property `versionString`
@@ -374,120 +374,6 @@ module Google
374
374
  end
375
375
  end
376
376
 
377
- # A collection resource defines a named set of apps that is visible to a set of
378
- # users in the Google Play Store app running on those users' managed devices.
379
- # Those users can then install any of those apps if they wish (which will
380
- # trigger creation of install and entitlement resources). A user cannot install
381
- # an app on a managed device unless the app is listed in at least one collection
382
- # that is visible to that user.
383
- # Note that the API can be used to directly install an app regardless of whether
384
- # it is in any collection - so an enterprise has a choice of either directly
385
- # pushing apps to users, or allowing users to install apps if they want. Which
386
- # is appropriate will depend on the enterprise's policies and the purpose of the
387
- # apps concerned.
388
- class Collection
389
- include Google::Apis::Core::Hashable
390
-
391
- # Arbitrary unique ID, allocated by the API on creation.
392
- # Corresponds to the JSON property `collectionId`
393
- # @return [String]
394
- attr_accessor :collection_id
395
-
396
- # Identifies what kind of resource this is. Value: the fixed string "
397
- # androidenterprise#collection".
398
- # Corresponds to the JSON property `kind`
399
- # @return [String]
400
- attr_accessor :kind
401
-
402
- # A user-friendly name for the collection (should be unique), e.g. "Accounting
403
- # apps".
404
- # Corresponds to the JSON property `name`
405
- # @return [String]
406
- attr_accessor :name
407
-
408
- # The IDs of the products in the collection, in the order in which they should
409
- # be displayed.
410
- # Corresponds to the JSON property `productId`
411
- # @return [Array<String>]
412
- attr_accessor :product_id
413
-
414
- # Whether this collection is visible to all users, or only to the users that
415
- # have been granted access through the "Collectionviewers" API. With the launch
416
- # of the "setAvailableProductSet" API, this property should always be set to "
417
- # viewersOnly", as the "allUsers" option will bypass the "availableProductSet"
418
- # for all users within a domain.
419
- # The "allUsers" setting is deprecated, and will be removed.
420
- # Corresponds to the JSON property `visibility`
421
- # @return [String]
422
- attr_accessor :visibility
423
-
424
- def initialize(**args)
425
- update!(**args)
426
- end
427
-
428
- # Update properties of this object
429
- def update!(**args)
430
- @collection_id = args[:collection_id] if args.key?(:collection_id)
431
- @kind = args[:kind] if args.key?(:kind)
432
- @name = args[:name] if args.key?(:name)
433
- @product_id = args[:product_id] if args.key?(:product_id)
434
- @visibility = args[:visibility] if args.key?(:visibility)
435
- end
436
- end
437
-
438
- # The user resources for the collection.
439
- class ListCollectionViewersResponse
440
- include Google::Apis::Core::Hashable
441
-
442
- # Identifies what kind of resource this is. Value: the fixed string "
443
- # androidenterprise#collectionViewersListResponse".
444
- # Corresponds to the JSON property `kind`
445
- # @return [String]
446
- attr_accessor :kind
447
-
448
- # A user of an enterprise.
449
- # Corresponds to the JSON property `user`
450
- # @return [Array<Google::Apis::AndroidenterpriseV1::User>]
451
- attr_accessor :user
452
-
453
- def initialize(**args)
454
- update!(**args)
455
- end
456
-
457
- # Update properties of this object
458
- def update!(**args)
459
- @kind = args[:kind] if args.key?(:kind)
460
- @user = args[:user] if args.key?(:user)
461
- end
462
- end
463
-
464
- # The collection resources for the enterprise.
465
- class ListCollectionsResponse
466
- include Google::Apis::Core::Hashable
467
-
468
- # An ordered collection of products which can be made visible on the Google Play
469
- # Store to a selected group of users.
470
- # Corresponds to the JSON property `collection`
471
- # @return [Array<Google::Apis::AndroidenterpriseV1::Collection>]
472
- attr_accessor :collection
473
-
474
- # Identifies what kind of resource this is. Value: the fixed string "
475
- # androidenterprise#collectionsListResponse".
476
- # Corresponds to the JSON property `kind`
477
- # @return [String]
478
- attr_accessor :kind
479
-
480
- def initialize(**args)
481
- update!(**args)
482
- end
483
-
484
- # Update properties of this object
485
- def update!(**args)
486
- @collection = args[:collection] if args.key?(:collection)
487
- @kind = args[:kind] if args.key?(:kind)
488
- end
489
- end
490
-
491
377
  # A device resource represents a mobile device managed by the EMM and belonging
492
378
  # to a specific enterprise user.
493
379
  # This collection cannot be modified via the API; it is automatically populated
@@ -507,19 +393,19 @@ module Google
507
393
  # @return [String]
508
394
  attr_accessor :kind
509
395
 
510
- # Identifies the extent to which the device is controlled by an Android for Work
511
- # EMM in various deployment configurations.
396
+ # Identifies the extent to which the device is controlled by a managed Google
397
+ # Play EMM in various deployment configurations.
512
398
  # Possible values include:
513
399
  # - "managedDevice", a device that has the EMM's device policy controller (DPC)
514
400
  # as the device owner,
515
- # - "managedProfile", a device that has a work profile managed by the DPC (DPC
516
- # is profile owner) in addition to a separate, personal profile that is
517
- # unavailable to the DPC,
518
- # - "containerApp", a device running the Android for Work App. The Android for
519
- # Work App is managed by the DPC,
401
+ # - "managedProfile", a device that has a profile managed by the DPC (DPC is
402
+ # profile owner) in addition to a separate, personal profile that is unavailable
403
+ # to the DPC,
404
+ # - "containerApp", a device running the container App. The container App is
405
+ # managed by the DPC,
520
406
  # - "unmanagedProfile", a device that has been allowed (by the domain's admin,
521
- # using the Admin Console to enable the privilege) to use Android for Work apps
522
- # or Google Apps for Work, but the profile is itself not owned by a DPC.
407
+ # using the Admin Console to enable the privilege) to use managed Google Play,
408
+ # but the profile is itself not owned by a DPC.
523
409
  # Corresponds to the JSON property `managementType`
524
410
  # @return [String]
525
411
  attr_accessor :management_type
@@ -599,16 +485,16 @@ module Google
599
485
  # enroll and Enterprises.setAccount (in conjunction with artifacts obtained from
600
486
  # the Admin console and the Google API Console) and submitted to the EMM through
601
487
  # a more-or-less manual process.
602
- # - For Android for Work Accounts customers, the process involves using
488
+ # - For managed Google Play Accounts customers, the process involves using
603
489
  # Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction
604
- # with the Android for Work Sign-up UI (Google-provided mechanism) to create the
605
- # binding without manual steps. As an EMM, you can support either or both
490
+ # with the managed Google Play sign-up UI (Google-provided mechanism) to create
491
+ # the binding without manual steps. As an EMM, you can support either or both
606
492
  # approaches in your EMM console. See Create an Enterprise for details.
607
493
  class Enterprise
608
494
  include Google::Apis::Core::Hashable
609
495
 
610
- # Administrators of the enterprise. This is only supported for enterprises
611
- # created via the EMM-initiated flow.
496
+ # Admins of the enterprise. This is only supported for enterprises created via
497
+ # the EMM-initiated flow.
612
498
  # Corresponds to the JSON property `administrator`
613
499
  # @return [Array<Google::Apis::AndroidenterpriseV1::Administrator>]
614
500
  attr_accessor :administrator
@@ -1266,6 +1152,44 @@ module Google
1266
1152
  end
1267
1153
  end
1268
1154
 
1155
+ # An event generated when a new device is ready to be managed.
1156
+ class NewDeviceEvent
1157
+ include Google::Apis::Core::Hashable
1158
+
1159
+ # The Android ID of the device. This field will always be present.
1160
+ # Corresponds to the JSON property `deviceId`
1161
+ # @return [String]
1162
+ attr_accessor :device_id
1163
+
1164
+ # Identifies the extent to which the device is controlled by an Android for Work
1165
+ # EMM in various deployment configurations.
1166
+ # Possible values include:
1167
+ # - "managedDevice", a device that has the EMM's device policy controller (DPC)
1168
+ # as the device owner,
1169
+ # - "managedProfile", a device that has a work profile managed by the DPC (DPC
1170
+ # is profile owner) in addition to a separate, personal profile that is
1171
+ # unavailable to the DPC,
1172
+ # Corresponds to the JSON property `managementType`
1173
+ # @return [String]
1174
+ attr_accessor :management_type
1175
+
1176
+ # The ID of the user. This field will always be present.
1177
+ # Corresponds to the JSON property `userId`
1178
+ # @return [String]
1179
+ attr_accessor :user_id
1180
+
1181
+ def initialize(**args)
1182
+ update!(**args)
1183
+ end
1184
+
1185
+ # Update properties of this object
1186
+ def update!(**args)
1187
+ @device_id = args[:device_id] if args.key?(:device_id)
1188
+ @management_type = args[:management_type] if args.key?(:management_type)
1189
+ @user_id = args[:user_id] if args.key?(:user_id)
1190
+ end
1191
+ end
1192
+
1269
1193
  # An event generated when new permissions are added to an app.
1270
1194
  class NewPermissionsEvent
1271
1195
  include Google::Apis::Core::Hashable
@@ -1331,6 +1255,11 @@ module Google
1331
1255
  # @return [Google::Apis::AndroidenterpriseV1::InstallFailureEvent]
1332
1256
  attr_accessor :install_failure_event
1333
1257
 
1258
+ # An event generated when a new device is ready to be managed.
1259
+ # Corresponds to the JSON property `newDeviceEvent`
1260
+ # @return [Google::Apis::AndroidenterpriseV1::NewDeviceEvent]
1261
+ attr_accessor :new_device_event
1262
+
1334
1263
  # An event generated when new permissions are added to an app.
1335
1264
  # Corresponds to the JSON property `newPermissionsEvent`
1336
1265
  # @return [Google::Apis::AndroidenterpriseV1::NewPermissionsEvent]
@@ -1362,6 +1291,7 @@ module Google
1362
1291
  @app_update_event = args[:app_update_event] if args.key?(:app_update_event)
1363
1292
  @enterprise_id = args[:enterprise_id] if args.key?(:enterprise_id)
1364
1293
  @install_failure_event = args[:install_failure_event] if args.key?(:install_failure_event)
1294
+ @new_device_event = args[:new_device_event] if args.key?(:new_device_event)
1365
1295
  @new_permissions_event = args[:new_permissions_event] if args.key?(:new_permissions_event)
1366
1296
  @product_approval_event = args[:product_approval_event] if args.key?(:product_approval_event)
1367
1297
  @product_availability_change_event = args[:product_availability_change_event] if args.key?(:product_availability_change_event)
@@ -1480,7 +1410,7 @@ module Google
1480
1410
  end
1481
1411
  end
1482
1412
 
1483
- # A Products resource represents an app in the Google Play Store that is
1413
+ # A Products resource represents an app in the Google Play store that is
1484
1414
  # available to at least some users in the enterprise. (Some apps are restricted
1485
1415
  # to a single enterprise, and no information about them is made available
1486
1416
  # outside that enterprise.)
@@ -1507,7 +1437,7 @@ module Google
1507
1437
  attr_accessor :details_url
1508
1438
 
1509
1439
  # How and to whom the package is made available. The value publicGoogleHosted
1510
- # means that the package is available through the Play Store and not restricted
1440
+ # means that the package is available through the Play store and not restricted
1511
1441
  # to a specific enterprise. The value privateGoogleHosted means that the package
1512
1442
  # is a private app (restricted to an enterprise) but hosted by Google. The value
1513
1443
  # privateSelfHosted means that the package is a private app (restricted to an
@@ -1541,8 +1471,8 @@ module Google
1541
1471
  # @return [String]
1542
1472
  attr_accessor :product_pricing
1543
1473
 
1544
- # Whether this app can only be installed on devices using the Android for Work
1545
- # container app.
1474
+ # Whether this app can only be installed on devices using the Android container
1475
+ # app.
1546
1476
  # Corresponds to the JSON property `requiresContainerApp`
1547
1477
  # @return [Boolean]
1548
1478
  attr_accessor :requires_container_app
@@ -1559,8 +1489,8 @@ module Google
1559
1489
  # @return [String]
1560
1490
  attr_accessor :title
1561
1491
 
1562
- # A link to the Google Play for Work details page for the product, for use by an
1563
- # Enterprise administrator.
1492
+ # A link to the managed Google Play details page for the product, for use by an
1493
+ # Enterprise admin.
1564
1494
  # Corresponds to the JSON property `workDetailsUrl`
1565
1495
  # @return [String]
1566
1496
  attr_accessor :work_details_url
@@ -1718,9 +1648,11 @@ module Google
1718
1648
 
1719
1649
  # The interpretation of this product set. "unknown" should never be sent and
1720
1650
  # ignored if received. "whitelist" means that this product set constitutes a
1721
- # whitelist. "includeAll" means that all products are accessible (the value of
1722
- # the productId field is therefore ignored). If a value is not supplied, it is
1723
- # interpreted to be "whitelist" for backwards compatibility.
1651
+ # whitelist. "includeAll" means that all products are accessible, including
1652
+ # products that are approved, not approved, and even products where approval has
1653
+ # been revoked. If the value is "includeAll", the value of the productId field
1654
+ # is therefore ignored. If a value is not supplied, it is interpreted to be "
1655
+ # whitelist" for backwards compatibility.
1724
1656
  # Corresponds to the JSON property `productSetBehavior`
1725
1657
  # @return [String]
1726
1658
  attr_accessor :product_set_behavior
@@ -1797,7 +1729,7 @@ module Google
1797
1729
  # @return [Google::Apis::AndroidenterpriseV1::PageInfo]
1798
1730
  attr_accessor :page_info
1799
1731
 
1800
- # Information about a product (e.g. an app) in the Google Play Store, for
1732
+ # Information about a product (e.g. an app) in the Google Play store, for
1801
1733
  # display to an enterprise admin.
1802
1734
  # Corresponds to the JSON property `product`
1803
1735
  # @return [Array<Google::Apis::AndroidenterpriseV1::Product>]
@@ -1877,6 +1809,13 @@ module Google
1877
1809
  # @return [String]
1878
1810
  attr_accessor :kind
1879
1811
 
1812
+ # Public key data for the credentials file. This is an X.509 cert. If you are
1813
+ # using the googleCredentials key type, this is identical to the cert that can
1814
+ # be retrieved by using the X.509 cert url inside of the credentials file.
1815
+ # Corresponds to the JSON property `publicData`
1816
+ # @return [String]
1817
+ attr_accessor :public_data
1818
+
1880
1819
  # The file format of the generated key data.
1881
1820
  # Corresponds to the JSON property `type`
1882
1821
  # @return [String]
@@ -1891,6 +1830,7 @@ module Google
1891
1830
  @data = args[:data] if args.key?(:data)
1892
1831
  @id = args[:id] if args.key?(:id)
1893
1832
  @kind = args[:kind] if args.key?(:kind)
1833
+ @public_data = args[:public_data] if args.key?(:public_data)
1894
1834
  @type = args[:type] if args.key?(:type)
1895
1835
  end
1896
1836
  end
@@ -1949,7 +1889,7 @@ module Google
1949
1889
  end
1950
1890
  end
1951
1891
 
1952
- # Definition of a Google Play for Work store cluster, a list of products
1892
+ # Definition of a managed Google Play store cluster, a list of products
1953
1893
  # displayed as part of a store page.
1954
1894
  class StoreCluster
1955
1895
  include Google::Apis::Core::Hashable
@@ -2002,13 +1942,13 @@ module Google
2002
1942
  end
2003
1943
  end
2004
1944
 
2005
- # General setting for the Google Play for Work store layout, currently only
1945
+ # General setting for the managed Google Play store layout, currently only
2006
1946
  # specifying the page to display the first time the store is opened.
2007
1947
  class StoreLayout
2008
1948
  include Google::Apis::Core::Hashable
2009
1949
 
2010
1950
  # The ID of the store page to be used as the homepage. The homepage will be used
2011
- # as the first page shown in the Google Play for Work store.
1951
+ # as the first page shown in the managed Google Play store.
2012
1952
  # If a homepage has not been set, the Play store shown on devices will be empty.
2013
1953
  # Not specifying a homepage on a store layout effectively empties the store.
2014
1954
  # If there exists at least one page, this field must be set to the ID of a valid
@@ -2098,7 +2038,7 @@ module Google
2098
2038
  end
2099
2039
  end
2100
2040
 
2101
- # Definition of a Google Play for Work store page, made of a localized name and
2041
+ # Definition of a managed Google Play store page, made of a localized name and
2102
2042
  # links to other pages. A page also contains clusters defined as a subcollection.
2103
2043
  class StorePage
2104
2044
  include Google::Apis::Core::Hashable
@@ -2170,14 +2110,14 @@ module Google
2170
2110
 
2171
2111
  # A Users resource represents an account associated with an enterprise. The
2172
2112
  # account may be specific to a device or to an individual user (who can then use
2173
- # the account across multiple devices). The account may provide access to Google
2174
- # Play for Work only, or to other Google services, depending on the identity
2175
- # model:
2176
- # - Google managed domain identity model requires synchronization to Google
2113
+ # the account across multiple devices). The account may provide access to
2114
+ # managed Google Play only, or to other Google services, depending on the
2115
+ # identity model:
2116
+ # - The Google managed domain identity model requires synchronization to Google
2177
2117
  # account sources (via primaryEmail).
2178
- # - Android for Work Accounts identity model provides a dynamic means for
2118
+ # - The managed Google Play Accounts identity model provides a dynamic means for
2179
2119
  # enterprises to create user or device accounts as needed. These accounts
2180
- # provide access to Google Play for Work only.
2120
+ # provide access to managed Google Play.
2181
2121
  class User
2182
2122
  include Google::Apis::Core::Hashable
2183
2123
 
@@ -2245,9 +2185,9 @@ module Google
2245
2185
  end
2246
2186
 
2247
2187
  # A UserToken is used by a user when setting up a managed device or profile with
2248
- # their work account on a device. When the user enters their email address and
2249
- # token (activation code) the appropriate EMM app can be automatically
2250
- # downloaded.
2188
+ # their managed Google Play account on a device. When the user enters their
2189
+ # email address and token (activation code) the appropriate EMM app can be
2190
+ # automatically downloaded.
2251
2191
  class UserToken
2252
2192
  include Google::Apis::Core::Hashable
2253
2193