google-api-client 0.9.15 → 0.9.18

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 (119) hide show
  1. checksums.yaml +4 -4
  2. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  6. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +82 -3
  8. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +33 -0
  9. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +38 -0
  10. data/generated/google/apis/admin_directory_v1.rb +1 -1
  11. data/generated/google/apis/admin_directory_v1/classes.rb +80 -0
  12. data/generated/google/apis/admin_directory_v1/representations.rb +23 -0
  13. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  14. data/generated/google/apis/adsense_v1_4.rb +1 -1
  15. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  16. data/generated/google/apis/analytics_v3.rb +1 -1
  17. data/generated/google/apis/analytics_v3/classes.rb +11 -5
  18. data/generated/google/apis/analytics_v3/representations.rb +1 -0
  19. data/generated/google/apis/analytics_v3/service.rb +17 -18
  20. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  22. data/generated/google/apis/androidenterprise_v1/classes.rb +80 -2
  23. data/generated/google/apis/androidenterprise_v1/representations.rb +30 -0
  24. data/generated/google/apis/androidenterprise_v1/service.rb +55 -6
  25. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  26. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  27. data/generated/google/apis/appengine_v1beta5/classes.rb +1 -1
  28. data/generated/google/apis/appengine_v1beta5/service.rb +36 -0
  29. data/generated/google/apis/appsactivity_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/bigquery_v2/classes.rb +2 -2
  32. data/generated/google/apis/books_v1.rb +1 -1
  33. data/generated/google/apis/books_v1/classes.rb +2 -1
  34. data/generated/google/apis/calendar_v3.rb +1 -1
  35. data/generated/google/apis/classroom_v1.rb +1 -1
  36. data/generated/google/apis/classroom_v1/classes.rb +7 -0
  37. data/generated/google/apis/classroom_v1/representations.rb +1 -0
  38. data/generated/google/apis/classroom_v1/service.rb +25 -15
  39. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1/classes.rb +56 -8
  41. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  42. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +535 -298
  43. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +141 -36
  44. data/generated/google/apis/cloudresourcemanager_v1/service.rb +250 -45
  45. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +99 -4
  47. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +44 -0
  48. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +24 -33
  49. data/generated/google/apis/compute_beta.rb +1 -1
  50. data/generated/google/apis/compute_beta/classes.rb +44 -29
  51. data/generated/google/apis/compute_beta/representations.rb +1 -0
  52. data/generated/google/apis/compute_beta/service.rb +123 -25
  53. data/generated/google/apis/compute_v1.rb +1 -1
  54. data/generated/google/apis/compute_v1/classes.rb +43 -20
  55. data/generated/google/apis/compute_v1/representations.rb +3 -0
  56. data/generated/google/apis/compute_v1/service.rb +608 -67
  57. data/generated/google/apis/content_v2.rb +1 -1
  58. data/generated/google/apis/dataflow_v1b3.rb +38 -0
  59. data/generated/google/apis/dataflow_v1b3/classes.rb +4009 -0
  60. data/generated/google/apis/dataflow_v1b3/representations.rb +1718 -0
  61. data/generated/google/apis/dataflow_v1b3/service.rb +515 -0
  62. data/generated/google/apis/datastore_v1.rb +1 -1
  63. data/generated/google/apis/dns_v1.rb +1 -1
  64. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  65. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  66. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  67. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  68. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  69. data/generated/google/apis/drive_v2.rb +1 -1
  70. data/generated/google/apis/drive_v2/classes.rb +9 -0
  71. data/generated/google/apis/drive_v2/representations.rb +1 -0
  72. data/generated/google/apis/drive_v2/service.rb +8 -1
  73. data/generated/google/apis/drive_v3.rb +1 -1
  74. data/generated/google/apis/drive_v3/classes.rb +7 -0
  75. data/generated/google/apis/drive_v3/representations.rb +1 -0
  76. data/generated/google/apis/drive_v3/service.rb +8 -1
  77. data/generated/google/apis/genomics_v1.rb +1 -1
  78. data/generated/google/apis/iam_v1.rb +2 -2
  79. data/generated/google/apis/iam_v1/classes.rb +181 -206
  80. data/generated/google/apis/iam_v1/representations.rb +36 -45
  81. data/generated/google/apis/iam_v1/service.rb +101 -67
  82. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  83. data/generated/google/apis/identitytoolkit_v3/classes.rb +11 -27
  84. data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -16
  85. data/generated/google/apis/language_v1beta1.rb +1 -1
  86. data/generated/google/apis/language_v1beta1/classes.rb +4 -2
  87. data/generated/google/apis/language_v1beta1/service.rb +2 -4
  88. data/generated/google/apis/logging_v2beta1.rb +6 -6
  89. data/generated/google/apis/logging_v2beta1/classes.rb +742 -732
  90. data/generated/google/apis/logging_v2beta1/representations.rb +134 -147
  91. data/generated/google/apis/logging_v2beta1/service.rb +276 -209
  92. data/generated/google/apis/monitoring_v3.rb +1 -1
  93. data/generated/google/apis/monitoring_v3/classes.rb +20 -13
  94. data/generated/google/apis/monitoring_v3/service.rb +1 -1
  95. data/generated/google/apis/oauth2_v2.rb +1 -1
  96. data/generated/google/apis/plus_domains_v1.rb +1 -1
  97. data/generated/google/apis/plus_v1.rb +1 -1
  98. data/generated/google/apis/pubsub_v1.rb +1 -1
  99. data/generated/google/apis/pubsub_v1/classes.rb +10 -9
  100. data/generated/google/apis/pubsub_v1/service.rb +128 -27
  101. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  102. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  103. data/generated/google/apis/sheets_v4.rb +1 -1
  104. data/generated/google/apis/sheets_v4/classes.rb +2 -0
  105. data/generated/google/apis/speech_v1beta1.rb +1 -1
  106. data/generated/google/apis/speech_v1beta1/classes.rb +20 -30
  107. data/generated/google/apis/speech_v1beta1/representations.rb +6 -7
  108. data/generated/google/apis/speech_v1beta1/service.rb +68 -65
  109. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  110. data/generated/google/apis/sqladmin_v1beta4/classes.rb +6 -0
  111. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  112. data/generated/google/apis/storage_v1.rb +1 -1
  113. data/generated/google/apis/storage_v1/classes.rb +3 -3
  114. data/generated/google/apis/storage_v1/representations.rb +2 -1
  115. data/generated/google/apis/storage_v1/service.rb +5 -2
  116. data/generated/google/apis/vision_v1.rb +1 -1
  117. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  118. data/lib/google/apis/version.rb +1 -1
  119. metadata +10 -2
