google-api-client 0.15.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (227) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +75 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +17 -35
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -2
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +958 -82
  7. data/generated/google/apis/admin_directory_v1.rb +1 -1
  8. data/generated/google/apis/admin_directory_v1/classes.rb +147 -0
  9. data/generated/google/apis/admin_directory_v1/representations.rb +54 -0
  10. data/generated/google/apis/admin_directory_v1/service.rb +71 -1
  11. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  12. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -19
  13. data/generated/google/apis/androidenterprise_v1/service.rb +39 -0
  14. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  15. data/generated/google/apis/androidmanagement_v1/classes.rb +12 -11
  16. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  17. data/generated/google/apis/androidpublisher_v2/classes.rb +0 -189
  18. data/generated/google/apis/androidpublisher_v2/representations.rb +0 -120
  19. data/generated/google/apis/androidpublisher_v2/service.rb +0 -35
  20. data/generated/google/apis/appengine_v1.rb +1 -1
  21. data/generated/google/apis/appengine_v1/classes.rb +1 -46
  22. data/generated/google/apis/appengine_v1/representations.rb +0 -17
  23. data/generated/google/apis/appengine_v1/service.rb +5 -1
  24. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  25. data/generated/google/apis/appengine_v1alpha/classes.rb +0 -45
  26. data/generated/google/apis/appengine_v1alpha/representations.rb +0 -17
  27. data/generated/google/apis/appengine_v1alpha/service.rb +5 -1
  28. data/generated/google/apis/appengine_v1beta.rb +1 -1
  29. data/generated/google/apis/appengine_v1beta/classes.rb +5 -47
  30. data/generated/google/apis/appengine_v1beta/representations.rb +0 -17
  31. data/generated/google/apis/appengine_v1beta/service.rb +5 -1
  32. data/generated/google/apis/appengine_v1beta4.rb +1 -1
  33. data/generated/google/apis/appengine_v1beta4/classes.rb +44 -45
  34. data/generated/google/apis/appengine_v1beta4/representations.rb +16 -17
  35. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  36. data/generated/google/apis/appengine_v1beta5/classes.rb +4 -46
  37. data/generated/google/apis/appengine_v1beta5/representations.rb +0 -17
  38. data/generated/google/apis/bigquery_v2.rb +1 -1
  39. data/generated/google/apis/bigquery_v2/classes.rb +41 -24
  40. data/generated/google/apis/bigquery_v2/representations.rb +3 -0
  41. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  42. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +3 -7
  43. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +0 -1
  44. data/generated/google/apis/calendar_v3.rb +1 -1
  45. data/generated/google/apis/calendar_v3/service.rb +15 -3
  46. data/generated/google/apis/classroom_v1.rb +4 -1
  47. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  48. data/generated/google/apis/cloudbuild_v1/classes.rb +26 -0
  49. data/generated/google/apis/cloudbuild_v1/representations.rb +14 -0
  50. data/generated/google/apis/cloudbuild_v1/service.rb +91 -0
  51. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  52. data/generated/google/apis/cloudfunctions_v1/classes.rb +482 -0
  53. data/generated/google/apis/cloudfunctions_v1/representations.rb +210 -0
  54. data/generated/google/apis/cloudfunctions_v1/service.rb +288 -0
  55. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  56. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +119 -0
  57. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +68 -0
  58. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +77 -0
  59. data/generated/google/apis/cloudiot_v1.rb +1 -1
  60. data/generated/google/apis/cloudiot_v1/service.rb +7 -3
  61. data/generated/google/apis/cloudiot_v1beta1.rb +1 -1
  62. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  63. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +2 -4
  64. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +2 -2
  65. data/generated/google/apis/cloudtasks_v2beta2/service.rb +4 -14
  66. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  67. data/generated/google/apis/cloudtrace_v2/classes.rb +10 -7
  68. data/generated/google/apis/cloudtrace_v2/representations.rb +2 -2
  69. data/generated/google/apis/compute_alpha.rb +1 -1
  70. data/generated/google/apis/compute_alpha/classes.rb +143 -83
  71. data/generated/google/apis/compute_alpha/representations.rb +50 -30
  72. data/generated/google/apis/compute_alpha/service.rb +171 -5
  73. data/generated/google/apis/compute_beta.rb +1 -1
  74. data/generated/google/apis/compute_beta/classes.rb +47 -43
  75. data/generated/google/apis/compute_beta/representations.rb +1 -2
  76. data/generated/google/apis/compute_beta/service.rb +60 -5
  77. data/generated/google/apis/compute_v1.rb +1 -1
  78. data/generated/google/apis/compute_v1/classes.rb +1326 -168
  79. data/generated/google/apis/compute_v1/representations.rb +402 -0
  80. data/generated/google/apis/compute_v1/service.rb +751 -5
  81. data/generated/google/apis/container_v1beta1.rb +1 -1
  82. data/generated/google/apis/content_v2.rb +1 -1
  83. data/generated/google/apis/content_v2/classes.rb +23 -16
  84. data/generated/google/apis/content_v2/service.rb +142 -162
  85. data/generated/google/apis/content_v2sandbox.rb +1 -1
  86. data/generated/google/apis/content_v2sandbox/service.rb +43 -43
  87. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  88. data/generated/google/apis/dataflow_v1b3/classes.rb +44 -35
  89. data/generated/google/apis/dataflow_v1b3/representations.rb +6 -17
  90. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  91. data/generated/google/apis/dataproc_v1beta2/classes.rb +39 -37
  92. data/generated/google/apis/dataproc_v1beta2/service.rb +30 -30
  93. data/generated/google/apis/datastore_v1.rb +1 -1
  94. data/generated/google/apis/datastore_v1/classes.rb +39 -60
  95. data/generated/google/apis/datastore_v1/representations.rb +27 -0
  96. data/generated/google/apis/datastore_v1/service.rb +34 -0
  97. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  98. data/generated/google/apis/datastore_v1beta3/classes.rb +39 -60
  99. data/generated/google/apis/datastore_v1beta3/representations.rb +27 -0
  100. data/generated/google/apis/datastore_v1beta3/service.rb +34 -0
  101. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  102. data/generated/google/apis/deploymentmanager_alpha/classes.rb +108 -0
  103. data/generated/google/apis/deploymentmanager_alpha/representations.rb +50 -0
  104. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  105. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +6 -0
  106. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1 -0
  107. data/generated/google/apis/dlp_v2beta1.rb +1 -1
  108. data/generated/google/apis/dlp_v2beta1/classes.rb +116 -10
  109. data/generated/google/apis/dlp_v2beta1/representations.rb +45 -0
  110. data/generated/google/apis/dns_v1beta2.rb +43 -0
  111. data/generated/google/apis/dns_v1beta2/classes.rb +915 -0
  112. data/generated/google/apis/dns_v1beta2/representations.rb +368 -0
  113. data/generated/google/apis/dns_v1beta2/service.rb +769 -0
  114. data/generated/google/apis/drive_v2.rb +1 -1
  115. data/generated/google/apis/drive_v2/classes.rb +6 -0
  116. data/generated/google/apis/drive_v2/representations.rb +2 -0
  117. data/generated/google/apis/drive_v2/service.rb +51 -8
  118. data/generated/google/apis/drive_v3.rb +1 -1
  119. data/generated/google/apis/drive_v3/classes.rb +6 -0
  120. data/generated/google/apis/drive_v3/representations.rb +2 -0
  121. data/generated/google/apis/drive_v3/service.rb +45 -7
  122. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  123. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +25 -0
  124. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +15 -0
  125. data/generated/google/apis/firebaseremoteconfig_v1.rb +1 -1
  126. data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +21 -1
  127. data/generated/google/apis/firebaseremoteconfig_v1/representations.rb +2 -0
  128. data/generated/google/apis/firebaserules_v1.rb +1 -1
  129. data/generated/google/apis/firebaserules_v1/classes.rb +26 -0
  130. data/generated/google/apis/firebaserules_v1/representations.rb +15 -0
  131. data/generated/google/apis/firebaserules_v1/service.rb +37 -0
  132. data/generated/google/apis/firestore_v1beta1/classes.rb +29 -146
  133. data/generated/google/apis/firestore_v1beta1/representations.rb +8 -27
  134. data/generated/google/apis/firestore_v1beta1/service.rb +4 -8
  135. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  136. data/generated/google/apis/genomics_v1alpha2/classes.rb +18 -0
  137. data/generated/google/apis/genomics_v1alpha2/representations.rb +2 -0
  138. data/generated/google/apis/iam_v1.rb +1 -1
  139. data/generated/google/apis/iam_v1/classes.rb +5 -7
  140. data/generated/google/apis/language_v1.rb +1 -1
  141. data/generated/google/apis/language_v1/classes.rb +78 -0
  142. data/generated/google/apis/language_v1/representations.rb +45 -0
  143. data/generated/google/apis/language_v1/service.rb +30 -0
  144. data/generated/google/apis/language_v1beta2.rb +1 -1
  145. data/generated/google/apis/language_v1beta2/classes.rb +3 -1
  146. data/generated/google/apis/logging_v2.rb +1 -1
  147. data/generated/google/apis/logging_v2/classes.rb +9 -0
  148. data/generated/google/apis/logging_v2/representations.rb +1 -0
  149. data/generated/google/apis/logging_v2/service.rb +517 -0
  150. data/generated/google/apis/logging_v2beta1.rb +1 -1
  151. data/generated/google/apis/logging_v2beta1/classes.rb +9 -0
  152. data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
  153. data/generated/google/apis/manufacturers_v1.rb +1 -1
  154. data/generated/google/apis/manufacturers_v1/classes.rb +6 -6
  155. data/generated/google/apis/manufacturers_v1/representations.rb +1 -1
  156. data/generated/google/apis/ml_v1.rb +1 -1
  157. data/generated/google/apis/ml_v1/classes.rb +22 -6
  158. data/generated/google/apis/ml_v1/service.rb +8 -2
  159. data/generated/google/apis/monitoring_v3.rb +1 -1
  160. data/generated/google/apis/monitoring_v3/classes.rb +358 -0
  161. data/generated/google/apis/monitoring_v3/representations.rb +145 -0
  162. data/generated/google/apis/monitoring_v3/service.rb +229 -0
  163. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  164. data/generated/google/apis/oslogin_v1alpha/classes.rb +13 -8
  165. data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
  166. data/generated/google/apis/oslogin_v1alpha/service.rb +36 -1
  167. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  168. data/generated/google/apis/oslogin_v1beta/classes.rb +9 -4
  169. data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
  170. data/generated/google/apis/oslogin_v1beta/service.rb +36 -1
  171. data/generated/google/apis/partners_v2.rb +1 -1
  172. data/generated/google/apis/partners_v2/classes.rb +7 -60
  173. data/generated/google/apis/partners_v2/representations.rb +1 -0
  174. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  175. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  176. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -4
  177. data/generated/google/apis/script_v1.rb +2 -2
  178. data/generated/google/apis/script_v1/classes.rb +57 -51
  179. data/generated/google/apis/script_v1/representations.rb +0 -1
  180. data/generated/google/apis/script_v1/service.rb +2 -2
  181. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  182. data/generated/google/apis/servicecontrol_v1/classes.rb +5 -2
  183. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  184. data/generated/google/apis/servicemanagement_v1/classes.rb +13 -31
  185. data/generated/google/apis/serviceuser_v1.rb +1 -1
  186. data/generated/google/apis/serviceuser_v1/classes.rb +13 -31
  187. data/generated/google/apis/sheets_v4.rb +1 -1
  188. data/generated/google/apis/sheets_v4/classes.rb +1 -2
  189. data/generated/google/apis/slides_v1.rb +1 -1
  190. data/generated/google/apis/slides_v1/classes.rb +505 -11
  191. data/generated/google/apis/slides_v1/representations.rb +220 -0
  192. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  193. data/generated/google/apis/sourcerepo_v1/classes.rb +1 -1
  194. data/generated/google/apis/speech_v1.rb +1 -1
  195. data/generated/google/apis/speech_v1/classes.rb +10 -1
  196. data/generated/google/apis/speech_v1/representations.rb +1 -0
  197. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  198. data/generated/google/apis/sqladmin_v1beta4/classes.rb +127 -0
  199. data/generated/google/apis/sqladmin_v1beta4/representations.rb +63 -0
  200. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  201. data/generated/google/apis/storage_v1.rb +1 -1
  202. data/generated/google/apis/storage_v1/service.rb +51 -72
  203. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  204. data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -61
  205. data/generated/google/apis/streetviewpublish_v1/service.rb +2 -1
  206. data/generated/google/apis/testing_v1.rb +1 -1
  207. data/generated/google/apis/testing_v1/classes.rb +8 -3
  208. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  209. data/generated/google/apis/toolresults_v1beta3/classes.rb +17 -16
  210. data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
  211. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  212. data/generated/google/apis/youtube_partner_v1/classes.rb +108 -0
  213. data/generated/google/apis/youtube_partner_v1/representations.rb +49 -0
  214. data/generated/google/apis/youtube_partner_v1/service.rb +42 -0
  215. data/google-api-client.gemspec +1 -1
  216. data/lib/google/apis/generator/model.rb +9 -3
  217. data/lib/google/apis/generator/templates/_class.tmpl +1 -1
  218. data/lib/google/apis/version.rb +1 -1
  219. metadata +14 -12
  220. data/generated/google/apis/playmoviespartner_v1.rb +0 -34
  221. data/generated/google/apis/playmoviespartner_v1/classes.rb +0 -782
  222. data/generated/google/apis/playmoviespartner_v1/representations.rb +0 -191
  223. data/generated/google/apis/playmoviespartner_v1/service.rb +0 -354
  224. data/generated/google/apis/qpx_express_v1.rb +0 -31
  225. data/generated/google/apis/qpx_express_v1/classes.rb +0 -1274
  226. data/generated/google/apis/qpx_express_v1/representations.rb +0 -473
  227. data/generated/google/apis/qpx_express_v1/service.rb +0 -101
