google-api-client 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +11 -2
- data/api_names.yaml +76 -43
- data/api_names_out.yaml +3853 -3508
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +151 -151
- data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +2785 -0
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1033 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1378 -0
- data/generated/google/apis/adexchangeseller_v2_0/classes.rb +79 -79
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +26 -26
- data/generated/google/apis/admin_directory_v1/classes.rb +374 -374
- data/generated/google/apis/admin_reports_v1/classes.rb +63 -63
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +145 -143
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +95 -92
- data/generated/google/apis/analytics_v3/classes.rb +582 -582
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +132 -132
- data/generated/google/apis/androidenterprise_v1/service.rb +9 -8
- data/generated/google/apis/androidpublisher_v2/classes.rb +122 -122
- data/generated/google/apis/appengine_v1beta4.rb +1 -1
- data/generated/google/apis/appengine_v1beta4/classes.rb +195 -142
- data/generated/google/apis/appengine_v1beta4/representations.rb +16 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +3 -2
- data/generated/google/apis/appengine_v1beta5.rb +35 -0
- data/generated/google/apis/appengine_v1beta5/classes.rb +1523 -0
- data/generated/google/apis/appengine_v1beta5/representations.rb +525 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +478 -0
- data/generated/google/apis/appsactivity_v1/classes.rb +34 -34
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/classes.rb +12 -12
- data/generated/google/apis/autoscaler_v1beta2/classes.rb +82 -82
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +266 -265
- data/generated/google/apis/blogger_v3/classes.rb +145 -145
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +431 -431
- data/generated/google/apis/books_v1/service.rb +3 -12
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +180 -180
- data/generated/google/apis/civicinfo_v2/classes.rb +125 -125
- data/generated/google/apis/classroom_v1/classes.rb +42 -42
- data/generated/google/apis/cloudbilling_v1/classes.rb +11 -11
- data/generated/google/apis/{mapsengine_v1.rb → cloudbuild_v1.rb} +11 -14
- data/generated/google/apis/cloudbuild_v1/classes.rb +521 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +190 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +278 -0
- data/generated/google/apis/clouddebugger_v2/classes.rb +81 -81
- data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
- data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
- data/generated/google/apis/cloudlatencytest_v2/representations.rb +113 -0
- data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +55 -55
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +26 -26
- data/generated/google/apis/cloudtrace_v1/classes.rb +13 -13
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +85 -85
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1051 -998
- data/generated/google/apis/compute_beta/representations.rb +1 -0
- data/generated/google/apis/compute_beta/service.rb +426 -366
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1332 -946
- data/generated/google/apis/compute_v1/representations.rb +108 -0
- data/generated/google/apis/compute_v1/service.rb +686 -318
- data/generated/google/apis/container_v1/classes.rb +43 -43
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +767 -639
- data/generated/google/apis/content_v2/representations.rb +40 -0
- data/generated/google/apis/coordinate_v1/classes.rb +66 -66
- data/generated/google/apis/customsearch_v1/classes.rb +96 -96
- data/generated/google/apis/dataproc_v1.rb +43 -0
- data/generated/google/apis/dataproc_v1/classes.rb +175 -0
- data/generated/google/apis/dataproc_v1/representations.rb +84 -0
- data/generated/google/apis/dataproc_v1/service.rb +142 -0
- data/generated/google/apis/datastore_v1beta2/classes.rb +105 -105
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +183 -112
- data/generated/google/apis/deploymentmanager_v2/representations.rb +28 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +42 -37
- data/generated/google/apis/dfareporting_v2_3.rb +37 -0
- data/generated/google/apis/dfareporting_v2_3/classes.rb +10830 -0
- data/generated/google/apis/dfareporting_v2_3/representations.rb +3443 -0
- data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
- data/generated/google/apis/discovery_v1/classes.rb +106 -106
- data/generated/google/apis/dns_v1/classes.rb +39 -39
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +155 -69
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +31 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +33 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +106 -104
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +308 -308
- data/generated/google/apis/drive_v2/service.rb +44 -0
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +178 -178
- data/generated/google/apis/drive_v3/service.rb +2 -1
- data/generated/google/apis/fitness_v1/classes.rb +74 -74
- data/generated/google/apis/fusiontables_v2/classes.rb +108 -108
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +52 -52
- data/generated/google/apis/games_management_v1management.rb +2 -2
- data/generated/google/apis/games_management_v1management/classes.rb +55 -46
- data/generated/google/apis/games_management_v1management/representations.rb +1 -0
- data/generated/google/apis/games_v1.rb +2 -2
- data/generated/google/apis/games_v1/classes.rb +484 -475
- data/generated/google/apis/games_v1/representations.rb +1 -0
- data/generated/google/apis/gan_v1beta1/classes.rb +187 -187
- data/generated/google/apis/genomics_v1.rb +2 -2
- data/generated/google/apis/genomics_v1/classes.rb +441 -232
- data/generated/google/apis/genomics_v1/representations.rb +85 -0
- data/generated/google/apis/genomics_v1/service.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +73 -73
- data/generated/google/apis/groupsmigration_v1/classes.rb +2 -2
- data/generated/google/apis/groupssettings_v1/classes.rb +28 -28
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +232 -166
- data/generated/google/apis/identitytoolkit_v3/representations.rb +10 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +3 -3
- data/generated/google/apis/licensing_v1/classes.rb +11 -11
- data/generated/google/apis/logging_v2beta1.rb +47 -0
- data/generated/google/apis/logging_v2beta1/classes.rb +990 -0
- data/generated/google/apis/logging_v2beta1/representations.rb +337 -0
- data/generated/google/apis/logging_v2beta1/service.rb +547 -0
- data/generated/google/apis/manager_v1beta2/classes.rb +125 -125
- data/generated/google/apis/mirror_v1/classes.rb +101 -101
- data/generated/google/apis/oauth2_v2.rb +2 -2
- data/generated/google/apis/oauth2_v2/classes.rb +27 -27
- data/generated/google/apis/pagespeedonline_v2/classes.rb +62 -62
- data/generated/google/apis/partners_v2/classes.rb +87 -87
- data/generated/google/apis/people_v1.rb +59 -0
- data/generated/google/apis/people_v1/classes.rb +1594 -0
- data/generated/google/apis/people_v1/representations.rb +593 -0
- data/generated/google/apis/people_v1/service.rb +193 -0
- data/generated/google/apis/plus_domains_v1.rb +2 -2
- data/generated/google/apis/plus_domains_v1/classes.rb +274 -274
- data/generated/google/apis/plus_v1.rb +2 -2
- data/generated/google/apis/plus_v1/classes.rb +215 -215
- data/generated/google/apis/prediction_v1_6/classes.rb +73 -73
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +45 -45
- data/generated/google/apis/pubsub_v1/classes.rb +36 -36
- data/generated/google/apis/qpx_express_v1/classes.rb +135 -135
- data/generated/google/apis/replicapool_v1beta2/classes.rb +63 -63
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +76 -76
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +55 -55
- data/generated/google/apis/reseller_v1/service.rb +1 -1
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +68 -68
- data/generated/google/apis/script_v1/classes.rb +18 -18
- data/generated/google/apis/site_verification_v1/classes.rb +12 -12
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +203 -203
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +130 -130
- data/generated/google/apis/storagetransfer_v1/classes.rb +84 -84
- data/generated/google/apis/tagmanager_v1/classes.rb +154 -154
- data/generated/google/apis/taskqueue_v1beta2/classes.rb +24 -24
- data/generated/google/apis/tasks_v1/classes.rb +32 -32
- data/generated/google/apis/translate_v2/classes.rb +10 -10
- data/generated/google/apis/urlshortener_v1/classes.rb +24 -24
- data/generated/google/apis/webmasters_v3/classes.rb +49 -49
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +49 -49
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +882 -895
- data/generated/google/apis/youtube_v3/representations.rb +2 -13
- data/generated/google/apis/youtubereporting_v1/classes.rb +19 -19
- data/lib/google/apis/core/api_command.rb +1 -1
- data/lib/google/apis/core/upload.rb +1 -1
- data/lib/google/apis/generator/templates/_class.tmpl +1 -1
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/base_cli.rb +2 -1
- data/samples/cli/lib/samples/androidpublisher.rb +47 -0
- data/script/generate +17 -13
- metadata +35 -6
- data/generated/google/apis/mapsengine_v1/classes.rb +0 -2873
- data/generated/google/apis/mapsengine_v1/representations.rb +0 -1235
- data/generated/google/apis/mapsengine_v1/service.rb +0 -3388
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/android/work/play/emm-api
|
27
27
|
module AndroidenterpriseV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20160203'
|
30
30
|
|
31
31
|
# Manage corporate Android devices
|
32
32
|
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
@@ -44,8 +44,8 @@ module Google
|
|
44
44
|
|
45
45
|
# Update properties of this object
|
46
46
|
def update!(**args)
|
47
|
-
@kind = args[:kind]
|
48
|
-
@restrictions = args[:restrictions]
|
47
|
+
@kind = args[:kind] if args.key?(:kind)
|
48
|
+
@restrictions = args[:restrictions] if args.key?(:restrictions)
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
@@ -98,13 +98,13 @@ module Google
|
|
98
98
|
|
99
99
|
# Update properties of this object
|
100
100
|
def update!(**args)
|
101
|
-
@default_value = args[:default_value]
|
102
|
-
@description = args[:description]
|
103
|
-
@entry = args[:entry]
|
104
|
-
@entry_value = args[:entry_value]
|
105
|
-
@key = args[:key]
|
106
|
-
@restriction_type = args[:restriction_type]
|
107
|
-
@title = args[:title]
|
101
|
+
@default_value = args[:default_value] if args.key?(:default_value)
|
102
|
+
@description = args[:description] if args.key?(:description)
|
103
|
+
@entry = args[:entry] if args.key?(:entry)
|
104
|
+
@entry_value = args[:entry_value] if args.key?(:entry_value)
|
105
|
+
@key = args[:key] if args.key?(:key)
|
106
|
+
@restriction_type = args[:restriction_type] if args.key?(:restriction_type)
|
107
|
+
@title = args[:title] if args.key?(:title)
|
108
108
|
end
|
109
109
|
end
|
110
110
|
|
@@ -144,11 +144,11 @@ module Google
|
|
144
144
|
|
145
145
|
# Update properties of this object
|
146
146
|
def update!(**args)
|
147
|
-
@type = args[:type]
|
148
|
-
@value_bool = args[:value_bool]
|
149
|
-
@value_integer = args[:value_integer]
|
150
|
-
@value_multiselect = args[:value_multiselect]
|
151
|
-
@value_string = args[:value_string]
|
147
|
+
@type = args[:type] if args.key?(:type)
|
148
|
+
@value_bool = args[:value_bool] if args.key?(:value_bool)
|
149
|
+
@value_integer = args[:value_integer] if args.key?(:value_integer)
|
150
|
+
@value_multiselect = args[:value_multiselect] if args.key?(:value_multiselect)
|
151
|
+
@value_string = args[:value_string] if args.key?(:value_string)
|
152
152
|
end
|
153
153
|
end
|
154
154
|
|
@@ -174,8 +174,8 @@ module Google
|
|
174
174
|
|
175
175
|
# Update properties of this object
|
176
176
|
def update!(**args)
|
177
|
-
@version_code = args[:version_code]
|
178
|
-
@version_string = args[:version_string]
|
177
|
+
@version_code = args[:version_code] if args.key?(:version_code)
|
178
|
+
@version_string = args[:version_string] if args.key?(:version_string)
|
179
179
|
end
|
180
180
|
end
|
181
181
|
|
@@ -201,8 +201,8 @@ module Google
|
|
201
201
|
|
202
202
|
# Update properties of this object
|
203
203
|
def update!(**args)
|
204
|
-
@approval_url = args[:approval_url]
|
205
|
-
@kind = args[:kind]
|
204
|
+
@approval_url = args[:approval_url] if args.key?(:approval_url)
|
205
|
+
@kind = args[:kind] if args.key?(:kind)
|
206
206
|
end
|
207
207
|
end
|
208
208
|
|
@@ -259,11 +259,11 @@ module Google
|
|
259
259
|
|
260
260
|
# Update properties of this object
|
261
261
|
def update!(**args)
|
262
|
-
@collection_id = args[:collection_id]
|
263
|
-
@kind = args[:kind]
|
264
|
-
@name = args[:name]
|
265
|
-
@product_id = args[:product_id]
|
266
|
-
@visibility = args[:visibility]
|
262
|
+
@collection_id = args[:collection_id] if args.key?(:collection_id)
|
263
|
+
@kind = args[:kind] if args.key?(:kind)
|
264
|
+
@name = args[:name] if args.key?(:name)
|
265
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
266
|
+
@visibility = args[:visibility] if args.key?(:visibility)
|
267
267
|
end
|
268
268
|
end
|
269
269
|
|
@@ -288,8 +288,8 @@ module Google
|
|
288
288
|
|
289
289
|
# Update properties of this object
|
290
290
|
def update!(**args)
|
291
|
-
@kind = args[:kind]
|
292
|
-
@user = args[:user]
|
291
|
+
@kind = args[:kind] if args.key?(:kind)
|
292
|
+
@user = args[:user] if args.key?(:user)
|
293
293
|
end
|
294
294
|
end
|
295
295
|
|
@@ -315,12 +315,12 @@ module Google
|
|
315
315
|
|
316
316
|
# Update properties of this object
|
317
317
|
def update!(**args)
|
318
|
-
@collection = args[:collection]
|
319
|
-
@kind = args[:kind]
|
318
|
+
@collection = args[:collection] if args.key?(:collection)
|
319
|
+
@kind = args[:kind] if args.key?(:kind)
|
320
320
|
end
|
321
321
|
end
|
322
322
|
|
323
|
-
# A device resource represents a mobile device managed by the
|
323
|
+
# A device resource represents a mobile device managed by the EMM and belonging
|
324
324
|
# to a specific enterprise user.
|
325
325
|
# This collection cannot be modified via the API; it is automatically populated
|
326
326
|
# as devices are set up to be managed.
|
@@ -339,10 +339,10 @@ module Google
|
|
339
339
|
# @return [String]
|
340
340
|
attr_accessor :kind
|
341
341
|
|
342
|
-
# The mechanism by which this device is managed by the
|
343
|
-
# means that the
|
344
|
-
#
|
345
|
-
# is not managed). "containerApp" means that the
|
342
|
+
# The mechanism by which this device is managed by the EMM. "managedDevice"
|
343
|
+
# means that the EMM's app is a device owner. "managedProfile" means that the
|
344
|
+
# EMM's app is the profile owner (and there is a separate personal profile which
|
345
|
+
# is not managed). "containerApp" means that the EMM's app is managing the
|
346
346
|
# Android for Work container app on the device.
|
347
347
|
# Corresponds to the JSON property `managementType`
|
348
348
|
# @return [String]
|
@@ -354,9 +354,9 @@ module Google
|
|
354
354
|
|
355
355
|
# Update properties of this object
|
356
356
|
def update!(**args)
|
357
|
-
@android_id = args[:android_id]
|
358
|
-
@kind = args[:kind]
|
359
|
-
@management_type = args[:management_type]
|
357
|
+
@android_id = args[:android_id] if args.key?(:android_id)
|
358
|
+
@kind = args[:kind] if args.key?(:kind)
|
359
|
+
@management_type = args[:management_type] if args.key?(:management_type)
|
360
360
|
end
|
361
361
|
end
|
362
362
|
|
@@ -385,8 +385,8 @@ module Google
|
|
385
385
|
|
386
386
|
# Update properties of this object
|
387
387
|
def update!(**args)
|
388
|
-
@account_state = args[:account_state]
|
389
|
-
@kind = args[:kind]
|
388
|
+
@account_state = args[:account_state] if args.key?(:account_state)
|
389
|
+
@kind = args[:kind] if args.key?(:kind)
|
390
390
|
end
|
391
391
|
end
|
392
392
|
|
@@ -411,27 +411,27 @@ module Google
|
|
411
411
|
|
412
412
|
# Update properties of this object
|
413
413
|
def update!(**args)
|
414
|
-
@device = args[:device]
|
415
|
-
@kind = args[:kind]
|
414
|
+
@device = args[:device] if args.key?(:device)
|
415
|
+
@kind = args[:kind] if args.key?(:kind)
|
416
416
|
end
|
417
417
|
end
|
418
418
|
|
419
419
|
# An enterprise resource represents a binding between an organisation and their
|
420
|
-
#
|
420
|
+
# EMM.
|
421
421
|
# To create an enterprise, an admin of the enterprise must first go through a
|
422
422
|
# Play for Work sign-up flow. At the end of this the admin will be presented
|
423
423
|
# with a token (a short opaque alphanumeric string). They must then present this
|
424
|
-
# to the
|
425
|
-
#
|
426
|
-
# After calling enroll the
|
424
|
+
# to the EMM, who then supplies it to the enroll method. Until this is done the
|
425
|
+
# EMM will not have any access to the enterprise.
|
426
|
+
# After calling enroll the EMM should call setAccount to specify the service
|
427
427
|
# account that will be allowed to act on behalf of the enterprise, which will be
|
428
428
|
# required for access to the enterprise's data through this API. Only one call
|
429
429
|
# of setAccount is allowed for a given enterprise; the only way to change the
|
430
430
|
# account later is to unenroll the enterprise and enroll it again (obtaining a
|
431
431
|
# new token).
|
432
|
-
# The
|
432
|
+
# The EMM can unenroll an enterprise in order to sever the binding between them.
|
433
433
|
# Re-enrolling an enterprise is possible, but requires a new token to be
|
434
|
-
# retrieved. Enterprises.unenroll requires the
|
434
|
+
# retrieved. Enterprises.unenroll requires the EMM's credentials (as enroll does)
|
435
435
|
# , not the enterprise's. Enterprises.unenroll can only be used for enterprises
|
436
436
|
# that were previously enrolled with the enroll call. Any enterprises that were
|
437
437
|
# enrolled using the (deprecated) Enterprises.insert call must be unenrolled
|
@@ -470,10 +470,10 @@ module Google
|
|
470
470
|
|
471
471
|
# Update properties of this object
|
472
472
|
def update!(**args)
|
473
|
-
@id = args[:id]
|
474
|
-
@kind = args[:kind]
|
475
|
-
@name = args[:name]
|
476
|
-
@primary_domain = args[:primary_domain]
|
473
|
+
@id = args[:id] if args.key?(:id)
|
474
|
+
@kind = args[:kind] if args.key?(:kind)
|
475
|
+
@name = args[:name] if args.key?(:name)
|
476
|
+
@primary_domain = args[:primary_domain] if args.key?(:primary_domain)
|
477
477
|
end
|
478
478
|
end
|
479
479
|
|
@@ -499,8 +499,8 @@ module Google
|
|
499
499
|
|
500
500
|
# Update properties of this object
|
501
501
|
def update!(**args)
|
502
|
-
@account_email = args[:account_email]
|
503
|
-
@kind = args[:kind]
|
502
|
+
@account_email = args[:account_email] if args.key?(:account_email)
|
503
|
+
@kind = args[:kind] if args.key?(:kind)
|
504
504
|
end
|
505
505
|
end
|
506
506
|
|
@@ -525,8 +525,8 @@ module Google
|
|
525
525
|
|
526
526
|
# Update properties of this object
|
527
527
|
def update!(**args)
|
528
|
-
@enterprise = args[:enterprise]
|
529
|
-
@kind = args[:kind]
|
528
|
+
@enterprise = args[:enterprise] if args.key?(:enterprise)
|
529
|
+
@kind = args[:kind] if args.key?(:kind)
|
530
530
|
end
|
531
531
|
end
|
532
532
|
|
@@ -551,8 +551,8 @@ module Google
|
|
551
551
|
|
552
552
|
# Update properties of this object
|
553
553
|
def update!(**args)
|
554
|
-
@message_id = args[:message_id]
|
555
|
-
@topic_name = args[:topic_name]
|
554
|
+
@message_id = args[:message_id] if args.key?(:message_id)
|
555
|
+
@topic_name = args[:topic_name] if args.key?(:topic_name)
|
556
556
|
end
|
557
557
|
end
|
558
558
|
|
@@ -563,7 +563,7 @@ module Google
|
|
563
563
|
# It should always be true that a user has an app installed on one of their
|
564
564
|
# devices only if they have an entitlement to it. So if an entitlement is
|
565
565
|
# deleted, the app will be uninstalled from all devices. Similarly if the user
|
566
|
-
# installs an app (and is permitted to do so), or the
|
566
|
+
# installs an app (and is permitted to do so), or the EMM triggers an install of
|
567
567
|
# the app, an entitlement to that app is automatically created. If this is
|
568
568
|
# impossible - e.g. the enterprise has not purchased sufficient licenses - then
|
569
569
|
# installation fails.
|
@@ -607,9 +607,9 @@ module Google
|
|
607
607
|
|
608
608
|
# Update properties of this object
|
609
609
|
def update!(**args)
|
610
|
-
@kind = args[:kind]
|
611
|
-
@product_id = args[:product_id]
|
612
|
-
@reason = args[:reason]
|
610
|
+
@kind = args[:kind] if args.key?(:kind)
|
611
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
612
|
+
@reason = args[:reason] if args.key?(:reason)
|
613
613
|
end
|
614
614
|
end
|
615
615
|
|
@@ -636,8 +636,8 @@ module Google
|
|
636
636
|
|
637
637
|
# Update properties of this object
|
638
638
|
def update!(**args)
|
639
|
-
@entitlement = args[:entitlement]
|
640
|
-
@kind = args[:kind]
|
639
|
+
@entitlement = args[:entitlement] if args.key?(:entitlement)
|
640
|
+
@kind = args[:kind] if args.key?(:kind)
|
641
641
|
end
|
642
642
|
end
|
643
643
|
|
@@ -708,12 +708,12 @@ module Google
|
|
708
708
|
|
709
709
|
# Update properties of this object
|
710
710
|
def update!(**args)
|
711
|
-
@acquisition_kind = args[:acquisition_kind]
|
712
|
-
@approval = args[:approval]
|
713
|
-
@kind = args[:kind]
|
714
|
-
@num_provisioned = args[:num_provisioned]
|
715
|
-
@num_purchased = args[:num_purchased]
|
716
|
-
@product_id = args[:product_id]
|
711
|
+
@acquisition_kind = args[:acquisition_kind] if args.key?(:acquisition_kind)
|
712
|
+
@approval = args[:approval] if args.key?(:approval)
|
713
|
+
@kind = args[:kind] if args.key?(:kind)
|
714
|
+
@num_provisioned = args[:num_provisioned] if args.key?(:num_provisioned)
|
715
|
+
@num_purchased = args[:num_purchased] if args.key?(:num_purchased)
|
716
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
717
717
|
end
|
718
718
|
end
|
719
719
|
|
@@ -738,8 +738,8 @@ module Google
|
|
738
738
|
|
739
739
|
# Update properties of this object
|
740
740
|
def update!(**args)
|
741
|
-
@kind = args[:kind]
|
742
|
-
@user = args[:user]
|
741
|
+
@kind = args[:kind] if args.key?(:kind)
|
742
|
+
@user = args[:user] if args.key?(:user)
|
743
743
|
end
|
744
744
|
end
|
745
745
|
|
@@ -764,8 +764,8 @@ module Google
|
|
764
764
|
|
765
765
|
# Update properties of this object
|
766
766
|
def update!(**args)
|
767
|
-
@group_license = args[:group_license]
|
768
|
-
@kind = args[:kind]
|
767
|
+
@group_license = args[:group_license] if args.key?(:group_license)
|
768
|
+
@kind = args[:kind] if args.key?(:kind)
|
769
769
|
end
|
770
770
|
end
|
771
771
|
|
@@ -823,10 +823,10 @@ module Google
|
|
823
823
|
|
824
824
|
# Update properties of this object
|
825
825
|
def update!(**args)
|
826
|
-
@install_state = args[:install_state]
|
827
|
-
@kind = args[:kind]
|
828
|
-
@product_id = args[:product_id]
|
829
|
-
@version_code = args[:version_code]
|
826
|
+
@install_state = args[:install_state] if args.key?(:install_state)
|
827
|
+
@kind = args[:kind] if args.key?(:kind)
|
828
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
829
|
+
@version_code = args[:version_code] if args.key?(:version_code)
|
830
830
|
end
|
831
831
|
end
|
832
832
|
|
@@ -852,8 +852,8 @@ module Google
|
|
852
852
|
|
853
853
|
# Update properties of this object
|
854
854
|
def update!(**args)
|
855
|
-
@install = args[:install]
|
856
|
-
@kind = args[:kind]
|
855
|
+
@install = args[:install] if args.key?(:install)
|
856
|
+
@kind = args[:kind] if args.key?(:kind)
|
857
857
|
end
|
858
858
|
end
|
859
859
|
|
@@ -877,8 +877,8 @@ module Google
|
|
877
877
|
|
878
878
|
# Update properties of this object
|
879
879
|
def update!(**args)
|
880
|
-
@locale = args[:locale]
|
881
|
-
@text = args[:text]
|
880
|
+
@locale = args[:locale] if args.key?(:locale)
|
881
|
+
@text = args[:text] if args.key?(:text)
|
882
882
|
end
|
883
883
|
end
|
884
884
|
|
@@ -887,7 +887,7 @@ module Google
|
|
887
887
|
# permissions on behalf of their users before an entitlement for the app can be
|
888
888
|
# created.
|
889
889
|
# The permissions collection is read-only. The information provided for each
|
890
|
-
# permission (localized name and description) is intended to be used in the
|
890
|
+
# permission (localized name and description) is intended to be used in the EMM
|
891
891
|
# user interface when obtaining consent from the enterprise.
|
892
892
|
class Permission
|
893
893
|
include Google::Apis::Core::Hashable
|
@@ -919,10 +919,10 @@ module Google
|
|
919
919
|
|
920
920
|
# Update properties of this object
|
921
921
|
def update!(**args)
|
922
|
-
@description = args[:description]
|
923
|
-
@kind = args[:kind]
|
924
|
-
@name = args[:name]
|
925
|
-
@permission_id = args[:permission_id]
|
922
|
+
@description = args[:description] if args.key?(:description)
|
923
|
+
@kind = args[:kind] if args.key?(:kind)
|
924
|
+
@name = args[:name] if args.key?(:name)
|
925
|
+
@permission_id = args[:permission_id] if args.key?(:permission_id)
|
926
926
|
end
|
927
927
|
end
|
928
928
|
|
@@ -932,7 +932,7 @@ module Google
|
|
932
932
|
# enterprise.)
|
933
933
|
# The information provided for each product (localized name, icon, link to the
|
934
934
|
# full Google Play details page) is intended to allow a basic representation of
|
935
|
-
# the product within an
|
935
|
+
# the product within an EMM user interface.
|
936
936
|
class Product
|
937
937
|
include Google::Apis::Core::Hashable
|
938
938
|
|
@@ -1008,17 +1008,17 @@ module Google
|
|
1008
1008
|
|
1009
1009
|
# Update properties of this object
|
1010
1010
|
def update!(**args)
|
1011
|
-
@app_version = args[:app_version]
|
1012
|
-
@author_name = args[:author_name]
|
1013
|
-
@details_url = args[:details_url]
|
1014
|
-
@distribution_channel = args[:distribution_channel]
|
1015
|
-
@icon_url = args[:icon_url]
|
1016
|
-
@kind = args[:kind]
|
1017
|
-
@product_id = args[:product_id]
|
1018
|
-
@product_pricing = args[:product_pricing]
|
1019
|
-
@requires_container_app = args[:requires_container_app]
|
1020
|
-
@title = args[:title]
|
1021
|
-
@work_details_url = args[:work_details_url]
|
1011
|
+
@app_version = args[:app_version] if args.key?(:app_version)
|
1012
|
+
@author_name = args[:author_name] if args.key?(:author_name)
|
1013
|
+
@details_url = args[:details_url] if args.key?(:details_url)
|
1014
|
+
@distribution_channel = args[:distribution_channel] if args.key?(:distribution_channel)
|
1015
|
+
@icon_url = args[:icon_url] if args.key?(:icon_url)
|
1016
|
+
@kind = args[:kind] if args.key?(:kind)
|
1017
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1018
|
+
@product_pricing = args[:product_pricing] if args.key?(:product_pricing)
|
1019
|
+
@requires_container_app = args[:requires_container_app] if args.key?(:requires_container_app)
|
1020
|
+
@title = args[:title] if args.key?(:title)
|
1021
|
+
@work_details_url = args[:work_details_url] if args.key?(:work_details_url)
|
1022
1022
|
end
|
1023
1023
|
end
|
1024
1024
|
|
@@ -1045,8 +1045,8 @@ module Google
|
|
1045
1045
|
|
1046
1046
|
# Update properties of this object
|
1047
1047
|
def update!(**args)
|
1048
|
-
@permission_id = args[:permission_id]
|
1049
|
-
@state = args[:state]
|
1048
|
+
@permission_id = args[:permission_id] if args.key?(:permission_id)
|
1049
|
+
@state = args[:state] if args.key?(:state)
|
1050
1050
|
end
|
1051
1051
|
end
|
1052
1052
|
|
@@ -1078,9 +1078,9 @@ module Google
|
|
1078
1078
|
|
1079
1079
|
# Update properties of this object
|
1080
1080
|
def update!(**args)
|
1081
|
-
@kind = args[:kind]
|
1082
|
-
@permission = args[:permission]
|
1083
|
-
@product_id = args[:product_id]
|
1081
|
+
@kind = args[:kind] if args.key?(:kind)
|
1082
|
+
@permission = args[:permission] if args.key?(:permission)
|
1083
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1084
1084
|
end
|
1085
1085
|
end
|
1086
1086
|
|
@@ -1105,8 +1105,8 @@ module Google
|
|
1105
1105
|
|
1106
1106
|
# Update properties of this object
|
1107
1107
|
def update!(**args)
|
1108
|
-
@kind = args[:kind]
|
1109
|
-
@product_id = args[:product_id]
|
1108
|
+
@kind = args[:kind] if args.key?(:kind)
|
1109
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1110
1110
|
end
|
1111
1111
|
end
|
1112
1112
|
|
@@ -1125,7 +1125,7 @@ module Google
|
|
1125
1125
|
|
1126
1126
|
# Update properties of this object
|
1127
1127
|
def update!(**args)
|
1128
|
-
@approval_url_info = args[:approval_url_info]
|
1128
|
+
@approval_url_info = args[:approval_url_info] if args.key?(:approval_url_info)
|
1129
1129
|
end
|
1130
1130
|
end
|
1131
1131
|
|
@@ -1151,7 +1151,7 @@ module Google
|
|
1151
1151
|
|
1152
1152
|
# Update properties of this object
|
1153
1153
|
def update!(**args)
|
1154
|
-
@url = args[:url]
|
1154
|
+
@url = args[:url] if args.key?(:url)
|
1155
1155
|
end
|
1156
1156
|
end
|
1157
1157
|
|
@@ -1200,11 +1200,11 @@ module Google
|
|
1200
1200
|
|
1201
1201
|
# Update properties of this object
|
1202
1202
|
def update!(**args)
|
1203
|
-
@id = args[:id]
|
1204
|
-
@kind = args[:kind]
|
1205
|
-
@name = args[:name]
|
1206
|
-
@order_in_page = args[:order_in_page]
|
1207
|
-
@product_id = args[:product_id]
|
1203
|
+
@id = args[:id] if args.key?(:id)
|
1204
|
+
@kind = args[:kind] if args.key?(:kind)
|
1205
|
+
@name = args[:name] if args.key?(:name)
|
1206
|
+
@order_in_page = args[:order_in_page] if args.key?(:order_in_page)
|
1207
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1208
1208
|
end
|
1209
1209
|
end
|
1210
1210
|
|
@@ -1235,8 +1235,8 @@ module Google
|
|
1235
1235
|
|
1236
1236
|
# Update properties of this object
|
1237
1237
|
def update!(**args)
|
1238
|
-
@homepage_id = args[:homepage_id]
|
1239
|
-
@kind = args[:kind]
|
1238
|
+
@homepage_id = args[:homepage_id] if args.key?(:homepage_id)
|
1239
|
+
@kind = args[:kind] if args.key?(:kind)
|
1240
1240
|
end
|
1241
1241
|
end
|
1242
1242
|
|
@@ -1261,8 +1261,8 @@ module Google
|
|
1261
1261
|
|
1262
1262
|
# Update properties of this object
|
1263
1263
|
def update!(**args)
|
1264
|
-
@cluster = args[:cluster]
|
1265
|
-
@kind = args[:kind]
|
1264
|
+
@cluster = args[:cluster] if args.key?(:cluster)
|
1265
|
+
@kind = args[:kind] if args.key?(:kind)
|
1266
1266
|
end
|
1267
1267
|
end
|
1268
1268
|
|
@@ -1287,8 +1287,8 @@ module Google
|
|
1287
1287
|
|
1288
1288
|
# Update properties of this object
|
1289
1289
|
def update!(**args)
|
1290
|
-
@kind = args[:kind]
|
1291
|
-
@page = args[:page]
|
1290
|
+
@kind = args[:kind] if args.key?(:kind)
|
1291
|
+
@page = args[:page] if args.key?(:page)
|
1292
1292
|
end
|
1293
1293
|
end
|
1294
1294
|
|
@@ -1330,19 +1330,19 @@ module Google
|
|
1330
1330
|
|
1331
1331
|
# Update properties of this object
|
1332
1332
|
def update!(**args)
|
1333
|
-
@id = args[:id]
|
1334
|
-
@kind = args[:kind]
|
1335
|
-
@link = args[:link]
|
1336
|
-
@name = args[:name]
|
1333
|
+
@id = args[:id] if args.key?(:id)
|
1334
|
+
@kind = args[:kind] if args.key?(:kind)
|
1335
|
+
@link = args[:link] if args.key?(:link)
|
1336
|
+
@name = args[:name] if args.key?(:name)
|
1337
1337
|
end
|
1338
1338
|
end
|
1339
1339
|
|
1340
1340
|
# A user resource represents an individual user within the enterprise's domain.
|
1341
1341
|
# Note that each user is associated with a Google account based on the user's
|
1342
1342
|
# corporate email address (which must be in one of the enterprise's domains). As
|
1343
|
-
# part of installing
|
1344
|
-
# provisioned to the device, and so the user resource must be created
|
1345
|
-
# that. This can be done using the Google Admin SDK Directory API.
|
1343
|
+
# part of installing the EMM's DPC app to manage a device the Google account
|
1344
|
+
# must be provisioned to the device, and so the user resource must be created
|
1345
|
+
# before that. This can be done using the Google Admin SDK Directory API.
|
1346
1346
|
# The ID for a user is an opaque string. It can be retrieved using the list
|
1347
1347
|
# method queried by the user's primary email address.
|
1348
1348
|
class User
|
@@ -1371,15 +1371,15 @@ module Google
|
|
1371
1371
|
|
1372
1372
|
# Update properties of this object
|
1373
1373
|
def update!(**args)
|
1374
|
-
@id = args[:id]
|
1375
|
-
@kind = args[:kind]
|
1376
|
-
@primary_email = args[:primary_email]
|
1374
|
+
@id = args[:id] if args.key?(:id)
|
1375
|
+
@kind = args[:kind] if args.key?(:kind)
|
1376
|
+
@primary_email = args[:primary_email] if args.key?(:primary_email)
|
1377
1377
|
end
|
1378
1378
|
end
|
1379
1379
|
|
1380
1380
|
# A UserToken is used by a user when setting up a managed device or profile with
|
1381
1381
|
# their work account on a device. When the user enters their email address and
|
1382
|
-
# token (activation code) the appropriate
|
1382
|
+
# token (activation code) the appropriate EMM app can be automatically
|
1383
1383
|
# downloaded.
|
1384
1384
|
class UserToken
|
1385
1385
|
include Google::Apis::Core::Hashable
|
@@ -1407,9 +1407,9 @@ module Google
|
|
1407
1407
|
|
1408
1408
|
# Update properties of this object
|
1409
1409
|
def update!(**args)
|
1410
|
-
@kind = args[:kind]
|
1411
|
-
@token = args[:token]
|
1412
|
-
@user_id = args[:user_id]
|
1410
|
+
@kind = args[:kind] if args.key?(:kind)
|
1411
|
+
@token = args[:token] if args.key?(:token)
|
1412
|
+
@user_id = args[:user_id] if args.key?(:user_id)
|
1413
1413
|
end
|
1414
1414
|
end
|
1415
1415
|
|
@@ -1434,8 +1434,8 @@ module Google
|
|
1434
1434
|
|
1435
1435
|
# Update properties of this object
|
1436
1436
|
def update!(**args)
|
1437
|
-
@kind = args[:kind]
|
1438
|
-
@user = args[:user]
|
1437
|
+
@kind = args[:kind] if args.key?(:kind)
|
1438
|
+
@user = args[:user] if args.key?(:user)
|
1439
1439
|
end
|
1440
1440
|
end
|
1441
1441
|
end
|