@@ -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
@@ -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 = '20160918'
28
+ REVISION = '20161011'
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 = '20160918'
29
+ REVISION = '20161011'
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/
26
26
  module AnalyticsV3
27
27
  VERSION = 'V3'
28
- REVISION = '20160805'
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)
@@ -3212,9 +3218,7 @@ module Google
3212
3218
  # @return [String]
3213
3219
  attr_accessor :kind
3214
3220
 
3215
- # Number of days a user remains in the audience. Use any integer from 1-540. In
3216
- # remarketing audiences for search ads, membership duration is truncated to 180
3217
- # days.
3221
+ # Number of days (in the range 1 to 540) a user remains in the audience.
3218
3222
  # Corresponds to the JSON property `membershipDurationDays`
3219
3223
  # @return [Fixnum]
3220
3224
  attr_accessor :membership_duration_days
@@ -3666,8 +3670,10 @@ module Google
3666
3670
 
3667
3671
  # The currency type associated with this view (profile), defaults to USD. The
3668
3672
  # supported values are:
3669
- # ARS, AUD, BGN, BRL, CAD, CHF, CNY, CZK, DKK, EUR, GBP, HKD, HUF, IDR, INR, JPY,
3670
- # 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
3671
3677
  # Corresponds to the JSON property `currency`
3672
3678
  # @return [String]
3673
3679
  attr_accessor :currency