@@ -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 = '20170830'
29
+ REVISION = '20171006'
30
30
 
31
31
  # View and manage customer related information
32
32
  AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'
@@ -96,6 +96,73 @@ module Google
96
96
  end
97
97
  end
98
98
 
99
+ # JSON template for App Access Collections Resource object in Directory API.
100
+ class AppAccessCollections
101
+ include Google::Apis::Core::Hashable
102
+
103
+ # List of blocked api access buckets.
104
+ # Corresponds to the JSON property `blockedApiAccessBuckets`
105
+ # @return [Array<String>]
106
+ attr_accessor :blocked_api_access_buckets
107
+
108
+ # Boolean to indicate whether to enforce app access settings on Android Drive or
109
+ # not.
110
+ # Corresponds to the JSON property `enforceSettingsForAndroidDrive`
111
+ # @return [Boolean]
112
+ attr_accessor :enforce_settings_for_android_drive
113
+ alias_method :enforce_settings_for_android_drive?, :enforce_settings_for_android_drive
114
+
115
+ # Error message provided by the Admin that will be shown to the user when an app
116
+ # is blocked.
117
+ # Corresponds to the JSON property `errorMessage`
118
+ # @return [String]
119
+ attr_accessor :error_message
120
+
121
+ # ETag of the resource.
122
+ # Corresponds to the JSON property `etag`
123
+ # @return [String]
124
+ attr_accessor :etag
125
+
126
+ # Identifies the resource as an app access collection. Value: admin#directory#
127
+ # appaccesscollection
128
+ # Corresponds to the JSON property `kind`
129
+ # @return [String]
130
+ attr_accessor :kind
131
+
132
+ # Unique ID of app access collection. (Readonly)
133
+ # Corresponds to the JSON property `resourceId`
134
+ # @return [Fixnum]
135
+ attr_accessor :resource_id
136
+
137
+ # Resource name given by the customer while creating/updating. Should be unique
138
+ # under given customer.
139
+ # Corresponds to the JSON property `resourceName`
140
+ # @return [String]
141
+ attr_accessor :resource_name
142
+
143
+ # Boolean that indicates whether to trust domain owned apps.
144
+ # Corresponds to the JSON property `trustDomainOwnedApps`
145
+ # @return [Boolean]
146
+ attr_accessor :trust_domain_owned_apps
147
+ alias_method :trust_domain_owned_apps?, :trust_domain_owned_apps
148
+
149
+ def initialize(**args)
150
+ update!(**args)
151
+ end
152
+
153
+ # Update properties of this object
154
+ def update!(**args)
155
+ @blocked_api_access_buckets = args[:blocked_api_access_buckets] if args.key?(:blocked_api_access_buckets)
156
+ @enforce_settings_for_android_drive = args[:enforce_settings_for_android_drive] if args.key?(:enforce_settings_for_android_drive)
157
+ @error_message = args[:error_message] if args.key?(:error_message)
158
+ @etag = args[:etag] if args.key?(:etag)
159
+ @kind = args[:kind] if args.key?(:kind)
160
+ @resource_id = args[:resource_id] if args.key?(:resource_id)
161
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
162
+ @trust_domain_owned_apps = args[:trust_domain_owned_apps] if args.key?(:trust_domain_owned_apps)
163
+ end
164
+ end
165
+
99
166
  # The template that returns individual ASP (Access Code) data.
100
167
  class Asp
101
168
  include Google::Apis::Core::Hashable
@@ -2328,6 +2395,86 @@ module Google
2328
2395
  end
2329
2396
  end
2330
2397
 
2398
+ # JSON template for Trusted App Ids Resource object in Directory API.
2399
+ class TrustedAppId
2400
+ include Google::Apis::Core::Hashable
2401
+
2402
+ # Android package name.
2403
+ # Corresponds to the JSON property `androidPackageName`
2404
+ # @return [String]
2405
+ attr_accessor :android_package_name
2406
+
2407
+ # SHA1 signature of the app certificate.
2408
+ # Corresponds to the JSON property `certificateHashSHA1`
2409
+ # @return [String]
2410
+ attr_accessor :certificate_hash_sha1
2411
+
2412
+ # SHA256 signature of the app certificate.
2413
+ # Corresponds to the JSON property `certificateHashSHA256`
2414
+ # @return [String]
2415
+ attr_accessor :certificate_hash_sha256
2416
+
2417
+ #
2418
+ # Corresponds to the JSON property `etag`
2419
+ # @return [String]
2420
+ attr_accessor :etag
2421
+
2422
+ # Identifies the resource as a trusted AppId.
2423
+ # Corresponds to the JSON property `kind`
2424
+ # @return [String]
2425
+ attr_accessor :kind
2426
+
2427
+ def initialize(**args)
2428
+ update!(**args)
2429
+ end
2430
+
2431
+ # Update properties of this object
2432
+ def update!(**args)
2433
+ @android_package_name = args[:android_package_name] if args.key?(:android_package_name)
2434
+ @certificate_hash_sha1 = args[:certificate_hash_sha1] if args.key?(:certificate_hash_sha1)
2435
+ @certificate_hash_sha256 = args[:certificate_hash_sha256] if args.key?(:certificate_hash_sha256)
2436
+ @etag = args[:etag] if args.key?(:etag)
2437
+ @kind = args[:kind] if args.key?(:kind)
2438
+ end
2439
+ end
2440
+
2441
+ # JSON template for Trusted Apps response object of a user in Directory API.
2442
+ class TrustedApps
2443
+ include Google::Apis::Core::Hashable
2444
+
2445
+ # ETag of the resource.
2446
+ # Corresponds to the JSON property `etag`
2447
+ # @return [String]
2448
+ attr_accessor :etag
2449
+
2450
+ # Identifies the resource as trusted apps response.
2451
+ # Corresponds to the JSON property `kind`
2452
+ # @return [String]
2453
+ attr_accessor :kind
2454
+
2455
+ #
2456
+ # Corresponds to the JSON property `nextPageToken`
2457
+ # @return [String]
2458
+ attr_accessor :next_page_token
2459
+
2460
+ # Trusted Apps list.
2461
+ # Corresponds to the JSON property `trustedApps`
2462
+ # @return [Array<Google::Apis::AdminDirectoryV1::TrustedAppId>]
2463
+ attr_accessor :trusted_apps
2464
+
2465
+ def initialize(**args)
2466
+ update!(**args)
2467
+ end
2468
+
2469
+ # Update properties of this object
2470
+ def update!(**args)
2471
+ @etag = args[:etag] if args.key?(:etag)
2472
+ @kind = args[:kind] if args.key?(:kind)
2473
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2474
+ @trusted_apps = args[:trusted_apps] if args.key?(:trusted_apps)
2475
+ end
2476
+ end
2477
+
2331
2478
  # JSON template for User object in Directory API.