@@ -1201,6 +1201,7 @@ module Google
1201
1201
  collection :column_headers, as: 'columnHeaders', class: Google::Apis::AnalyticsV3::GaData::ColumnHeader, decorator: Google::Apis::AnalyticsV3::GaData::ColumnHeader::Representation
1202
1202
 
1203
1203
  property :contains_sampled_data, as: 'containsSampledData'
1204
+ property :data_last_refreshed, as: 'dataLastRefreshed'
1204
1205
  property :data_table, as: 'dataTable', class: Google::Apis::AnalyticsV3::GaData::DataTable, decorator: Google::Apis::AnalyticsV3::GaData::DataTable::Representation
1205
1206
 
1206
1207
  property :id, as: 'id'
@@ -2450,13 +2450,13 @@ 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.
2453
+ # Gets a remarketing audience to which the user has access.
2454
2454
  # @param [String] account_id
2455
- # Account ID for the remarketing audience to retrieve.
2455
+ # The account ID of the remarketing audience to retrieve.
2456
2456
  # @param [String] web_property_id
2457
- # Web property ID for the remarketing audience to retrieve.
2457
+ # The web property ID of the remarketing audience to retrieve.
2458
2458
  # @param [String] remarketing_audience_id
2459
- # The ID to retrieve the Remarketing Audience for.
2459
+ # The ID of the remarketing audience to retrieve.
2460
2460
  # @param [String] fields
2461
2461
  # Selector specifying which fields to include in a partial response.
2462
2462
  # @param [String] quota_user
@@ -2491,11 +2491,11 @@ module Google
2491
2491
  execute_or_queue_command(command, &block)
2492
2492
  end
2493
2493
 
2494
- # Creates a new remarketing audiences.
2494
+ # Creates a new remarketing audience.
2495
2495
  # @param [String] account_id
2496
- # Account ID to create the remarketing audience for.
2496
+ # The account ID for which to create the remarketing audience.
2497
2497
  # @param [String] web_property_id
2498
- # Web property ID to create the remarketing audience for.
2498
+ # Web property ID for which to create the remarketing audience.
2499
2499
  # @param [Google::Apis::AnalyticsV3::RemarketingAudience] remarketing_audience_object
2500
2500
  # @param [String] fields
2501
2501
  # Selector specifying which fields to include in a partial response.
@@ -2534,9 +2534,9 @@ module Google
2534
2534
 
2535
2535
  # Lists remarketing audiences to which the user has access.
2536
2536
  # @param [String] account_id
2537
- # Account ID for the remarketing audience to retrieve.
2537
+ # The account ID of the remarketing audiences to retrieve.
2538
2538
  # @param [String] web_property_id
2539
- # Web property ID for the remarketing audience to retrieve.
2539
+ # The web property ID of the remarketing audiences to retrieve.
2540
2540
  # @param [Fixnum] max_results
2541
2541
  # The maximum number of remarketing audiences to include in this response.
2542
2542
  # @param [Fixnum] start_index
@@ -2579,14 +2579,13 @@ module Google
2579
2579
  execute_or_queue_command(command, &block)
2580
2580
  end
2581
2581
 
2582
- # Updates an existing remarketing audiences. This method supports patch
2583
- # semantics.
2582
+ # Updates an existing remarketing audience. This method supports patch semantics.
2584
2583
  # @param [String] account_id
2585
- # Account ID for the remarketing audience to update.
2584
+ # The account ID of the remarketing audience to update.
2586
2585
  # @param [String] web_property_id
2587
- # Web property ID for the remarketing audience to update.
2586
+ # The web property ID of the remarketing audience to update.
2588
2587
  # @param [String] remarketing_audience_id
2589
- # Remarketing audience ID of the remarketing audience to update.
2588
+ # The ID of the remarketing audience to update.
2590
2589
  # @param [Google::Apis::AnalyticsV3::RemarketingAudience] remarketing_audience_object
2591
2590
  # @param [String] fields
2592
2591
  # Selector specifying which fields to include in a partial response.
@@ -2624,13 +2623,13 @@ module Google
2624
2623
  execute_or_queue_command(command, &block)
2625
2624
  end
2626
2625
 