2332
2479
  class User
2333
2480
  include Google::Apis::Core::Hashable
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class AppAccessCollections
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class Asp
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -286,6 +292,18 @@ module Google
286
292
  include Google::Apis::Core::JsonObjectSupport
287
293
  end
288
294
 
295
+ class TrustedAppId
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
301
+ class TrustedApps
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
289
307
  class User
290
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
291
309
 
@@ -444,6 +462,20 @@ module Google
444
462
  end
445
463
  end
446
464
 
465
+ class AppAccessCollections
466
+ # @private
467
+ class Representation < Google::Apis::Core::JsonRepresentation
468
+ collection :blocked_api_access_buckets, as: 'blockedApiAccessBuckets'
469
+ property :enforce_settings_for_android_drive, as: 'enforceSettingsForAndroidDrive'
470
+ property :error_message, as: 'errorMessage'
471
+ property :etag, as: 'etag'
472
+ property :kind, as: 'kind'
473
+ property :resource_id, :numeric_string => true, as: 'resourceId'
474
+ property :resource_name, as: 'resourceName'
475
+ property :trust_domain_owned_apps, as: 'trustDomainOwnedApps'
476
+ end
477
+ end
478
+
447
479
  class Asp
448
480
  # @private
449
481
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -998,6 +1030,28 @@ module Google
998
1030
  end