2627
- # Updates an existing remarketing audiences.
2626
+ # Updates an existing remarketing audience.
2628
2627
  # @param [String] account_id
2629
- # Account ID for the remarketing audience to update.
2628
+ # The account ID of the remarketing audience to update.
2630
2629
  # @param [String] web_property_id
2631
- # Web property ID for the remarketing audience to update.
2630
+ # The web property ID of the remarketing audience to update.
2632
2631
  # @param [String] remarketing_audience_id
2633
- # Remarketing audience ID of the remarketing audience to update.
2632
+ # The ID of the remarketing audience to update.
2634
2633
  # @param [Google::Apis::AnalyticsV3::RemarketingAudience] remarketing_audience_object
2635
2634
  # @param [String] fields
2636
2635
  # Selector specifying which fields to include in a partial 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 = '20160809'
28
+ REVISION = '20161011'
29
29
 
30
30
  # View your Google Analytics data
31
31
  AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly'
@@ -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 = '20160913'
28
+ REVISION = '20161005'
29
29
 
30
30
  # Manage corporate Android devices
31
31
  AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
@@ -42,6 +42,69 @@ module Google
42
42
  end
43
43
  end
44
44
 
45
+ # A token authorizing an administrator to access an iframe.
46
+ class AdministratorWebToken
47
+ include Google::Apis::Core::Hashable
48
+
49
+ # Identifies what kind of resource this is. Value: the fixed string "
50
+ # androidenterprise#administratorWebToken".
51
+ # Corresponds to the JSON property `kind`
52
+ # @return [String]
53
+ attr_accessor :kind
54
+
55
+ # An opaque token to be passed to the Play front-end to generate an iframe.
56
+ # Corresponds to the JSON property `token`
57
+ # @return [String]
58
+ attr_accessor :token
59
+
60
+ def initialize(**args)
61
+ update!(**args)
62
+ end
63
+
64
+ # Update properties of this object
65
+ def update!(**args)
66
+ @kind = args[:kind] if args.key?(:kind)
67
+ @token = args[:token] if args.key?(:token)
68
+ end
69
+ end
70
+
71
+ # Specification for a token used to generate iframes. The token specifies what
72
+ # data the admin is allowed to modify and the URI the iframe is allowed to
73
+ # communiate with.
74
+ class AdministratorWebTokenSpec
75
+ include Google::Apis::Core::Hashable
76
+
77
+ # Identifies what kind of resource this is. Value: the fixed string "
78
+ # androidenterprise#administratorWebTokenSpec".
79
+ # Corresponds to the JSON property `kind`
80
+ # @return [String]
81
+ attr_accessor :kind
82
+
83
+ # The URI of the parent frame hosting the iframe. To prevent XSS, the iframe may
84
+ # not be hosted at other URIs. This URI must be https.
85
+ # Corresponds to the JSON property `parent`
86
+ # @return [String]
87
+ attr_accessor :parent
88
+
89
+ # The list of permissions the admin is granted within the iframe. The admin will
90
+ # only be allowed to view an iframe if they have all of the permissions
91
+ # associated with it.
92
+ # Corresponds to the JSON property `permission`
93
+ # @return [Array<String>]
94
+ attr_accessor :permission
95
+
96
+ def initialize(**args)
97
+ update!(**args)
98
+ end
99
+
100
+ # Update properties of this object
101
+ def update!(**args)
102
+ @kind = args[:kind] if args.key?(:kind)
103
+ @parent = args[:parent] if args.key?(:parent)
104
+ @permission = args[:permission] if args.key?(:permission)
105
+ end
106
+ end
107
+
45
108
  # Represents the list of app restrictions available to be pre-configured for the
46
109
  # product.
47
110
  class AppRestrictionsSchema
@@ -113,7 +176,9 @@ module Google
113
176
  attr_accessor :entry
114
177
 
115
178
  # For choice or multiselect restrictions, the list of possible entries' machine-
116
- # readable values.
179
+ # readable values. These values should be used in the configuration, either as a
180
+ # single string value for a choice restriction or in a stringArray for a
181
+ # multiselect restriction.
117
182
  # Corresponds to the JSON property `entryValue`
118
183
  # @return [Array<String>]
119
184
  attr_accessor :entry_value
@@ -124,7 +189,9 @@ module Google
124
189
  # @return [String]
125
190
  attr_accessor :key
126
191
 
127
- # For bundle or bundleArray restrictions, the list of nested restrictions.
192
+ # For bundle or bundleArray restrictions, the list of nested restrictions. A
193
+ # bundle restriction is always nested within a bundleArray restriction, and a
194
+ # bundleArray restriction is at most two levels deep.
128
195
  # Corresponds to the JSON property `nestedRestriction`
129
196
  # @return [Array<Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction>]
130
197
  attr_accessor :nested_restriction
@@ -1945,6 +2012,16 @@ module Google
1945
2012
  # @return [String]
1946
2013
  attr_accessor :kind
1947
2014
 
2015
+ # Sets a store layout type. If set to "custom", "homepageId" must be specified.
2016
+ # If set to "basic", the layout will consist of all approved apps accessible by
2017
+ # the user, split in pages of 100 each; in this case, "homepageId" must not be
2018
+ # specified. The "basic" setting takes precedence over any existing collections
2019
+ # setup for this enterprise (if any). Should the enterprise use
2020
+ # collectionViewers for controlling access rights, these will still be respected.
2021
+ # Corresponds to the JSON property `storeLayoutType`
2022
+ # @return [String]
2023
+ attr_accessor :store_layout_type
2024
+
1948
2025
  def initialize(**args)
1949
2026
  update!(**args)
1950
2027
  end
@@ -1953,6 +2030,7 @@ module Google
1953
2030
  def update!(**args)
1954
2031
  @homepage_id = args[:homepage_id] if args.key?(:homepage_id)
1955
2032
  @kind = args[:kind] if args.key?(:kind)
2033
+ @store_layout_type = args[:store_layout_type] if args.key?(:store_layout_type)
1956
2034
  end
1957
2035
  end
1958
2036
 
@@ -28,6 +28,18 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class AdministratorWebToken
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class AdministratorWebTokenSpec
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
31
43
  class AppRestrictionsSchema
32
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
45
 
@@ -389,6 +401,23 @@ module Google
389
401
  end
390
402
  end
391
403
 
404
+ class AdministratorWebToken
405
+ # @private
406
+ class Representation < Google::Apis::Core::JsonRepresentation
407
+ property :kind, as: 'kind'
408
+ property :token, as: 'token'
409
+ end
410
+ end
411
+
412
+ class AdministratorWebTokenSpec
413
+ # @private
414
+ class Representation < Google::Apis::Core::JsonRepresentation
415
+ property :kind, as: 'kind'
416
+ property :parent, as: 'parent'
417
+ collection :permission, as: 'permission'
418
+ end
419
+ end
420
+
392
421
  class AppRestrictionsSchema
393
422
  # @private
394
423
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -893,6 +922,7 @@ module Google
893
922
  class Representation < Google::Apis::Core::JsonRepresentation
894
923
  property :homepage_id, as: 'homepageId'
895
924
  property :kind, as: 'kind'
925
+ property :store_layout_type, as: 'storeLayoutType'
896
926
  end
897
927
  end
898
928
 
@@ -745,6 +745,47 @@ module Google
745
745
  execute_or_queue_command(command, &block)
746
746
  end
747
747
 