999
1031
  end
1000
1032
 
1033
+ class TrustedAppId
1034
+ # @private
1035
+ class Representation < Google::Apis::Core::JsonRepresentation
1036
+ property :android_package_name, as: 'androidPackageName'
1037
+ property :certificate_hash_sha1, as: 'certificateHashSHA1'
1038
+ property :certificate_hash_sha256, as: 'certificateHashSHA256'
1039
+ property :etag, as: 'etag'
1040
+ property :kind, as: 'kind'
1041
+ end
1042
+ end
1043
+
1044
+ class TrustedApps
1045
+ # @private
1046
+ class Representation < Google::Apis::Core::JsonRepresentation
1047
+ property :etag, as: 'etag'
1048
+ property :kind, as: 'kind'
1049
+ property :next_page_token, as: 'nextPageToken'
1050
+ collection :trusted_apps, as: 'trustedApps', class: Google::Apis::AdminDirectoryV1::TrustedAppId, decorator: Google::Apis::AdminDirectoryV1::TrustedAppId::Representation
1051
+
1052
+ end
1053
+ end
1054
+
1001
1055
  class User
1002
1056
  # @private
1003
1057
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2099,6 +2099,70 @@ module Google
2099
2099
  execute_or_queue_command(command, &block)
2100
2100
  end
2101
2101
 
2102
+ # Retrieves resolved app access settings of the logged in user.
2103
+ # @param [String] fields
2104
+ # Selector specifying which fields to include in a partial response.
2105
+ # @param [String] quota_user
2106
+ # Available to use for quota purposes for server-side applications. Can be any
2107
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2108
+ # Overrides userIp if both are provided.
2109
+ # @param [String] user_ip
2110
+ # IP address of the site where the request originates. Use this if you want to
2111
+ # enforce per-user limits.
2112
+ # @param [Google::Apis::RequestOptions] options
2113
+ # Request-specific options
2114
+ #
2115
+ # @yield [result, err] Result & error if block supplied
2116
+ # @yieldparam result [Google::Apis::AdminDirectoryV1::AppAccessCollections] parsed result object
2117
+ # @yieldparam err [StandardError] error object if request failed
2118
+ #
2119
+ # @return [Google::Apis::AdminDirectoryV1::AppAccessCollections]
2120
+ #
2121
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2122
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2123
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2124
+ def get_resolved_app_access_setting_settings(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2125
+ command = make_simple_command(:get, 'resolvedappaccesssettings', options)
2126
+ command.response_representation = Google::Apis::AdminDirectoryV1::AppAccessCollections::Representation
2127
+ command.response_class = Google::Apis::AdminDirectoryV1::AppAccessCollections
2128
+ command.query['fields'] = fields unless fields.nil?
2129
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2130
+ command.query['userIp'] = user_ip unless user_ip.nil?
2131
+ execute_or_queue_command(command, &block)
2132
+ end
2133
+
2134
+ # Retrieves the list of apps trusted by the admin of the logged in user.
2135
+ # @param [String] fields
2136
+ # Selector specifying which fields to include in a partial response.
2137
+ # @param [String] quota_user
2138
+ # Available to use for quota purposes for server-side applications. Can be any
2139
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2140
+ # Overrides userIp if both are provided.
2141
+ # @param [String] user_ip
2142
+ # IP address of the site where the request originates. Use this if you want to
2143
+ # enforce per-user limits.
2144
+ # @param [Google::Apis::RequestOptions] options
2145
+ # Request-specific options
2146
+ #
2147
+ # @yield [result, err] Result & error if block supplied
2148
+ # @yieldparam result [Google::Apis::AdminDirectoryV1::TrustedApps] parsed result object
2149
+ # @yieldparam err [StandardError] error object if request failed
2150
+ #
2151
+ # @return [Google::Apis::AdminDirectoryV1::TrustedApps]
2152
+ #
2153
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2154
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2155
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2156
+ def list_resolved_app_access_setting_trusted_apps(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2157
+ command = make_simple_command(:get, 'trustedapps', options)
2158
+ command.response_representation = Google::Apis::AdminDirectoryV1::TrustedApps::Representation
2159
+ command.response_class = Google::Apis::AdminDirectoryV1::TrustedApps
2160
+ command.query['fields'] = fields unless fields.nil?
2161
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2162
+ command.query['userIp'] = user_ip unless user_ip.nil?
2163
+ execute_or_queue_command(command, &block)
2164
+ end
2165
+
2102
2166
  # Deletes a calendar resource.
2103
2167
  # @param [String] customer
2104
2168
  # The unique ID for the customer's G Suite account. As an account administrator,
@@ -2256,7 +2320,10 @@ module Google
2256
2320
  execute_or_queue_command(command, &block)
2257
2321
  end
2258
2322
 
2259
- # Updates a calendar resource. This method supports patch semantics.
2323
+ # Updates a calendar resource.
2324
+ # This method supports patch semantics, meaning you only need to include the
2325
+ # fields you wish to update. Fields that are not present in the request will be
2326
+ # preserved. This method supports patch semantics.
2260
2327
  # @param [String] customer
2261
2328
  # The unique ID for the customer's G Suite account. As an account administrator,
2262
2329
  # you can also use the my_customer alias to represent your account's customer ID.
@@ -2299,6 +2366,9 @@ module Google
2299
2366
  end
2300
2367
 
2301
2368
  # Updates a calendar resource.
2369
+ # This method supports patch semantics, meaning you only need to include the
2370
+ # fields you wish to update. Fields that are not present in the request will be
2371
+ # preserved.
2302
2372
  # @param [String] customer
2303
2373
  # The unique ID for the customer's G Suite account. As an account administrator,
2304
2374
  # you can also use the my_customer alias to represent your account's customer ID.
@@ -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 = '20170929'
28
+ REVISION = '20171025'
29
29
 
30
30
  # Manage corporate Android devices
31
31
  AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
@@ -737,7 +737,7 @@ module Google
737
737
  # purchases the product in Google Play for the first time.
738
738
  # Use the API to query group licenses. A Grouplicenses resource includes the
739
739
  # total number of licenses purchased (paid apps only) and the total number of
740
- # licenses currently in use. Iyn other words, the total number of Entitlements
740
+ # licenses currently in use. In other words, the total number of Entitlements
741
741
  # that exist for the product.
742
742
  # Only one group license object is created per product and group license objects
743
743
  # are never deleted. If a product is unapproved, its group license remains. This
@@ -1719,12 +1719,11 @@ module Google
1719
1719
  # @return [String]
1720
1720
  attr_accessor :product_set_behavior
1721
1721
 
1722
- # Other products that are part of the set, in addition to those specified in the
1723
- # productId array. The only difference between this field and the productId
1724
- # array is that it's possible to specify additional information about this
1725
- # product visibility, see ProductVisibility and its fields for more information.
1726
- # Specifying the same product ID both here and in the productId array is not
1727
- # allowed and it will result in an error.
1722
+ # Additional list of product IDs making up the product set. Unlike the productID
1723
+ # array, in this list It's possible to specify which tracks (alpha, beta,
1724
+ # production) of a product are visible to the user. See ProductVisibility and
1725
+ # its fields for more information. Specifying the same product ID both here and
1726
+ # in the productId array is not allowed and it will result in an error.
1728
1727
  # Corresponds to the JSON property `productVisibility`
1729
1728
  # @return [Array<Google::Apis::AndroidenterpriseV1::ProductVisibility>]
1730
1729
  attr_accessor :product_visibility
@@ -1773,22 +1772,22 @@ module Google
1773
1772
  class ProductVisibility
1774
1773
  include Google::Apis::Core::Hashable
1775
1774
 
1776
- # The product ID that should be made visible to the user. This is required.
1775
+ # The product ID to make visible to the user. Required for each item in the
1776
+ # productVisibility list.
1777
1777
  # Corresponds to the JSON property `productId`
1778
1778
  # @return [String]
1779
1779
  attr_accessor :product_id
1780
1780
 
1781
- # This allows to only grant visibility to the specified tracks of the app. For
1782
- # example, if an app has a prod version, a beta version and an alpha version and
1783
- # the enterprise has been granted visibility to both the alpha and beta tracks,
1784
- # if tracks is `"beta", "production"` the user will be able to install the app
1785
- # and they will get the beta version of the app. If there are no app versions in
1786
- # the specified track or if the enterprise wasn't granted visibility for the
1787
- # track, adding the "alpha" and "beta" values to the list of tracks will have no
1788
- # effect for now; however they will take effect once both conditions are met.
1789
- # Note that the enterprise itself needs to be granted access to the alpha and/or
1790
- # beta tracks, regardless of whether individual users or admins have access to
1791
- # those tracks.
1781
+ # Grants visibility to the specified track(s) of the product to the user. The
1782
+ # track available to the user is based on the following order of preference:
1783
+ # alpha, beta, production. For example, if an app has a prod version, a beta
1784
+ # version and an alpha version and the enterprise has been granted visibility to
1785
+ # both the alpha and beta tracks, if tracks is `"beta", "production"` the user
1786
+ # will be able to install the app and they will get the beta version of the app.
1787
+ # If there are no app versions in the specified track adding the "alpha" and "
1788
+ # beta" values to the list of tracks will have no effect. Note that the
1789
+ # enterprise requires access to alpha and/or beta tracks before users can be
1790
+ # granted visibility to apps in those tracks.
1792
1791
  # The allowed sets are: `` (considered equivalent to `"production"`) `"
1793
1792
  # production"` `"beta", "production"` `"alpha", "beta", "production"` The order
1794
1793
  # of elements is not relevant. Any other set of tracks will be rejected with an
@@ -3210,6 +3210,45 @@ module Google
3210
3210
  execute_or_queue_command(command, &block)
3211
3211
  end
3212
3212
 
3213
+ # Revokes access to all devices currently provisioned to the user. The user will
3214
+ # no longer be able to use the managed Play store on any of their managed
3215
+ # devices.
3216
+ # This call only works with EMM-managed accounts.
3217
+ # @param [String] enterprise_id
3218
+ # The ID of the enterprise.
3219
+ # @param [String] user_id
3220
+ # The ID of the user.
3221
+ # @param [String] fields
3222
+ # Selector specifying which fields to include in a partial response.
3223
+ # @param [String] quota_user
3224
+ # Available to use for quota purposes for server-side applications. Can be any
3225
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3226
+ # Overrides userIp if both are provided.
3227
+ # @param [String] user_ip
3228
+ # IP address of the site where the request originates. Use this if you want to
3229
+ # enforce per-user limits.
3230
+ # @param [Google::Apis::RequestOptions] options
3231
+ # Request-specific options
3232
+ #
3233
+ # @yield [result, err] Result & error if block supplied
3234
+ # @yieldparam result [NilClass] No result returned for this method
3235
+ # @yieldparam err [StandardError] error object if request failed
3236
+ #
3237
+ # @return [void]
3238
+ #
3239
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3240
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3241
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3242
+ def revoke_user_device_access(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3243
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/deviceAccess', options)
3244
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
3245
+ command.params['userId'] = user_id unless user_id.nil?
3246
+ command.query['fields'] = fields unless fields.nil?
3247
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3248
+ command.query['userIp'] = user_ip unless user_ip.nil?
3249
+ execute_or_queue_command(command, &block)
3250
+ end
3251
+
3213
3252
  # Revokes a previously generated token (activation code) for the user.
3214
3253
  # @param [String] enterprise_id
3215
3254
  # The ID of the enterprise.