748
+ # Returns a unique token to access an embeddable UI. To generate a web UI, pass
749
+ # the generated token into the Play for Work javascript API. Each token may only
750
+ # be used to start one UI session. See the javascript API documentation for
751
+ # further information.
752
+ # @param [String] enterprise_id
753
+ # The ID of the enterprise.
754
+ # @param [Google::Apis::AndroidenterpriseV1::AdministratorWebTokenSpec] administrator_web_token_spec_object
755
+ # @param [String] fields
756
+ # Selector specifying which fields to include in a partial response.
757
+ # @param [String] quota_user
758
+ # Available to use for quota purposes for server-side applications. Can be any
759
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
760
+ # Overrides userIp if both are provided.
761
+ # @param [String] user_ip
762
+ # IP address of the site where the request originates. Use this if you want to
763
+ # enforce per-user limits.
764
+ # @param [Google::Apis::RequestOptions] options
765
+ # Request-specific options
766
+ #
767
+ # @yield [result, err] Result & error if block supplied
768
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::AdministratorWebToken] parsed result object
769
+ # @yieldparam err [StandardError] error object if request failed
770
+ #
771
+ # @return [Google::Apis::AndroidenterpriseV1::AdministratorWebToken]
772
+ #
773
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
774
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
775
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
776
+ def create_enterprise_web_token(enterprise_id, administrator_web_token_spec_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
777
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/createWebToken', options)
778
+ command.request_representation = Google::Apis::AndroidenterpriseV1::AdministratorWebTokenSpec::Representation
779
+ command.request_object = administrator_web_token_spec_object
780
+ command.response_representation = Google::Apis::AndroidenterpriseV1::AdministratorWebToken::Representation
781
+ command.response_class = Google::Apis::AndroidenterpriseV1::AdministratorWebToken
782
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
783
+ command.query['fields'] = fields unless fields.nil?
784
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
785
+ command.query['userIp'] = user_ip unless user_ip.nil?
786
+ execute_or_queue_command(command, &block)
787
+ end
788
+
748
789
  # Deletes the binding between the EMM and enterprise. This is now deprecated;
749
790
  # use this to unenroll customers that were previously enrolled with the 'insert'
750
791
  # call, then enroll them again with the 'enroll' call.
@@ -1060,8 +1101,8 @@ module Google
1060
1101
  # service account authenticated for the request. The notification set may be
1061
1102
  # empty if no notification are pending.
1062
1103
  # A notification set returned needs to be acknowledged within 20 seconds by
1063
- # calling Enterprises.AcknowledgeNotificationSet, unless the notification set is
1064
- # empty.
1104
+ # calling Enterprises​.AcknowledgeNotificationSet, unless the notification set
1105
+ # is empty.
1065
1106
  # Notifications that are not acknowledged within the 20 seconds will eventually
1066
1107
  # be included again in the response to another PullNotificationSet request, and
1067
1108
  # those that are never acknowledged will ultimately be deleted according to the
@@ -1069,11 +1110,16 @@ module Google
1069
1110
  # Multiple requests might be performed concurrently to retrieve notifications,
1070
1111
  # in which case the pending notifications (if any) will be split among each
1071
1112
  # caller, if any are pending.
1113
+ # If no notifications are present, an empty notification list is returned.
1114
+ # Subsequent requests may return more notifications once they become available.
1072
1115
  # @param [String] request_mode
1073
- # The request mode for pulling notifications. If omitted, defaults to
1074
- # WAIT_FOR_NOTIFCATIONS.
1075
- # If this is set to WAIT_FOR_NOTIFCATIONS, the request will eventually timeout,
1076
- # in which case it should be retried.
1116
+ # The request mode for pulling notifications.
1117
+ # Specifying waitForNotifications will cause the request to block and wait until
1118
+ # one or more notifications are present, or return an empty notification list if
1119
+ # no notifications are present after some time.
1120
+ # Speciying returnImmediately will cause the request to immediately return the
1121
+ # pending notifications, or an empty list if no notifications are present.
1122
+ # If omitted, defaults to waitForNotifications.
1077
1123
  # @param [String] fields
1078
1124
  # Selector specifying which fields to include in a partial response.
1079
1125
  # @param [String] quota_user
@@ -3445,6 +3491,9 @@ module Google
3445
3491
  # Creates a new EMM-managed user.
3446
3492
  # The Users resource passed in the body of the request should include an
3447
3493
  # accountIdentifier and an accountType.
3494
+ # If a corresponding user already exists with the same account identifier, the
3495
+ # user will be updated with the resource. In this case only the displayName
3496
+ # field can be changed.
3448
3497
  # @param [String] enterprise_id
3449
3498
  # The ID of the enterprise.
3450
3499
  # @param [Google::Apis::AndroidenterpriseV1::User] user_object