google-api-client 0.9.8 → 0.10.2
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.
- checksums.yaml +4 -4
- data/.travis.yml +15 -8
- data/CHANGELOG.md +84 -0
- data/Gemfile +10 -2
- data/README.md +10 -2
- data/api_names.yaml +37172 -135
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +5 -5
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +379 -3
- data/generated/google/apis/analytics_v3/representations.rb +136 -0
- data/generated/google/apis/analytics_v3/service.rb +256 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
- data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
- data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
- data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
- data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +360 -38
- data/generated/google/apis/bigquery_v2/representations.rb +106 -0
- data/generated/google/apis/bigquery_v2/service.rb +18 -4
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +83 -0
- data/generated/google/apis/books_v1/representations.rb +35 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +208 -5
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
- data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
- data/generated/google/apis/civicinfo_v2/service.rb +27 -6
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -761
- data/generated/google/apis/classroom_v1/representations.rb +263 -198
- data/generated/google/apis/classroom_v1/service.rb +1349 -672
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
- data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
- data/generated/google/apis/clouddebugger_v2.rb +5 -8
- data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
- data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
- data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
- data/generated/google/apis/cloudtrace_v1.rb +9 -9
- data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
- data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +7007 -3648
- data/generated/google/apis/compute_beta/representations.rb +1459 -120
- data/generated/google/apis/compute_beta/service.rb +7943 -3726
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +2567 -370
- data/generated/google/apis/compute_v1/representations.rb +855 -0
- data/generated/google/apis/compute_v1/service.rb +6388 -2908
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +287 -16
- data/generated/google/apis/container_v1/representations.rb +113 -2
- data/generated/google/apis/container_v1/service.rb +130 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +778 -10
- data/generated/google/apis/content_v2/representations.rb +339 -0
- data/generated/google/apis/content_v2/service.rb +364 -49
- data/generated/google/apis/dataflow_v1b3.rb +37 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
- data/generated/google/apis/dataproc_v1/representations.rb +299 -225
- data/generated/google/apis/dataproc_v1/service.rb +277 -192
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1289 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +43 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
- data/generated/google/apis/dns_v2beta1/service.rb +768 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +595 -37
- data/generated/google/apis/drive_v2/representations.rb +140 -0
- data/generated/google/apis/drive_v2/service.rb +406 -40
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +507 -40
- data/generated/google/apis/drive_v3/representations.rb +105 -0
- data/generated/google/apis/drive_v3/service.rb +326 -29
- data/generated/google/apis/fitness_v1.rb +38 -2
- data/generated/google/apis/fitness_v1/classes.rb +65 -7
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +10 -12
- data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
- data/generated/google/apis/genomics_v1/representations.rb +468 -496
- data/generated/google/apis/genomics_v1/service.rb +978 -882
- data/generated/google/apis/gmail_v1.rb +11 -2
- data/generated/google/apis/gmail_v1/classes.rb +655 -5
- data/generated/google/apis/gmail_v1/representations.rb +261 -0
- data/generated/google/apis/gmail_v1/service.rb +1211 -48
- data/generated/google/apis/groupssettings_v1.rb +2 -2
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +446 -368
- data/generated/google/apis/iam_v1/representations.rb +109 -91
- data/generated/google/apis/iam_v1/service.rb +249 -162
- data/generated/google/apis/identitytoolkit_v3.rb +7 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
- data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
- data/generated/google/apis/kgsearch_v1.rb +2 -3
- data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +26 -24
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +757 -0
- data/generated/google/apis/language_v1beta1/representations.rb +339 -0
- data/generated/google/apis/language_v1beta1/service.rb +185 -0
- data/generated/google/apis/licensing_v1.rb +3 -3
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
- data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
- data/generated/google/apis/logging_v2beta1/service.rb +427 -155
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +706 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1831 -477
- data/generated/google/apis/partners_v2/representations.rb +571 -114
- data/generated/google/apis/partners_v2/service.rb +898 -167
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +1047 -859
- data/generated/google/apis/people_v1/representations.rb +252 -213
- data/generated/google/apis/people_v1/service.rb +75 -62
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +363 -310
- data/generated/google/apis/pubsub_v1/representations.rb +76 -76
- data/generated/google/apis/pubsub_v1/service.rb +464 -335
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +222 -61
- data/generated/google/apis/reseller_v1/representations.rb +28 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +151 -137
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
- data/generated/google/apis/sheets_v4/representations.rb +988 -737
- data/generated/google/apis/sheets_v4/service.rb +266 -99
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +4480 -0
- data/generated/google/apis/slides_v1/representations.rb +1926 -0
- data/generated/google/apis/slides_v1/service.rb +245 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
- data/generated/google/apis/speech_v1beta1/service.rb +270 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +205 -21
- data/generated/google/apis/storage_v1/representations.rb +51 -1
- data/generated/google/apis/storage_v1/service.rb +263 -9
- data/generated/google/apis/tagmanager_v1.rb +5 -5
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1275 -731
- data/generated/google/apis/vision_v1/representations.rb +378 -111
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
- data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +430 -22
- data/generated/google/apis/youtube_v3/representations.rb +171 -4
- data/generated/google/apis/youtube_v3/service.rb +100 -9
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
- data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
- data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
- data/google-api-client.gemspec +4 -3
- data/lib/google/apis/core/api_command.rb +16 -6
- data/lib/google/apis/core/base_service.rb +17 -9
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +6 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/calendar.rb +1 -1
- data/samples/cli/lib/samples/gmail.rb +74 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- data/sync.rb +71 -0
- metadata +86 -18
|
@@ -52,11 +52,13 @@ module Google
|
|
|
52
52
|
super('https://www.googleapis.com/', 'androidenterprise/v1/')
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
#
|
|
55
|
+
# Retrieves the details of a device.
|
|
56
56
|
# @param [String] enterprise_id
|
|
57
57
|
# The ID of the enterprise.
|
|
58
|
-
# @param [String]
|
|
59
|
-
# The ID of the
|
|
58
|
+
# @param [String] user_id
|
|
59
|
+
# The ID of the user.
|
|
60
|
+
# @param [String] device_id
|
|
61
|
+
# The ID of the device.
|
|
60
62
|
# @param [String] fields
|
|
61
63
|
# Selector specifying which fields to include in a partial response.
|
|
62
64
|
# @param [String] quota_user
|
|
@@ -70,29 +72,38 @@ module Google
|
|
|
70
72
|
# Request-specific options
|
|
71
73
|
#
|
|
72
74
|
# @yield [result, err] Result & error if block supplied
|
|
73
|
-
# @yieldparam result [
|
|
75
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::Device] parsed result object
|
|
74
76
|
# @yieldparam err [StandardError] error object if request failed
|
|
75
77
|
#
|
|
76
|
-
# @return [
|
|
78
|
+
# @return [Google::Apis::AndroidenterpriseV1::Device]
|
|
77
79
|
#
|
|
78
80
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
79
81
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
80
82
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
81
|
-
def
|
|
82
|
-
command = make_simple_command(:
|
|
83
|
+
def get_device(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
84
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}', options)
|
|
85
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::Device::Representation
|
|
86
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::Device
|
|
83
87
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
84
|
-
command.params['
|
|
88
|
+
command.params['userId'] = user_id unless user_id.nil?
|
|
89
|
+
command.params['deviceId'] = device_id unless device_id.nil?
|
|
85
90
|
command.query['fields'] = fields unless fields.nil?
|
|
86
91
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
87
92
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
88
93
|
execute_or_queue_command(command, &block)
|
|
89
94
|
end
|
|
90
95
|
|
|
91
|
-
# Retrieves
|
|
96
|
+
# Retrieves whether a device's access to Google services is enabled or disabled.
|
|
97
|
+
# The device state takes effect only if enforcing EMM policies on Android
|
|
98
|
+
# devices is enabled in the Google Admin Console. Otherwise, the device state is
|
|
99
|
+
# ignored and all devices are allowed access to Google services. This is only
|
|
100
|
+
# supported for Google-managed users.
|
|
92
101
|
# @param [String] enterprise_id
|
|
93
102
|
# The ID of the enterprise.
|
|
94
|
-
# @param [String]
|
|
95
|
-
# The ID of the
|
|
103
|
+
# @param [String] user_id
|
|
104
|
+
# The ID of the user.
|
|
105
|
+
# @param [String] device_id
|
|
106
|
+
# The ID of the device.
|
|
96
107
|
# @param [String] fields
|
|
97
108
|
# Selector specifying which fields to include in a partial response.
|
|
98
109
|
# @param [String] quota_user
|
|
@@ -106,30 +117,32 @@ module Google
|
|
|
106
117
|
# Request-specific options
|
|
107
118
|
#
|
|
108
119
|
# @yield [result, err] Result & error if block supplied
|
|
109
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::
|
|
120
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::DeviceState] parsed result object
|
|
110
121
|
# @yieldparam err [StandardError] error object if request failed
|
|
111
122
|
#
|
|
112
|
-
# @return [Google::Apis::AndroidenterpriseV1::
|
|
123
|
+
# @return [Google::Apis::AndroidenterpriseV1::DeviceState]
|
|
113
124
|
#
|
|
114
125
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
115
126
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
116
127
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
117
|
-
def
|
|
118
|
-
command = make_simple_command(:get, 'enterprises/{enterpriseId}/
|
|
119
|
-
command.response_representation = Google::Apis::AndroidenterpriseV1::
|
|
120
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::
|
|
128
|
+
def get_device_state(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
129
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', options)
|
|
130
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
|
|
131
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::DeviceState
|
|
121
132
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
122
|
-
command.params['
|
|
133
|
+
command.params['userId'] = user_id unless user_id.nil?
|
|
134
|
+
command.params['deviceId'] = device_id unless device_id.nil?
|
|
123
135
|
command.query['fields'] = fields unless fields.nil?
|
|
124
136
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
125
137
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
126
138
|
execute_or_queue_command(command, &block)
|
|
127
139
|
end
|
|
128
140
|
|
|
129
|
-
#
|
|
141
|
+
# Retrieves the IDs of all of a user's devices.
|
|
130
142
|
# @param [String] enterprise_id
|
|
131
143
|
# The ID of the enterprise.
|
|
132
|
-
# @param [
|
|
144
|
+
# @param [String] user_id
|
|
145
|
+
# The ID of the user.
|
|
133
146
|
# @param [String] fields
|
|
134
147
|
# Selector specifying which fields to include in a partial response.
|
|
135
148
|
# @param [String] quota_user
|
|
@@ -143,30 +156,38 @@ module Google
|
|
|
143
156
|
# Request-specific options
|
|
144
157
|
#
|
|
145
158
|
# @yield [result, err] Result & error if block supplied
|
|
146
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::
|
|
159
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ListDevicesResponse] parsed result object
|
|
147
160
|
# @yieldparam err [StandardError] error object if request failed
|
|
148
161
|
#
|
|
149
|
-
# @return [Google::Apis::AndroidenterpriseV1::
|
|
162
|
+
# @return [Google::Apis::AndroidenterpriseV1::ListDevicesResponse]
|
|
150
163
|
#
|
|
151
164
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
152
165
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
153
166
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
154
|
-
def
|
|
155
|
-
command = make_simple_command(:
|
|
156
|
-
command.
|
|
157
|
-
command.
|
|
158
|
-
command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
|
|
159
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::Collection
|
|
167
|
+
def list_devices(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
168
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices', options)
|
|
169
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ListDevicesResponse::Representation
|
|
170
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ListDevicesResponse
|
|
160
171
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
172
|
+
command.params['userId'] = user_id unless user_id.nil?
|
|
161
173
|
command.query['fields'] = fields unless fields.nil?
|
|
162
174
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
163
175
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
164
176
|
execute_or_queue_command(command, &block)
|
|
165
177
|
end
|
|
166
178
|
|
|
167
|
-
#
|
|
179
|
+
# Sets whether a device's access to Google services is enabled or disabled. The
|
|
180
|
+
# device state takes effect only if enforcing EMM policies on Android devices is
|
|
181
|
+
# enabled in the Google Admin Console. Otherwise, the device state is ignored
|
|
182
|
+
# and all devices are allowed access to Google services. This is only supported
|
|
183
|
+
# for Google-managed users.
|
|
168
184
|
# @param [String] enterprise_id
|
|
169
185
|
# The ID of the enterprise.
|
|
186
|
+
# @param [String] user_id
|
|
187
|
+
# The ID of the user.
|
|
188
|
+
# @param [String] device_id
|
|
189
|
+
# The ID of the device.
|
|
190
|
+
# @param [Google::Apis::AndroidenterpriseV1::DeviceState] device_state_object
|
|
170
191
|
# @param [String] fields
|
|
171
192
|
# Selector specifying which fields to include in a partial response.
|
|
172
193
|
# @param [String] quota_user
|
|
@@ -180,31 +201,35 @@ module Google
|
|
|
180
201
|
# Request-specific options
|
|
181
202
|
#
|
|
182
203
|
# @yield [result, err] Result & error if block supplied
|
|
183
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::
|
|
204
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::DeviceState] parsed result object
|
|
184
205
|
# @yieldparam err [StandardError] error object if request failed
|
|
185
206
|
#
|
|
186
|
-
# @return [Google::Apis::AndroidenterpriseV1::
|
|
207
|
+
# @return [Google::Apis::AndroidenterpriseV1::DeviceState]
|
|
187
208
|
#
|
|
188
209
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
189
210
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
190
211
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
191
|
-
def
|
|
192
|
-
command = make_simple_command(:
|
|
193
|
-
command.
|
|
194
|
-
command.
|
|
212
|
+
def set_device_state(enterprise_id, user_id, device_id, device_state_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
213
|
+
command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', options)
|
|
214
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
|
|
215
|
+
command.request_object = device_state_object
|
|
216
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
|
|
217
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::DeviceState
|
|
195
218
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
219
|
+
command.params['userId'] = user_id unless user_id.nil?
|
|
220
|
+
command.params['deviceId'] = device_id unless device_id.nil?
|
|
196
221
|
command.query['fields'] = fields unless fields.nil?
|
|
197
222
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
198
223
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
199
224
|
execute_or_queue_command(command, &block)
|
|
200
225
|
end
|
|
201
226
|
|
|
202
|
-
#
|
|
203
|
-
#
|
|
204
|
-
#
|
|
205
|
-
# @param [String]
|
|
206
|
-
# The ID
|
|
207
|
-
#
|
|
227
|
+
# Acknowledges notifications that were received from Enterprises.
|
|
228
|
+
# PullNotificationSet to prevent subsequent calls from returning the same
|
|
229
|
+
# notifications.
|
|
230
|
+
# @param [String] notification_set_id
|
|
231
|
+
# The notification set ID as returned by Enterprises.PullNotificationSet. This
|
|
232
|
+
# must be provided.
|
|
208
233
|
# @param [String] fields
|
|
209
234
|
# Selector specifying which fields to include in a partial response.
|
|
210
235
|
# @param [String] quota_user
|
|
@@ -218,34 +243,30 @@ module Google
|
|
|
218
243
|
# Request-specific options
|
|
219
244
|
#
|
|
220
245
|
# @yield [result, err] Result & error if block supplied
|
|
221
|
-
# @yieldparam result [
|
|
246
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
222
247
|
# @yieldparam err [StandardError] error object if request failed
|
|
223
248
|
#
|
|
224
|
-
# @return [
|
|
249
|
+
# @return [void]
|
|
225
250
|
#
|
|
226
251
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
227
252
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
228
253
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
229
|
-
def
|
|
230
|
-
command = make_simple_command(:
|
|
231
|
-
command.
|
|
232
|
-
command.request_object = collection_object
|
|
233
|
-
command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
|
|
234
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::Collection
|
|
235
|
-
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
236
|
-
command.params['collectionId'] = collection_id unless collection_id.nil?
|
|
254
|
+
def acknowledge_enterprise_notification_set(notification_set_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
255
|
+
command = make_simple_command(:post, 'enterprises/acknowledgeNotificationSet', options)
|
|
256
|
+
command.query['notificationSetId'] = notification_set_id unless notification_set_id.nil?
|
|
237
257
|
command.query['fields'] = fields unless fields.nil?
|
|
238
258
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
239
259
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
240
260
|
execute_or_queue_command(command, &block)
|
|
241
261
|
end
|
|
242
262
|
|
|
243
|
-
#
|
|
244
|
-
#
|
|
245
|
-
#
|
|
246
|
-
# @param [String]
|
|
247
|
-
# The
|
|
248
|
-
# @param [
|
|
263
|
+
# Completes the signup flow, by specifying the Completion token and Enterprise
|
|
264
|
+
# token. This request must not be called multiple times for a given Enterprise
|
|
265
|
+
# Token.
|
|
266
|
+
# @param [String] completion_token
|
|
267
|
+
# The Completion token initially returned by GenerateSignupUrl.
|
|
268
|
+
# @param [String] enterprise_token
|
|
269
|
+
# The Enterprise token appended to the Callback URL.
|
|
249
270
|
# @param [String] fields
|
|
250
271
|
# Selector specifying which fields to include in a partial response.
|
|
251
272
|
# @param [String] quota_user
|
|
@@ -259,37 +280,33 @@ module Google
|
|
|
259
280
|
# Request-specific options
|
|
260
281
|
#
|
|
261
282
|
# @yield [result, err] Result & error if block supplied
|
|
262
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::
|
|
283
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::Enterprise] parsed result object
|
|
263
284
|
# @yieldparam err [StandardError] error object if request failed
|
|
264
285
|
#
|
|
265
|
-
# @return [Google::Apis::AndroidenterpriseV1::
|
|
286
|
+
# @return [Google::Apis::AndroidenterpriseV1::Enterprise]
|
|
266
287
|
#
|
|
267
288
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
268
289
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
269
290
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
270
|
-
def
|
|
271
|
-
command = make_simple_command(:
|
|
272
|
-
command.
|
|
273
|
-
command.
|
|
274
|
-
command.
|
|
275
|
-
command.
|
|
276
|
-
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
277
|
-
command.params['collectionId'] = collection_id unless collection_id.nil?
|
|
291
|
+
def complete_enterprise_signup(completion_token: nil, enterprise_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
292
|
+
command = make_simple_command(:post, 'enterprises/completeSignup', options)
|
|
293
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
|
|
294
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
|
|
295
|
+
command.query['completionToken'] = completion_token unless completion_token.nil?
|
|
296
|
+
command.query['enterpriseToken'] = enterprise_token unless enterprise_token.nil?
|
|
278
297
|
command.query['fields'] = fields unless fields.nil?
|
|
279
298
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
280
299
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
281
300
|
execute_or_queue_command(command, &block)
|
|
282
301
|
end
|
|
283
302
|
|
|
284
|
-
#
|
|
285
|
-
#
|
|
286
|
-
#
|
|
303
|
+
# Returns a unique token to access an embeddable UI. To generate a web UI, pass
|
|
304
|
+
# the generated token into the managed Google Play javascript API. Each token
|
|
305
|
+
# may only be used to start one UI session. See the javascript API documentation
|
|
306
|
+
# for further information.
|
|
287
307
|
# @param [String] enterprise_id
|
|
288
308
|
# The ID of the enterprise.
|
|
289
|
-
# @param [
|
|
290
|
-
# The ID of the collection.
|
|
291
|
-
# @param [String] user_id
|
|
292
|
-
# The ID of the user.
|
|
309
|
+
# @param [Google::Apis::AndroidenterpriseV1::AdministratorWebTokenSpec] administrator_web_token_spec_object
|
|
293
310
|
# @param [String] fields
|
|
294
311
|
# Selector specifying which fields to include in a partial response.
|
|
295
312
|
# @param [String] quota_user
|
|
@@ -303,34 +320,32 @@ module Google
|
|
|
303
320
|
# Request-specific options
|
|
304
321
|
#
|
|
305
322
|
# @yield [result, err] Result & error if block supplied
|
|
306
|
-
# @yieldparam result [
|
|
323
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::AdministratorWebToken] parsed result object
|
|
307
324
|
# @yieldparam err [StandardError] error object if request failed
|
|
308
325
|
#
|
|
309
|
-
# @return [
|
|
326
|
+
# @return [Google::Apis::AndroidenterpriseV1::AdministratorWebToken]
|
|
310
327
|
#
|
|
311
328
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
312
329
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
313
330
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
314
|
-
def
|
|
315
|
-
command = make_simple_command(:
|
|
331
|
+
def create_enterprise_web_token(enterprise_id, administrator_web_token_spec_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
332
|
+
command = make_simple_command(:post, 'enterprises/{enterpriseId}/createWebToken', options)
|
|
333
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::AdministratorWebTokenSpec::Representation
|
|
334
|
+
command.request_object = administrator_web_token_spec_object
|
|
335
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::AdministratorWebToken::Representation
|
|
336
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::AdministratorWebToken
|
|
316
337
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
317
|
-
command.params['collectionId'] = collection_id unless collection_id.nil?
|
|
318
|
-
command.params['userId'] = user_id unless user_id.nil?
|
|
319
338
|
command.query['fields'] = fields unless fields.nil?
|
|
320
339
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
321
340
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
322
341
|
execute_or_queue_command(command, &block)
|
|
323
342
|
end
|
|
324
343
|
|
|
325
|
-
#
|
|
326
|
-
#
|
|
327
|
-
#
|
|
344
|
+
# Deletes the binding between the EMM and enterprise. This is now deprecated.
|
|
345
|
+
# Use this method only to unenroll customers that were previously enrolled with
|
|
346
|
+
# the insert call, then enroll them again with the enroll call.
|
|
328
347
|
# @param [String] enterprise_id
|
|
329
348
|
# The ID of the enterprise.
|
|
330
|
-
# @param [String] collection_id
|
|
331
|
-
# The ID of the collection.
|
|
332
|
-
# @param [String] user_id
|
|
333
|
-
# The ID of the user.
|
|
334
349
|
# @param [String] fields
|
|
335
350
|
# Selector specifying which fields to include in a partial response.
|
|
336
351
|
# @param [String] quota_user
|
|
@@ -344,34 +359,27 @@ module Google
|
|
|
344
359
|
# Request-specific options
|
|
345
360
|
#
|
|
346
361
|
# @yield [result, err] Result & error if block supplied
|
|
347
|
-
# @yieldparam result [
|
|
362
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
348
363
|
# @yieldparam err [StandardError] error object if request failed
|
|
349
364
|
#
|
|
350
|
-
# @return [
|
|
365
|
+
# @return [void]
|
|
351
366
|
#
|
|
352
367
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
353
368
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
354
369
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
355
|
-
def
|
|
356
|
-
command = make_simple_command(:
|
|
357
|
-
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
|
|
358
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::User
|
|
370
|
+
def delete_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
371
|
+
command = make_simple_command(:delete, 'enterprises/{enterpriseId}', options)
|
|
359
372
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
360
|
-
command.params['collectionId'] = collection_id unless collection_id.nil?
|
|
361
|
-
command.params['userId'] = user_id unless user_id.nil?
|
|
362
373
|
command.query['fields'] = fields unless fields.nil?
|
|
363
374
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
364
375
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
365
376
|
execute_or_queue_command(command, &block)
|
|
366
377
|
end
|
|
367
378
|
|
|
368
|
-
#
|
|
369
|
-
#
|
|
370
|
-
#
|
|
371
|
-
# @param [
|
|
372
|
-
# The ID of the enterprise.
|
|
373
|
-
# @param [String] collection_id
|
|
374
|
-
# The ID of the collection.
|
|
379
|
+
# Enrolls an enterprise with the calling EMM.
|
|
380
|
+
# @param [String] token
|
|
381
|
+
# The token provided by the enterprise to register the EMM.
|
|
382
|
+
# @param [Google::Apis::AndroidenterpriseV1::Enterprise] enterprise_object
|
|
375
383
|
# @param [String] fields
|
|
376
384
|
# Selector specifying which fields to include in a partial response.
|
|
377
385
|
# @param [String] quota_user
|
|
@@ -385,36 +393,36 @@ module Google
|
|
|
385
393
|
# Request-specific options
|
|
386
394
|
#
|
|
387
395
|
# @yield [result, err] Result & error if block supplied
|
|
388
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::
|
|
396
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::Enterprise] parsed result object
|
|
389
397
|
# @yieldparam err [StandardError] error object if request failed
|
|
390
398
|
#
|
|
391
|
-
# @return [Google::Apis::AndroidenterpriseV1::
|
|
399
|
+
# @return [Google::Apis::AndroidenterpriseV1::Enterprise]
|
|
392
400
|
#
|
|
393
401
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
394
402
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
395
403
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
396
|
-
def
|
|
397
|
-
command = make_simple_command(:
|
|
398
|
-
command.
|
|
399
|
-
command.
|
|
400
|
-
command.
|
|
401
|
-
command.
|
|
404
|
+
def enroll_enterprise(token, enterprise_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
405
|
+
command = make_simple_command(:post, 'enterprises/enroll', options)
|
|
406
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
|
|
407
|
+
command.request_object = enterprise_object
|
|
408
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
|
|
409
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
|
|
410
|
+
command.query['token'] = token unless token.nil?
|
|
402
411
|
command.query['fields'] = fields unless fields.nil?
|
|
403
412
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
404
413
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
405
414
|
execute_or_queue_command(command, &block)
|
|
406
415
|
end
|
|
407
416
|
|
|
408
|
-
#
|
|
409
|
-
#
|
|
410
|
-
#
|
|
411
|
-
#
|
|
412
|
-
#
|
|
413
|
-
#
|
|
414
|
-
#
|
|
415
|
-
#
|
|
416
|
-
#
|
|
417
|
-
# @param [Google::Apis::AndroidenterpriseV1::User] user_object
|
|
417
|
+
# Generates a sign-up URL.
|
|
418
|
+
# @param [String] callback_url
|
|
419
|
+
# The callback URL to which the Admin will be redirected after successfully
|
|
420
|
+
# creating an enterprise. Before redirecting there the system will add a single
|
|
421
|
+
# query parameter to this URL named "enterpriseToken" which will contain an
|
|
422
|
+
# opaque token to be used for the CompleteSignup request.
|
|
423
|
+
# Beware that this means that the URL will be parsed, the parameter added and
|
|
424
|
+
# then a new URL formatted, i.e. there may be some minor formatting changes and,
|
|
425
|
+
# more importantly, the URL must be well-formed so that it can be parsed.
|
|
418
426
|
# @param [String] fields
|
|
419
427
|
# Selector specifying which fields to include in a partial response.
|
|
420
428
|
# @param [String] quota_user
|
|
@@ -428,39 +436,28 @@ module Google
|
|
|
428
436
|
# Request-specific options
|
|
429
437
|
#
|
|
430
438
|
# @yield [result, err] Result & error if block supplied
|
|
431
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::
|
|
439
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::SignupInfo] parsed result object
|
|
432
440
|
# @yieldparam err [StandardError] error object if request failed
|
|
433
441
|
#
|
|
434
|
-
# @return [Google::Apis::AndroidenterpriseV1::
|
|
442
|
+
# @return [Google::Apis::AndroidenterpriseV1::SignupInfo]
|
|
435
443
|
#
|
|
436
444
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
437
445
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
438
446
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
439
|
-
def
|
|
440
|
-
command = make_simple_command(:
|
|
441
|
-
command.
|
|
442
|
-
command.
|
|
443
|
-
command.
|
|
444
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::User
|
|
445
|
-
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
446
|
-
command.params['collectionId'] = collection_id unless collection_id.nil?
|
|
447
|
-
command.params['userId'] = user_id unless user_id.nil?
|
|
447
|
+
def generate_enterprise_signup_url(callback_url: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
448
|
+
command = make_simple_command(:post, 'enterprises/signupUrl', options)
|
|
449
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::SignupInfo::Representation
|
|
450
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::SignupInfo
|
|
451
|
+
command.query['callbackUrl'] = callback_url unless callback_url.nil?
|
|
448
452
|
command.query['fields'] = fields unless fields.nil?
|
|
449
453
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
450
454
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
451
455
|
execute_or_queue_command(command, &block)
|
|
452
456
|
end
|
|
453
457
|
|
|
454
|
-
#
|
|
455
|
-
# If the collection's visibility is set to viewersOnly then only such users will
|
|
456
|
-
# see the collection.
|
|
458
|
+
# Retrieves the name and domain of an enterprise.
|
|
457
459
|
# @param [String] enterprise_id
|
|
458
460
|
# The ID of the enterprise.
|
|
459
|
-
# @param [String] collection_id
|
|
460
|
-
# The ID of the collection.
|
|
461
|
-
# @param [String] user_id
|
|
462
|
-
# The ID of the user.
|
|
463
|
-
# @param [Google::Apis::AndroidenterpriseV1::User] user_object
|
|
464
461
|
# @param [String] fields
|
|
465
462
|
# Selector specifying which fields to include in a partial response.
|
|
466
463
|
# @param [String] quota_user
|
|
@@ -474,36 +471,40 @@ module Google
|
|
|
474
471
|
# Request-specific options
|
|
475
472
|
#
|
|
476
473
|
# @yield [result, err] Result & error if block supplied
|
|
477
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::
|
|
474
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::Enterprise] parsed result object
|
|
478
475
|
# @yieldparam err [StandardError] error object if request failed
|
|
479
476
|
#
|
|
480
|
-
# @return [Google::Apis::AndroidenterpriseV1::
|
|
477
|
+
# @return [Google::Apis::AndroidenterpriseV1::Enterprise]
|
|
481
478
|
#
|
|
482
479
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
483
480
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
484
481
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
485
|
-
def
|
|
486
|
-
command = make_simple_command(:
|
|
487
|
-
command.
|
|
488
|
-
command.
|
|
489
|
-
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
|
|
490
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::User
|
|
482
|
+
def get_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
483
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}', options)
|
|
484
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
|
|
485
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
|
|
491
486
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
492
|
-
command.params['collectionId'] = collection_id unless collection_id.nil?
|
|
493
|
-
command.params['userId'] = user_id unless user_id.nil?
|
|
494
487
|
command.query['fields'] = fields unless fields.nil?
|
|
495
488
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
496
489
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
497
490
|
execute_or_queue_command(command, &block)
|
|
498
491
|
end
|
|
499
492
|
|
|
500
|
-
#
|
|
493
|
+
# Returns a service account and credentials. The service account can be bound to
|
|
494
|
+
# the enterprise by calling setAccount. The service account is unique to this
|
|
495
|
+
# enterprise and EMM, and will be deleted if the enterprise is unbound. The
|
|
496
|
+
# credentials contain private key data and are not stored server-side.
|
|
497
|
+
# This method can only be called after calling Enterprises.Enroll or Enterprises.
|
|
498
|
+
# CompleteSignup, and before Enterprises.SetAccount; at other times it will
|
|
499
|
+
# return an error.
|
|
500
|
+
# Subsequent calls after the first will generate a new, unique set of
|
|
501
|
+
# credentials, and invalidate the previously generated credentials.
|
|
502
|
+
# Once the service account is bound to the enterprise, it can be managed using
|
|
503
|
+
# the serviceAccountKeys resource.
|
|
501
504
|
# @param [String] enterprise_id
|
|
502
505
|
# The ID of the enterprise.
|
|
503
|
-
# @param [String]
|
|
504
|
-
# The
|
|
505
|
-
# @param [String] device_id
|
|
506
|
-
# The ID of the device.
|
|
506
|
+
# @param [String] key_type
|
|
507
|
+
# The type of credential to return with the service account. Required.
|
|
507
508
|
# @param [String] fields
|
|
508
509
|
# Selector specifying which fields to include in a partial response.
|
|
509
510
|
# @param [String] quota_user
|
|
@@ -517,37 +518,30 @@ module Google
|
|
|
517
518
|
# Request-specific options
|
|
518
519
|
#
|
|
519
520
|
# @yield [result, err] Result & error if block supplied
|
|
520
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::
|
|
521
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ServiceAccount] parsed result object
|
|
521
522
|
# @yieldparam err [StandardError] error object if request failed
|
|
522
523
|
#
|
|
523
|
-
# @return [Google::Apis::AndroidenterpriseV1::
|
|
524
|
+
# @return [Google::Apis::AndroidenterpriseV1::ServiceAccount]
|
|
524
525
|
#
|
|
525
526
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
526
527
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
527
528
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
528
|
-
def
|
|
529
|
-
command = make_simple_command(:get, 'enterprises/{enterpriseId}/
|
|
530
|
-
command.response_representation = Google::Apis::AndroidenterpriseV1::
|
|
531
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::
|
|
529
|
+
def get_enterprise_service_account(enterprise_id, key_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
530
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}/serviceAccount', options)
|
|
531
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ServiceAccount::Representation
|
|
532
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ServiceAccount
|
|
532
533
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
533
|
-
command.
|
|
534
|
-
command.params['deviceId'] = device_id unless device_id.nil?
|
|
534
|
+
command.query['keyType'] = key_type unless key_type.nil?
|
|
535
535
|
command.query['fields'] = fields unless fields.nil?
|
|
536
536
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
537
537
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
538
538
|
execute_or_queue_command(command, &block)
|
|
539
539
|
end
|
|
540
540
|
|
|
541
|
-
#
|
|
542
|
-
#
|
|
543
|
-
# on Android devices is enabled in the Google Admin Console. Otherwise, the
|
|
544
|
-
# device state is ignored and all devices are allowed access to Google services.
|
|
541
|
+
# Returns the store layout for the enterprise. If the store layout has not been
|
|
542
|
+
# set, returns "basic" as the store layout type and no homepage.
|
|
545
543
|
# @param [String] enterprise_id
|
|
546
544
|
# The ID of the enterprise.
|
|
547
|
-
# @param [String] user_id
|
|
548
|
-
# The ID of the user.
|
|
549
|
-
# @param [String] device_id
|
|
550
|
-
# The ID of the device.
|
|
551
545
|
# @param [String] fields
|
|
552
546
|
# Selector specifying which fields to include in a partial response.
|
|
553
547
|
# @param [String] quota_user
|
|
@@ -561,32 +555,30 @@ module Google
|
|
|
561
555
|
# Request-specific options
|
|
562
556
|
#
|
|
563
557
|
# @yield [result, err] Result & error if block supplied
|
|
564
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::
|
|
558
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::StoreLayout] parsed result object
|
|
565
559
|
# @yieldparam err [StandardError] error object if request failed
|
|
566
560
|
#
|
|
567
|
-
# @return [Google::Apis::AndroidenterpriseV1::
|
|
561
|
+
# @return [Google::Apis::AndroidenterpriseV1::StoreLayout]
|
|
568
562
|
#
|
|
569
563
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
570
564
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
571
565
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
572
|
-
def
|
|
573
|
-
command = make_simple_command(:get, 'enterprises/{enterpriseId}/
|
|
574
|
-
command.response_representation = Google::Apis::AndroidenterpriseV1::
|
|
575
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::
|
|
566
|
+
def get_enterprise_store_layout(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
567
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}/storeLayout', options)
|
|
568
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::StoreLayout::Representation
|
|
569
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::StoreLayout
|
|
576
570
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
577
|
-
command.params['userId'] = user_id unless user_id.nil?
|
|
578
|
-
command.params['deviceId'] = device_id unless device_id.nil?
|
|
579
571
|
command.query['fields'] = fields unless fields.nil?
|
|
580
572
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
581
573
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
582
574
|
execute_or_queue_command(command, &block)
|
|
583
575
|
end
|
|
584
576
|
|
|
585
|
-
#
|
|
586
|
-
#
|
|
587
|
-
#
|
|
588
|
-
#
|
|
589
|
-
#
|
|
577
|
+
# Establishes the binding between the EMM and an enterprise. This is now
|
|
578
|
+
# deprecated; use enroll instead.
|
|
579
|
+
# @param [String] token
|
|
580
|
+
# The token provided by the enterprise to register the EMM.
|
|
581
|
+
# @param [Google::Apis::AndroidenterpriseV1::Enterprise] enterprise_object
|
|
590
582
|
# @param [String] fields
|
|
591
583
|
# Selector specifying which fields to include in a partial response.
|
|
592
584
|
# @param [String] quota_user
|
|
@@ -600,37 +592,34 @@ module Google
|
|
|
600
592
|
# Request-specific options
|
|
601
593
|
#
|
|
602
594
|
# @yield [result, err] Result & error if block supplied
|
|
603
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::
|
|
595
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::Enterprise] parsed result object
|
|
604
596
|
# @yieldparam err [StandardError] error object if request failed
|
|
605
597
|
#
|
|
606
|
-
# @return [Google::Apis::AndroidenterpriseV1::
|
|
598
|
+
# @return [Google::Apis::AndroidenterpriseV1::Enterprise]
|
|
607
599
|
#
|
|
608
600
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
609
601
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
610
602
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
611
|
-
def
|
|
612
|
-
command = make_simple_command(:
|
|
613
|
-
command.
|
|
614
|
-
command.
|
|
615
|
-
command.
|
|
616
|
-
command.
|
|
603
|
+
def insert_enterprise(token, enterprise_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
604
|
+
command = make_simple_command(:post, 'enterprises', options)
|
|
605
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
|
|
606
|
+
command.request_object = enterprise_object
|
|
607
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
|
|
608
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
|
|
609
|
+
command.query['token'] = token unless token.nil?
|
|
617
610
|
command.query['fields'] = fields unless fields.nil?
|
|
618
611
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
619
612
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
620
613
|
execute_or_queue_command(command, &block)
|
|
621
614
|
end
|
|
622
615
|
|
|
623
|
-
#
|
|
624
|
-
#
|
|
625
|
-
#
|
|
626
|
-
#
|
|
627
|
-
#
|
|
628
|
-
#
|
|
629
|
-
#
|
|
630
|
-
# The ID of the user.
|
|
631
|
-
# @param [String] device_id
|
|
632
|
-
# The ID of the device.
|
|
633
|
-
# @param [Google::Apis::AndroidenterpriseV1::DeviceState] device_state_object
|
|
616
|
+
# Looks up an enterprise by domain name. This is only supported for enterprises
|
|
617
|
+
# created via the Google-initiated creation flow. Lookup of the id is not needed
|
|
618
|
+
# for enterprises created via the EMM-initiated flow since the EMM learns the
|
|
619
|
+
# enterprise ID in the callback specified in the Enterprises.generateSignupUrl
|
|
620
|
+
# call.
|
|
621
|
+
# @param [String] domain
|
|
622
|
+
# The exact primary domain name of the enterprise to look up.
|
|
634
623
|
# @param [String] fields
|
|
635
624
|
# Selector specifying which fields to include in a partial response.
|
|
636
625
|
# @param [String] quota_user
|
|
@@ -644,34 +633,48 @@ module Google
|
|
|
644
633
|
# Request-specific options
|
|
645
634
|
#
|
|
646
635
|
# @yield [result, err] Result & error if block supplied
|
|
647
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::
|
|
636
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse] parsed result object
|
|
648
637
|
# @yieldparam err [StandardError] error object if request failed
|
|
649
638
|
#
|
|
650
|
-
# @return [Google::Apis::AndroidenterpriseV1::
|
|
639
|
+
# @return [Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse]
|
|
651
640
|
#
|
|
652
641
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
653
642
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
654
643
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
655
|
-
def
|
|
656
|
-
command = make_simple_command(:
|
|
657
|
-
command.
|
|
658
|
-
command.
|
|
659
|
-
command.
|
|
660
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::DeviceState
|
|
661
|
-
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
662
|
-
command.params['userId'] = user_id unless user_id.nil?
|
|
663
|
-
command.params['deviceId'] = device_id unless device_id.nil?
|
|
644
|
+
def list_enterprises(domain, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
645
|
+
command = make_simple_command(:get, 'enterprises', options)
|
|
646
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse::Representation
|
|
647
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse
|
|
648
|
+
command.query['domain'] = domain unless domain.nil?
|
|
664
649
|
command.query['fields'] = fields unless fields.nil?
|
|
665
650
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
666
651
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
667
652
|
execute_or_queue_command(command, &block)
|
|
668
653
|
end
|
|
669
654
|
|
|
670
|
-
#
|
|
671
|
-
#
|
|
672
|
-
#
|
|
673
|
-
#
|
|
674
|
-
#
|
|
655
|
+
# Pulls and returns a notification set for the enterprises associated with the
|
|
656
|
+
# service account authenticated for the request. The notification set may be
|
|
657
|
+
# empty if no notification are pending.
|
|
658
|
+
# A notification set returned needs to be acknowledged within 20 seconds by
|
|
659
|
+
# calling Enterprises.AcknowledgeNotificationSet, unless the notification set is
|
|
660
|
+
# empty.
|
|
661
|
+
# Notifications that are not acknowledged within the 20 seconds will eventually
|
|
662
|
+
# be included again in the response to another PullNotificationSet request, and
|
|
663
|
+
# those that are never acknowledged will ultimately be deleted according to the
|
|
664
|
+
# Google Cloud Platform Pub/Sub system policy.
|
|
665
|
+
# Multiple requests might be performed concurrently to retrieve notifications,
|
|
666
|
+
# in which case the pending notifications (if any) will be split among each
|
|
667
|
+
# caller, if any are pending.
|
|
668
|
+
# If no notifications are present, an empty notification list is returned.
|
|
669
|
+
# Subsequent requests may return more notifications once they become available.
|
|
670
|
+
# @param [String] request_mode
|
|
671
|
+
# The request mode for pulling notifications.
|
|
672
|
+
# Specifying waitForNotifications will cause the request to block and wait until
|
|
673
|
+
# one or more notifications are present, or return an empty notification list if
|
|
674
|
+
# no notifications are present after some time.
|
|
675
|
+
# Speciying returnImmediately will cause the request to immediately return the
|
|
676
|
+
# pending notifications, or an empty list if no notifications are present.
|
|
677
|
+
# If omitted, defaults to waitForNotifications.
|
|
675
678
|
# @param [String] fields
|
|
676
679
|
# Selector specifying which fields to include in a partial response.
|
|
677
680
|
# @param [String] quota_user
|
|
@@ -685,27 +688,29 @@ module Google
|
|
|
685
688
|
# Request-specific options
|
|
686
689
|
#
|
|
687
690
|
# @yield [result, err] Result & error if block supplied
|
|
688
|
-
# @yieldparam result [
|
|
691
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::NotificationSet] parsed result object
|
|
689
692
|
# @yieldparam err [StandardError] error object if request failed
|
|
690
693
|
#
|
|
691
|
-
# @return [
|
|
694
|
+
# @return [Google::Apis::AndroidenterpriseV1::NotificationSet]
|
|
692
695
|
#
|
|
693
696
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
694
697
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
695
698
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
696
|
-
def
|
|
697
|
-
command = make_simple_command(:
|
|
698
|
-
command.
|
|
699
|
+
def pull_enterprise_notification_set(request_mode: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
700
|
+
command = make_simple_command(:post, 'enterprises/pullNotificationSet', options)
|
|
701
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::NotificationSet::Representation
|
|
702
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::NotificationSet
|
|
703
|
+
command.query['requestMode'] = request_mode unless request_mode.nil?
|
|
699
704
|
command.query['fields'] = fields unless fields.nil?
|
|
700
705
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
701
706
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
702
707
|
execute_or_queue_command(command, &block)
|
|
703
708
|
end
|
|
704
709
|
|
|
705
|
-
#
|
|
706
|
-
#
|
|
707
|
-
#
|
|
708
|
-
#
|
|
710
|
+
# Sends a test push notification to validate the EMM integration with the Google
|
|
711
|
+
# Cloud Pub/Sub service for this enterprise.
|
|
712
|
+
# @param [String] enterprise_id
|
|
713
|
+
# The ID of the enterprise.
|
|
709
714
|
# @param [String] fields
|
|
710
715
|
# Selector specifying which fields to include in a partial response.
|
|
711
716
|
# @param [String] quota_user
|
|
@@ -719,30 +724,30 @@ module Google
|
|
|
719
724
|
# Request-specific options
|
|
720
725
|
#
|
|
721
726
|
# @yield [result, err] Result & error if block supplied
|
|
722
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::
|
|
727
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse] parsed result object
|
|
723
728
|
# @yieldparam err [StandardError] error object if request failed
|
|
724
729
|
#
|
|
725
|
-
# @return [Google::Apis::AndroidenterpriseV1::
|
|
730
|
+
# @return [Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse]
|
|
726
731
|
#
|
|
727
732
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
728
733
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
729
734
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
730
|
-
def
|
|
731
|
-
command = make_simple_command(:post, 'enterprises/
|
|
732
|
-
command.
|
|
733
|
-
command.
|
|
734
|
-
command.
|
|
735
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
|
|
736
|
-
command.query['token'] = token unless token.nil?
|
|
735
|
+
def send_enterprise_test_push_notification(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
736
|
+
command = make_simple_command(:post, 'enterprises/{enterpriseId}/sendTestPushNotification', options)
|
|
737
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse::Representation
|
|
738
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse
|
|
739
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
737
740
|
command.query['fields'] = fields unless fields.nil?
|
|
738
741
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
739
742
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
740
743
|
execute_or_queue_command(command, &block)
|
|
741
744
|
end
|
|
742
745
|
|
|
743
|
-
#
|
|
746
|
+
# Sets the account that will be used to authenticate to the API as the
|
|
747
|
+
# enterprise.
|
|
744
748
|
# @param [String] enterprise_id
|
|
745
749
|
# The ID of the enterprise.
|
|
750
|
+
# @param [Google::Apis::AndroidenterpriseV1::EnterpriseAccount] enterprise_account_object
|
|
746
751
|
# @param [String] fields
|
|
747
752
|
# Selector specifying which fields to include in a partial response.
|
|
748
753
|
# @param [String] quota_user
|
|
@@ -756,191 +761,10 @@ module Google
|
|
|
756
761
|
# Request-specific options
|
|
757
762
|
#
|
|
758
763
|
# @yield [result, err] Result & error if block supplied
|
|
759
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::
|
|
764
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::EnterpriseAccount] parsed result object
|
|
760
765
|
# @yieldparam err [StandardError] error object if request failed
|
|
761
766
|
#
|
|
762
|
-
# @return [Google::Apis::AndroidenterpriseV1::
|
|
763
|
-
#
|
|
764
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
765
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
766
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
767
|
-
def get_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
768
|
-
command = make_simple_command(:get, 'enterprises/{enterpriseId}', options)
|
|
769
|
-
command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
|
|
770
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
|
|
771
|
-
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
772
|
-
command.query['fields'] = fields unless fields.nil?
|
|
773
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
774
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
775
|
-
execute_or_queue_command(command, &block)
|
|
776
|
-
end
|
|
777
|
-
|
|
778
|
-
# Returns the store layout resource.
|
|
779
|
-
# @param [String] enterprise_id
|
|
780
|
-
# The ID of the enterprise.
|
|
781
|
-
# @param [String] fields
|
|
782
|
-
# Selector specifying which fields to include in a partial response.
|
|
783
|
-
# @param [String] quota_user
|
|
784
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
785
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
786
|
-
# Overrides userIp if both are provided.
|
|
787
|
-
# @param [String] user_ip
|
|
788
|
-
# IP address of the site where the request originates. Use this if you want to
|
|
789
|
-
# enforce per-user limits.
|
|
790
|
-
# @param [Google::Apis::RequestOptions] options
|
|
791
|
-
# Request-specific options
|
|
792
|
-
#
|
|
793
|
-
# @yield [result, err] Result & error if block supplied
|
|
794
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::StoreLayout] parsed result object
|
|
795
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
796
|
-
#
|
|
797
|
-
# @return [Google::Apis::AndroidenterpriseV1::StoreLayout]
|
|
798
|
-
#
|
|
799
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
800
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
801
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
802
|
-
def get_enterprise_store_layout(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
803
|
-
command = make_simple_command(:get, 'enterprises/{enterpriseId}/storeLayout', options)
|
|
804
|
-
command.response_representation = Google::Apis::AndroidenterpriseV1::StoreLayout::Representation
|
|
805
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::StoreLayout
|
|
806
|
-
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
807
|
-
command.query['fields'] = fields unless fields.nil?
|
|
808
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
809
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
810
|
-
execute_or_queue_command(command, &block)
|
|
811
|
-
end
|
|
812
|
-
|
|
813
|
-
# Establishes the binding between the EMM and an enterprise. This is now
|
|
814
|
-
# deprecated; use enroll instead.
|
|
815
|
-
# @param [String] token
|
|
816
|
-
# The token provided by the enterprise to register the EMM.
|
|
817
|
-
# @param [Google::Apis::AndroidenterpriseV1::Enterprise] enterprise_object
|
|
818
|
-
# @param [String] fields
|
|
819
|
-
# Selector specifying which fields to include in a partial response.
|
|
820
|
-
# @param [String] quota_user
|
|
821
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
822
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
823
|
-
# Overrides userIp if both are provided.
|
|
824
|
-
# @param [String] user_ip
|
|
825
|
-
# IP address of the site where the request originates. Use this if you want to
|
|
826
|
-
# enforce per-user limits.
|
|
827
|
-
# @param [Google::Apis::RequestOptions] options
|
|
828
|
-
# Request-specific options
|
|
829
|
-
#
|
|
830
|
-
# @yield [result, err] Result & error if block supplied
|
|
831
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::Enterprise] parsed result object
|
|
832
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
833
|
-
#
|
|
834
|
-
# @return [Google::Apis::AndroidenterpriseV1::Enterprise]
|
|
835
|
-
#
|
|
836
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
837
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
838
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
839
|
-
def insert_enterprise(token, enterprise_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
840
|
-
command = make_simple_command(:post, 'enterprises', options)
|
|
841
|
-
command.request_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
|
|
842
|
-
command.request_object = enterprise_object
|
|
843
|
-
command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
|
|
844
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
|
|
845
|
-
command.query['token'] = token unless token.nil?
|
|
846
|
-
command.query['fields'] = fields unless fields.nil?
|
|
847
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
848
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
849
|
-
execute_or_queue_command(command, &block)
|
|
850
|
-
end
|
|
851
|
-
|
|
852
|
-
# Looks up an enterprise by domain name.
|
|
853
|
-
# @param [String] domain
|
|
854
|
-
# The exact primary domain name of the enterprise to look up.
|
|
855
|
-
# @param [String] fields
|
|
856
|
-
# Selector specifying which fields to include in a partial response.
|
|
857
|
-
# @param [String] quota_user
|
|
858
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
859
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
860
|
-
# Overrides userIp if both are provided.
|
|
861
|
-
# @param [String] user_ip
|
|
862
|
-
# IP address of the site where the request originates. Use this if you want to
|
|
863
|
-
# enforce per-user limits.
|
|
864
|
-
# @param [Google::Apis::RequestOptions] options
|
|
865
|
-
# Request-specific options
|
|
866
|
-
#
|
|
867
|
-
# @yield [result, err] Result & error if block supplied
|
|
868
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse] parsed result object
|
|
869
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
870
|
-
#
|
|
871
|
-
# @return [Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse]
|
|
872
|
-
#
|
|
873
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
874
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
875
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
876
|
-
def list_enterprises(domain, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
877
|
-
command = make_simple_command(:get, 'enterprises', options)
|
|
878
|
-
command.response_representation = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse::Representation
|
|
879
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse
|
|
880
|
-
command.query['domain'] = domain unless domain.nil?
|
|
881
|
-
command.query['fields'] = fields unless fields.nil?
|
|
882
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
883
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
884
|
-
execute_or_queue_command(command, &block)
|
|
885
|
-
end
|
|
886
|
-
|
|
887
|
-
# Sends a test push notification to validate the EMM integration with the Google
|
|
888
|
-
# Cloud Pub/Sub service for this enterprise.
|
|
889
|
-
# @param [String] enterprise_id
|
|
890
|
-
# The ID of the enterprise.
|
|
891
|
-
# @param [String] fields
|
|
892
|
-
# Selector specifying which fields to include in a partial response.
|
|
893
|
-
# @param [String] quota_user
|
|
894
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
895
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
896
|
-
# Overrides userIp if both are provided.
|
|
897
|
-
# @param [String] user_ip
|
|
898
|
-
# IP address of the site where the request originates. Use this if you want to
|
|
899
|
-
# enforce per-user limits.
|
|
900
|
-
# @param [Google::Apis::RequestOptions] options
|
|
901
|
-
# Request-specific options
|
|
902
|
-
#
|
|
903
|
-
# @yield [result, err] Result & error if block supplied
|
|
904
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse] parsed result object
|
|
905
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
906
|
-
#
|
|
907
|
-
# @return [Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse]
|
|
908
|
-
#
|
|
909
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
910
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
911
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
912
|
-
def send_enterprise_test_push_notification(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
913
|
-
command = make_simple_command(:post, 'enterprises/{enterpriseId}/sendTestPushNotification', options)
|
|
914
|
-
command.response_representation = Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse::Representation
|
|
915
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse
|
|
916
|
-
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
917
|
-
command.query['fields'] = fields unless fields.nil?
|
|
918
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
919
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
920
|
-
execute_or_queue_command(command, &block)
|
|
921
|
-
end
|
|
922
|
-
|
|
923
|
-
# Set the account that will be used to authenticate to the API as the enterprise.
|
|
924
|
-
# @param [String] enterprise_id
|
|
925
|
-
# The ID of the enterprise.
|
|
926
|
-
# @param [Google::Apis::AndroidenterpriseV1::EnterpriseAccount] enterprise_account_object
|
|
927
|
-
# @param [String] fields
|
|
928
|
-
# Selector specifying which fields to include in a partial response.
|
|
929
|
-
# @param [String] quota_user
|
|
930
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
931
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
932
|
-
# Overrides userIp if both are provided.
|
|
933
|
-
# @param [String] user_ip
|
|
934
|
-
# IP address of the site where the request originates. Use this if you want to
|
|
935
|
-
# enforce per-user limits.
|
|
936
|
-
# @param [Google::Apis::RequestOptions] options
|
|
937
|
-
# Request-specific options
|
|
938
|
-
#
|
|
939
|
-
# @yield [result, err] Result & error if block supplied
|
|
940
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::EnterpriseAccount] parsed result object
|
|
941
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
942
|
-
#
|
|
943
|
-
# @return [Google::Apis::AndroidenterpriseV1::EnterpriseAccount]
|
|
767
|
+
# @return [Google::Apis::AndroidenterpriseV1::EnterpriseAccount]
|
|
944
768
|
#
|
|
945
769
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
946
770
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
@@ -958,7 +782,13 @@ module Google
|
|
|
958
782
|
execute_or_queue_command(command, &block)
|
|
959
783
|
end
|
|
960
784
|
|
|
961
|
-
# Sets the store layout
|
|
785
|
+
# Sets the store layout for the enterprise. By default, storeLayoutType is set
|
|
786
|
+
# to "basic" and the basic store layout is enabled. The basic layout only
|
|
787
|
+
# contains apps approved by the admin, and that have been added to the available
|
|
788
|
+
# product set for a user (using the setAvailableProductSet call). Apps on the
|
|
789
|
+
# page are sorted in order of their product ID value. If you create a custom
|
|
790
|
+
# store layout (by setting storeLayoutType = "custom" and setting a homepage),
|
|
791
|
+
# the basic store layout is disabled.
|
|
962
792
|
# @param [String] enterprise_id
|
|
963
793
|
# The ID of the enterprise.
|
|
964
794
|
# @param [Google::Apis::AndroidenterpriseV1::StoreLayout] store_layout_object
|
|
@@ -1029,7 +859,7 @@ module Google
|
|
|
1029
859
|
execute_or_queue_command(command, &block)
|
|
1030
860
|
end
|
|
1031
861
|
|
|
1032
|
-
# Removes an entitlement to an app for a user
|
|
862
|
+
# Removes an entitlement to an app for a user.
|
|
1033
863
|
# @param [String] enterprise_id
|
|
1034
864
|
# The ID of the enterprise.
|
|
1035
865
|
# @param [String] user_id
|
|
@@ -1109,7 +939,7 @@ module Google
|
|
|
1109
939
|
execute_or_queue_command(command, &block)
|
|
1110
940
|
end
|
|
1111
941
|
|
|
1112
|
-
#
|
|
942
|
+
# Lists all entitlements for the specified user. Only the ID is set.
|
|
1113
943
|
# @param [String] enterprise_id
|
|
1114
944
|
# The ID of the enterprise.
|
|
1115
945
|
# @param [String] user_id
|
|
@@ -1493,7 +1323,7 @@ module Google
|
|
|
1493
1323
|
end
|
|
1494
1324
|
|
|
1495
1325
|
# Requests to install the latest version of an app to a device. If the app is
|
|
1496
|
-
# already installed then it is updated to the latest version if necessary. This
|
|
1326
|
+
# already installed, then it is updated to the latest version if necessary. This
|
|
1497
1327
|
# method supports patch semantics.
|
|
1498
1328
|
# @param [String] enterprise_id
|
|
1499
1329
|
# The ID of the enterprise.
|
|
@@ -1543,7 +1373,7 @@ module Google
|
|
|
1543
1373
|
end
|
|
1544
1374
|
|
|
1545
1375
|
# Requests to install the latest version of an app to a device. If the app is
|
|
1546
|
-
# already installed then it is updated to the latest version if necessary.
|
|
1376
|
+
# already installed, then it is updated to the latest version if necessary.
|
|
1547
1377
|
# @param [String] enterprise_id
|
|
1548
1378
|
# The ID of the enterprise.
|
|
1549
1379
|
# @param [String] user_id
|
|
@@ -1591,12 +1421,16 @@ module Google
|
|
|
1591
1421
|
execute_or_queue_command(command, &block)
|
|
1592
1422
|
end
|
|
1593
1423
|
|
|
1594
|
-
#
|
|
1595
|
-
#
|
|
1596
|
-
#
|
|
1597
|
-
#
|
|
1598
|
-
#
|
|
1599
|
-
#
|
|
1424
|
+
# Removes a per-device managed configuration for an app for the specified device.
|
|
1425
|
+
# @param [String] enterprise_id
|
|
1426
|
+
# The ID of the enterprise.
|
|
1427
|
+
# @param [String] user_id
|
|
1428
|
+
# The ID of the user.
|
|
1429
|
+
# @param [String] device_id
|
|
1430
|
+
# The Android ID of the device.
|
|
1431
|
+
# @param [String] managed_configuration_for_device_id
|
|
1432
|
+
# The ID of the managed configuration (a product ID), e.g. "app:com.google.
|
|
1433
|
+
# android.gm".
|
|
1600
1434
|
# @param [String] fields
|
|
1601
1435
|
# Selector specifying which fields to include in a partial response.
|
|
1602
1436
|
# @param [String] quota_user
|
|
@@ -1610,36 +1444,36 @@ module Google
|
|
|
1610
1444
|
# Request-specific options
|
|
1611
1445
|
#
|
|
1612
1446
|
# @yield [result, err] Result & error if block supplied
|
|
1613
|
-
# @yieldparam result [
|
|
1447
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
1614
1448
|
# @yieldparam err [StandardError] error object if request failed
|
|
1615
1449
|
#
|
|
1616
|
-
# @return [
|
|
1450
|
+
# @return [void]
|
|
1617
1451
|
#
|
|
1618
1452
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1619
1453
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1620
1454
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1621
|
-
def
|
|
1622
|
-
command = make_simple_command(:
|
|
1623
|
-
command.
|
|
1624
|
-
command.
|
|
1625
|
-
command.params['
|
|
1626
|
-
command.
|
|
1455
|
+
def delete_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1456
|
+
command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
|
|
1457
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
1458
|
+
command.params['userId'] = user_id unless user_id.nil?
|
|
1459
|
+
command.params['deviceId'] = device_id unless device_id.nil?
|
|
1460
|
+
command.params['managedConfigurationForDeviceId'] = managed_configuration_for_device_id unless managed_configuration_for_device_id.nil?
|
|
1627
1461
|
command.query['fields'] = fields unless fields.nil?
|
|
1628
1462
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1629
1463
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1630
1464
|
execute_or_queue_command(command, &block)
|
|
1631
1465
|
end
|
|
1632
1466
|
|
|
1633
|
-
#
|
|
1634
|
-
# maximum number of products that you can approve per enterprise customer is 1,
|
|
1635
|
-
# 000.
|
|
1636
|
-
# To learn how to use Google Play for Work to design and create a store layout
|
|
1637
|
-
# to display approved products to your users, see Store Layout Design.
|
|
1467
|
+
# Retrieves details of a per-device managed configuration.
|
|
1638
1468
|
# @param [String] enterprise_id
|
|
1639
1469
|
# The ID of the enterprise.
|
|
1640
|
-
# @param [String]
|
|
1641
|
-
# The ID of the
|
|
1642
|
-
# @param [
|
|
1470
|
+
# @param [String] user_id
|
|
1471
|
+
# The ID of the user.
|
|
1472
|
+
# @param [String] device_id
|
|
1473
|
+
# The Android ID of the device.
|
|
1474
|
+
# @param [String] managed_configuration_for_device_id
|
|
1475
|
+
# The ID of the managed configuration (a product ID), e.g. "app:com.google.
|
|
1476
|
+
# android.gm".
|
|
1643
1477
|
# @param [String] fields
|
|
1644
1478
|
# Selector specifying which fields to include in a partial response.
|
|
1645
1479
|
# @param [String] quota_user
|
|
@@ -1653,41 +1487,36 @@ module Google
|
|
|
1653
1487
|
# Request-specific options
|
|
1654
1488
|
#
|
|
1655
1489
|
# @yield [result, err] Result & error if block supplied
|
|
1656
|
-
# @yieldparam result [
|
|
1490
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
|
|
1657
1491
|
# @yieldparam err [StandardError] error object if request failed
|
|
1658
1492
|
#
|
|
1659
|
-
# @return [
|
|
1493
|
+
# @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
|
|
1660
1494
|
#
|
|
1661
1495
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1662
1496
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1663
1497
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1664
|
-
def
|
|
1665
|
-
command = make_simple_command(:
|
|
1666
|
-
command.
|
|
1667
|
-
command.
|
|
1498
|
+
def get_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1499
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
|
|
1500
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
|
1501
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
|
|
1668
1502
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
1669
|
-
command.params['
|
|
1503
|
+
command.params['userId'] = user_id unless user_id.nil?
|
|
1504
|
+
command.params['deviceId'] = device_id unless device_id.nil?
|
|
1505
|
+
command.params['managedConfigurationForDeviceId'] = managed_configuration_for_device_id unless managed_configuration_for_device_id.nil?
|
|
1670
1506
|
command.query['fields'] = fields unless fields.nil?
|
|
1671
1507
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1672
1508
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1673
1509
|
execute_or_queue_command(command, &block)
|
|
1674
1510
|
end
|
|
1675
1511
|
|
|
1676
|
-
#
|
|
1677
|
-
#
|
|
1678
|
-
# accept them on behalf of their organization in order to approve that product.
|
|
1679
|
-
# Admins should accept the displayed permissions by interacting with a separate
|
|
1680
|
-
# UI element in the EMM console, which in turn should trigger the use of this
|
|
1681
|
-
# URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to
|
|
1682
|
-
# approve the product. This URL can only be used to display permissions for up
|
|
1683
|
-
# to 1 day.
|
|
1512
|
+
# Lists all the per-device managed configurations for the specified device. Only
|
|
1513
|
+
# the ID is set.
|
|
1684
1514
|
# @param [String] enterprise_id
|
|
1685
1515
|
# The ID of the enterprise.
|
|
1686
|
-
# @param [String]
|
|
1687
|
-
# The ID of the
|
|
1688
|
-
# @param [String]
|
|
1689
|
-
# The
|
|
1690
|
-
# returned iframe, for instance "en-US".
|
|
1516
|
+
# @param [String] user_id
|
|
1517
|
+
# The ID of the user.
|
|
1518
|
+
# @param [String] device_id
|
|
1519
|
+
# The Android ID of the device.
|
|
1691
1520
|
# @param [String] fields
|
|
1692
1521
|
# Selector specifying which fields to include in a partial response.
|
|
1693
1522
|
# @param [String] quota_user
|
|
@@ -1701,34 +1530,618 @@ module Google
|
|
|
1701
1530
|
# Request-specific options
|
|
1702
1531
|
#
|
|
1703
1532
|
# @yield [result, err] Result & error if block supplied
|
|
1704
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::
|
|
1533
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForDeviceListResponse] parsed result object
|
|
1705
1534
|
# @yieldparam err [StandardError] error object if request failed
|
|
1706
1535
|
#
|
|
1707
|
-
# @return [Google::Apis::AndroidenterpriseV1::
|
|
1536
|
+
# @return [Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForDeviceListResponse]
|
|
1708
1537
|
#
|
|
1709
1538
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1710
1539
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1711
1540
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1712
|
-
def
|
|
1713
|
-
command = make_simple_command(:
|
|
1714
|
-
command.response_representation = Google::Apis::AndroidenterpriseV1::
|
|
1715
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::
|
|
1541
|
+
def list_managedconfigurationsfordevices(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1542
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice', options)
|
|
1543
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForDeviceListResponse::Representation
|
|
1544
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForDeviceListResponse
|
|
1716
1545
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
1717
|
-
command.params['
|
|
1718
|
-
command.
|
|
1546
|
+
command.params['userId'] = user_id unless user_id.nil?
|
|
1547
|
+
command.params['deviceId'] = device_id unless device_id.nil?
|
|
1719
1548
|
command.query['fields'] = fields unless fields.nil?
|
|
1720
1549
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1721
1550
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1722
1551
|
execute_or_queue_command(command, &block)
|
|
1723
1552
|
end
|
|
1724
1553
|
|
|
1725
|
-
#
|
|
1554
|
+
# Adds or updates a per-device managed configuration for an app for the
|
|
1555
|
+
# specified device. This method supports patch semantics.
|
|
1726
1556
|
# @param [String] enterprise_id
|
|
1727
1557
|
# The ID of the enterprise.
|
|
1728
|
-
# @param [String]
|
|
1729
|
-
# The ID of the
|
|
1730
|
-
# @param [String]
|
|
1731
|
-
# The
|
|
1558
|
+
# @param [String] user_id
|
|
1559
|
+
# The ID of the user.
|
|
1560
|
+
# @param [String] device_id
|
|
1561
|
+
# The Android ID of the device.
|
|
1562
|
+
# @param [String] managed_configuration_for_device_id
|
|
1563
|
+
# The ID of the managed configuration (a product ID), e.g. "app:com.google.
|
|
1564
|
+
# android.gm".
|
|
1565
|
+
# @param [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] managed_configuration_object
|
|
1566
|
+
# @param [String] fields
|
|
1567
|
+
# Selector specifying which fields to include in a partial response.
|
|
1568
|
+
# @param [String] quota_user
|
|
1569
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1570
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1571
|
+
# Overrides userIp if both are provided.
|
|
1572
|
+
# @param [String] user_ip
|
|
1573
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1574
|
+
# enforce per-user limits.
|
|
1575
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1576
|
+
# Request-specific options
|
|
1577
|
+
#
|
|
1578
|
+
# @yield [result, err] Result & error if block supplied
|
|
1579
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
|
|
1580
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1581
|
+
#
|
|
1582
|
+
# @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
|
|
1583
|
+
#
|
|
1584
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1585
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1586
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1587
|
+
def patch_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, managed_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1588
|
+
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
|
|
1589
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
|
1590
|
+
command.request_object = managed_configuration_object
|
|
1591
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
|
1592
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
|
|
1593
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
1594
|
+
command.params['userId'] = user_id unless user_id.nil?
|
|
1595
|
+
command.params['deviceId'] = device_id unless device_id.nil?
|
|
1596
|
+
command.params['managedConfigurationForDeviceId'] = managed_configuration_for_device_id unless managed_configuration_for_device_id.nil?
|
|
1597
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1598
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1599
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1600
|
+
execute_or_queue_command(command, &block)
|
|
1601
|
+
end
|
|
1602
|
+
|
|
1603
|
+
# Adds or updates a per-device managed configuration for an app for the
|
|
1604
|
+
# specified device.
|
|
1605
|
+
# @param [String] enterprise_id
|
|
1606
|
+
# The ID of the enterprise.
|
|
1607
|
+
# @param [String] user_id
|
|
1608
|
+
# The ID of the user.
|
|
1609
|
+
# @param [String] device_id
|
|
1610
|
+
# The Android ID of the device.
|
|
1611
|
+
# @param [String] managed_configuration_for_device_id
|
|
1612
|
+
# The ID of the managed configuration (a product ID), e.g. "app:com.google.
|
|
1613
|
+
# android.gm".
|
|
1614
|
+
# @param [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] managed_configuration_object
|
|
1615
|
+
# @param [String] fields
|
|
1616
|
+
# Selector specifying which fields to include in a partial response.
|
|
1617
|
+
# @param [String] quota_user
|
|
1618
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1619
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1620
|
+
# Overrides userIp if both are provided.
|
|
1621
|
+
# @param [String] user_ip
|
|
1622
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1623
|
+
# enforce per-user limits.
|
|
1624
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1625
|
+
# Request-specific options
|
|
1626
|
+
#
|
|
1627
|
+
# @yield [result, err] Result & error if block supplied
|
|
1628
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
|
|
1629
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1630
|
+
#
|
|
1631
|
+
# @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
|
|
1632
|
+
#
|
|
1633
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1634
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1635
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1636
|
+
def update_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, managed_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1637
|
+
command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
|
|
1638
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
|
1639
|
+
command.request_object = managed_configuration_object
|
|
1640
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
|
1641
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
|
|
1642
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
1643
|
+
command.params['userId'] = user_id unless user_id.nil?
|
|
1644
|
+
command.params['deviceId'] = device_id unless device_id.nil?
|
|
1645
|
+
command.params['managedConfigurationForDeviceId'] = managed_configuration_for_device_id unless managed_configuration_for_device_id.nil?
|
|
1646
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1647
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1648
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1649
|
+
execute_or_queue_command(command, &block)
|
|
1650
|
+
end
|
|
1651
|
+
|
|
1652
|
+
# Removes a per-user managed configuration for an app for the specified user.
|
|
1653
|
+
# @param [String] enterprise_id
|
|
1654
|
+
# The ID of the enterprise.
|
|
1655
|
+
# @param [String] user_id
|
|
1656
|
+
# The ID of the user.
|
|
1657
|
+
# @param [String] managed_configuration_for_user_id
|
|
1658
|
+
# The ID of the managed configuration (a product ID), e.g. "app:com.google.
|
|
1659
|
+
# android.gm".
|
|
1660
|
+
# @param [String] fields
|
|
1661
|
+
# Selector specifying which fields to include in a partial response.
|
|
1662
|
+
# @param [String] quota_user
|
|
1663
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1664
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1665
|
+
# Overrides userIp if both are provided.
|
|
1666
|
+
# @param [String] user_ip
|
|
1667
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1668
|
+
# enforce per-user limits.
|
|
1669
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1670
|
+
# Request-specific options
|
|
1671
|
+
#
|
|
1672
|
+
# @yield [result, err] Result & error if block supplied
|
|
1673
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
1674
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1675
|
+
#
|
|
1676
|
+
# @return [void]
|
|
1677
|
+
#
|
|
1678
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1679
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1680
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1681
|
+
def delete_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1682
|
+
command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
|
|
1683
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
1684
|
+
command.params['userId'] = user_id unless user_id.nil?
|
|
1685
|
+
command.params['managedConfigurationForUserId'] = managed_configuration_for_user_id unless managed_configuration_for_user_id.nil?
|
|
1686
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1687
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1688
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1689
|
+
execute_or_queue_command(command, &block)
|
|
1690
|
+
end
|
|
1691
|
+
|
|
1692
|
+
# Retrieves details of a per-user managed configuration for an app for the
|
|
1693
|
+
# specified user.
|
|
1694
|
+
# @param [String] enterprise_id
|
|
1695
|
+
# The ID of the enterprise.
|
|
1696
|
+
# @param [String] user_id
|
|
1697
|
+
# The ID of the user.
|
|
1698
|
+
# @param [String] managed_configuration_for_user_id
|
|
1699
|
+
# The ID of the managed configuration (a product ID), e.g. "app:com.google.
|
|
1700
|
+
# android.gm".
|
|
1701
|
+
# @param [String] fields
|
|
1702
|
+
# Selector specifying which fields to include in a partial response.
|
|
1703
|
+
# @param [String] quota_user
|
|
1704
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1705
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1706
|
+
# Overrides userIp if both are provided.
|
|
1707
|
+
# @param [String] user_ip
|
|
1708
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1709
|
+
# enforce per-user limits.
|
|
1710
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1711
|
+
# Request-specific options
|
|
1712
|
+
#
|
|
1713
|
+
# @yield [result, err] Result & error if block supplied
|
|
1714
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
|
|
1715
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1716
|
+
#
|
|
1717
|
+
# @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
|
|
1718
|
+
#
|
|
1719
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1720
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1721
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1722
|
+
def get_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1723
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
|
|
1724
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
|
1725
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
|
|
1726
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
1727
|
+
command.params['userId'] = user_id unless user_id.nil?
|
|
1728
|
+
command.params['managedConfigurationForUserId'] = managed_configuration_for_user_id unless managed_configuration_for_user_id.nil?
|
|
1729
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1730
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1731
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1732
|
+
execute_or_queue_command(command, &block)
|
|
1733
|
+
end
|
|
1734
|
+
|
|
1735
|
+
# Lists all the per-user managed configurations for the specified user. Only the
|
|
1736
|
+
# ID is set.
|
|
1737
|
+
# @param [String] enterprise_id
|
|
1738
|
+
# The ID of the enterprise.
|
|
1739
|
+
# @param [String] user_id
|
|
1740
|
+
# The ID of the user.
|
|
1741
|
+
# @param [String] fields
|
|
1742
|
+
# Selector specifying which fields to include in a partial response.
|
|
1743
|
+
# @param [String] quota_user
|
|
1744
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1745
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1746
|
+
# Overrides userIp if both are provided.
|
|
1747
|
+
# @param [String] user_ip
|
|
1748
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1749
|
+
# enforce per-user limits.
|
|
1750
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1751
|
+
# Request-specific options
|
|
1752
|
+
#
|
|
1753
|
+
# @yield [result, err] Result & error if block supplied
|
|
1754
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForUserListResponse] parsed result object
|
|
1755
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1756
|
+
#
|
|
1757
|
+
# @return [Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForUserListResponse]
|
|
1758
|
+
#
|
|
1759
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1760
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1761
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1762
|
+
def list_managedconfigurationsforusers(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1763
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser', options)
|
|
1764
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForUserListResponse::Representation
|
|
1765
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForUserListResponse
|
|
1766
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
1767
|
+
command.params['userId'] = user_id unless user_id.nil?
|
|
1768
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1769
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1770
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1771
|
+
execute_or_queue_command(command, &block)
|
|
1772
|
+
end
|
|
1773
|
+
|
|
1774
|
+
# Adds or updates a per-user managed configuration for an app for the specified
|
|
1775
|
+
# user. This method supports patch semantics.
|
|
1776
|
+
# @param [String] enterprise_id
|
|
1777
|
+
# The ID of the enterprise.
|
|
1778
|
+
# @param [String] user_id
|
|
1779
|
+
# The ID of the user.
|
|
1780
|
+
# @param [String] managed_configuration_for_user_id
|
|
1781
|
+
# The ID of the managed configuration (a product ID), e.g. "app:com.google.
|
|
1782
|
+
# android.gm".
|
|
1783
|
+
# @param [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] managed_configuration_object
|
|
1784
|
+
# @param [String] fields
|
|
1785
|
+
# Selector specifying which fields to include in a partial response.
|
|
1786
|
+
# @param [String] quota_user
|
|
1787
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1788
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1789
|
+
# Overrides userIp if both are provided.
|
|
1790
|
+
# @param [String] user_ip
|
|
1791
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1792
|
+
# enforce per-user limits.
|
|
1793
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1794
|
+
# Request-specific options
|
|
1795
|
+
#
|
|
1796
|
+
# @yield [result, err] Result & error if block supplied
|
|
1797
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
|
|
1798
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1799
|
+
#
|
|
1800
|
+
# @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
|
|
1801
|
+
#
|
|
1802
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1803
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1804
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1805
|
+
def patch_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, managed_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1806
|
+
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
|
|
1807
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
|
1808
|
+
command.request_object = managed_configuration_object
|
|
1809
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
|
1810
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
|
|
1811
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
1812
|
+
command.params['userId'] = user_id unless user_id.nil?
|
|
1813
|
+
command.params['managedConfigurationForUserId'] = managed_configuration_for_user_id unless managed_configuration_for_user_id.nil?
|
|
1814
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1815
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1816
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1817
|
+
execute_or_queue_command(command, &block)
|
|
1818
|
+
end
|
|
1819
|
+
|
|
1820
|
+
# Adds or updates a per-user managed configuration for an app for the specified
|
|
1821
|
+
# user.
|
|
1822
|
+
# @param [String] enterprise_id
|
|
1823
|
+
# The ID of the enterprise.
|
|
1824
|
+
# @param [String] user_id
|
|
1825
|
+
# The ID of the user.
|
|
1826
|
+
# @param [String] managed_configuration_for_user_id
|
|
1827
|
+
# The ID of the managed configuration (a product ID), e.g. "app:com.google.
|
|
1828
|
+
# android.gm".
|
|
1829
|
+
# @param [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] managed_configuration_object
|
|
1830
|
+
# @param [String] fields
|
|
1831
|
+
# Selector specifying which fields to include in a partial response.
|
|
1832
|
+
# @param [String] quota_user
|
|
1833
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1834
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1835
|
+
# Overrides userIp if both are provided.
|
|
1836
|
+
# @param [String] user_ip
|
|
1837
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1838
|
+
# enforce per-user limits.
|
|
1839
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1840
|
+
# Request-specific options
|
|
1841
|
+
#
|
|
1842
|
+
# @yield [result, err] Result & error if block supplied
|
|
1843
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
|
|
1844
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1845
|
+
#
|
|
1846
|
+
# @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
|
|
1847
|
+
#
|
|
1848
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1849
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1850
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1851
|
+
def update_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, managed_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1852
|
+
command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
|
|
1853
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
|
1854
|
+
command.request_object = managed_configuration_object
|
|
1855
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
|
1856
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
|
|
1857
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
1858
|
+
command.params['userId'] = user_id unless user_id.nil?
|
|
1859
|
+
command.params['managedConfigurationForUserId'] = managed_configuration_for_user_id unless managed_configuration_for_user_id.nil?
|
|
1860
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1861
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1862
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1863
|
+
execute_or_queue_command(command, &block)
|
|
1864
|
+
end
|
|
1865
|
+
|
|
1866
|
+
# Retrieves details of an Android app permission for display to an enterprise
|
|
1867
|
+
# admin.
|
|
1868
|
+
# @param [String] permission_id
|
|
1869
|
+
# The ID of the permission.
|
|
1870
|
+
# @param [String] language
|
|
1871
|
+
# The BCP47 tag for the user's preferred language (e.g. "en-US", "de")
|
|
1872
|
+
# @param [String] fields
|
|
1873
|
+
# Selector specifying which fields to include in a partial response.
|
|
1874
|
+
# @param [String] quota_user
|
|
1875
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1876
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1877
|
+
# Overrides userIp if both are provided.
|
|
1878
|
+
# @param [String] user_ip
|
|
1879
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1880
|
+
# enforce per-user limits.
|
|
1881
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1882
|
+
# Request-specific options
|
|
1883
|
+
#
|
|
1884
|
+
# @yield [result, err] Result & error if block supplied
|
|
1885
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::Permission] parsed result object
|
|
1886
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1887
|
+
#
|
|
1888
|
+
# @return [Google::Apis::AndroidenterpriseV1::Permission]
|
|
1889
|
+
#
|
|
1890
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1891
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1892
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1893
|
+
def get_permission(permission_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1894
|
+
command = make_simple_command(:get, 'permissions/{permissionId}', options)
|
|
1895
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::Permission::Representation
|
|
1896
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::Permission
|
|
1897
|
+
command.params['permissionId'] = permission_id unless permission_id.nil?
|
|
1898
|
+
command.query['language'] = language unless language.nil?
|
|
1899
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1900
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1901
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1902
|
+
execute_or_queue_command(command, &block)
|
|
1903
|
+
end
|
|
1904
|
+
|
|
1905
|
+
# Approves the specified product and the relevant app permissions, if any. The
|
|
1906
|
+
# maximum number of products that you can approve per enterprise customer is 1,
|
|
1907
|
+
# 000.
|
|
1908
|
+
# To learn how to use managed Google Play to design and create a store layout to
|
|
1909
|
+
# display approved products to your users, see Store Layout Design.
|
|
1910
|
+
# @param [String] enterprise_id
|
|
1911
|
+
# The ID of the enterprise.
|
|
1912
|
+
# @param [String] product_id
|
|
1913
|
+
# The ID of the product.
|
|
1914
|
+
# @param [Google::Apis::AndroidenterpriseV1::ApproveProductRequest] approve_product_request_object
|
|
1915
|
+
# @param [String] fields
|
|
1916
|
+
# Selector specifying which fields to include in a partial response.
|
|
1917
|
+
# @param [String] quota_user
|
|
1918
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1919
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1920
|
+
# Overrides userIp if both are provided.
|
|
1921
|
+
# @param [String] user_ip
|
|
1922
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1923
|
+
# enforce per-user limits.
|
|
1924
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1925
|
+
# Request-specific options
|
|
1926
|
+
#
|
|
1927
|
+
# @yield [result, err] Result & error if block supplied
|
|
1928
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
1929
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1930
|
+
#
|
|
1931
|
+
# @return [void]
|
|
1932
|
+
#
|
|
1933
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1934
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1935
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1936
|
+
def approve_product(enterprise_id, product_id, approve_product_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1937
|
+
command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/approve', options)
|
|
1938
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::ApproveProductRequest::Representation
|
|
1939
|
+
command.request_object = approve_product_request_object
|
|
1940
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
1941
|
+
command.params['productId'] = product_id unless product_id.nil?
|
|
1942
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1943
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1944
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1945
|
+
execute_or_queue_command(command, &block)
|
|
1946
|
+
end
|
|
1947
|
+
|
|
1948
|
+
# Generates a URL that can be rendered in an iframe to display the permissions (
|
|
1949
|
+
# if any) of a product. An enterprise admin must view these permissions and
|
|
1950
|
+
# accept them on behalf of their organization in order to approve that product.
|
|
1951
|
+
# Admins should accept the displayed permissions by interacting with a separate
|
|
1952
|
+
# UI element in the EMM console, which in turn should trigger the use of this
|
|
1953
|
+
# URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to
|
|
1954
|
+
# approve the product. This URL can only be used to display permissions for up
|
|
1955
|
+
# to 1 day.
|
|
1956
|
+
# @param [String] enterprise_id
|
|
1957
|
+
# The ID of the enterprise.
|
|
1958
|
+
# @param [String] product_id
|
|
1959
|
+
# The ID of the product.
|
|
1960
|
+
# @param [String] language_code
|
|
1961
|
+
# The BCP 47 language code used for permission names and descriptions in the
|
|
1962
|
+
# returned iframe, for instance "en-US".
|
|
1963
|
+
# @param [String] fields
|
|
1964
|
+
# Selector specifying which fields to include in a partial response.
|
|
1965
|
+
# @param [String] quota_user
|
|
1966
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1967
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1968
|
+
# Overrides userIp if both are provided.
|
|
1969
|
+
# @param [String] user_ip
|
|
1970
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1971
|
+
# enforce per-user limits.
|
|
1972
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1973
|
+
# Request-specific options
|
|
1974
|
+
#
|
|
1975
|
+
# @yield [result, err] Result & error if block supplied
|
|
1976
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse] parsed result object
|
|
1977
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1978
|
+
#
|
|
1979
|
+
# @return [Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse]
|
|
1980
|
+
#
|
|
1981
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1982
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1983
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1984
|
+
def generate_product_approval_url(enterprise_id, product_id, language_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1985
|
+
command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl', options)
|
|
1986
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse::Representation
|
|
1987
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse
|
|
1988
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
1989
|
+
command.params['productId'] = product_id unless product_id.nil?
|
|
1990
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
|
1991
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1992
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1993
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1994
|
+
execute_or_queue_command(command, &block)
|
|
1995
|
+
end
|
|
1996
|
+
|
|
1997
|
+
# Retrieves details of a product for display to an enterprise admin.
|
|
1998
|
+
# @param [String] enterprise_id
|
|
1999
|
+
# The ID of the enterprise.
|
|
2000
|
+
# @param [String] product_id
|
|
2001
|
+
# The ID of the product, e.g. "app:com.google.android.gm".
|
|
2002
|
+
# @param [String] language
|
|
2003
|
+
# The BCP47 tag for the user's preferred language (e.g. "en-US", "de").
|
|
2004
|
+
# @param [String] fields
|
|
2005
|
+
# Selector specifying which fields to include in a partial response.
|
|
2006
|
+
# @param [String] quota_user
|
|
2007
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2008
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2009
|
+
# Overrides userIp if both are provided.
|
|
2010
|
+
# @param [String] user_ip
|
|
2011
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2012
|
+
# enforce per-user limits.
|
|
2013
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2014
|
+
# Request-specific options
|
|
2015
|
+
#
|
|
2016
|
+
# @yield [result, err] Result & error if block supplied
|
|
2017
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::Product] parsed result object
|
|
2018
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2019
|
+
#
|
|
2020
|
+
# @return [Google::Apis::AndroidenterpriseV1::Product]
|
|
2021
|
+
#
|
|
2022
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2023
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2024
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2025
|
+
def get_product(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2026
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}', options)
|
|
2027
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::Product::Representation
|
|
2028
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::Product
|
|
2029
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
2030
|
+
command.params['productId'] = product_id unless product_id.nil?
|
|
2031
|
+
command.query['language'] = language unless language.nil?
|
|
2032
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2033
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2034
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2035
|
+
execute_or_queue_command(command, &block)
|
|
2036
|
+
end
|
|
2037
|
+
|
|
2038
|
+
# Retrieves the schema that defines the configurable properties for this product.
|
|
2039
|
+
# All products have a schema, but this schema may be empty if no managed
|
|
2040
|
+
# configurations have been defined. This schema can be used to populate a UI
|
|
2041
|
+
# that allows an admin to configure the product. To apply a managed
|
|
2042
|
+
# configuration based on the schema obtained using this API, see Managed
|
|
2043
|
+
# Configurations through Play.
|
|
2044
|
+
# @param [String] enterprise_id
|
|
2045
|
+
# The ID of the enterprise.
|
|
2046
|
+
# @param [String] product_id
|
|
2047
|
+
# The ID of the product.
|
|
2048
|
+
# @param [String] language
|
|
2049
|
+
# The BCP47 tag for the user's preferred language (e.g. "en-US", "de").
|
|
2050
|
+
# @param [String] fields
|
|
2051
|
+
# Selector specifying which fields to include in a partial response.
|
|
2052
|
+
# @param [String] quota_user
|
|
2053
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2054
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2055
|
+
# Overrides userIp if both are provided.
|
|
2056
|
+
# @param [String] user_ip
|
|
2057
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2058
|
+
# enforce per-user limits.
|
|
2059
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2060
|
+
# Request-specific options
|
|
2061
|
+
#
|
|
2062
|
+
# @yield [result, err] Result & error if block supplied
|
|
2063
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema] parsed result object
|
|
2064
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2065
|
+
#
|
|
2066
|
+
# @return [Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema]
|
|
2067
|
+
#
|
|
2068
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2069
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2070
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2071
|
+
def get_product_app_restrictions_schema(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2072
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema', options)
|
|
2073
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema::Representation
|
|
2074
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema
|
|
2075
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
2076
|
+
command.params['productId'] = product_id unless product_id.nil?
|
|
2077
|
+
command.query['language'] = language unless language.nil?
|
|
2078
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2079
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2080
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2081
|
+
execute_or_queue_command(command, &block)
|
|
2082
|
+
end
|
|
2083
|
+
|
|
2084
|
+
# Retrieves the Android app permissions required by this app.
|
|
2085
|
+
# @param [String] enterprise_id
|
|
2086
|
+
# The ID of the enterprise.
|
|
2087
|
+
# @param [String] product_id
|
|
2088
|
+
# The ID of the product.
|
|
2089
|
+
# @param [String] fields
|
|
2090
|
+
# Selector specifying which fields to include in a partial response.
|
|
2091
|
+
# @param [String] quota_user
|
|
2092
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2093
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2094
|
+
# Overrides userIp if both are provided.
|
|
2095
|
+
# @param [String] user_ip
|
|
2096
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2097
|
+
# enforce per-user limits.
|
|
2098
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2099
|
+
# Request-specific options
|
|
2100
|
+
#
|
|
2101
|
+
# @yield [result, err] Result & error if block supplied
|
|
2102
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductPermissions] parsed result object
|
|
2103
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2104
|
+
#
|
|
2105
|
+
# @return [Google::Apis::AndroidenterpriseV1::ProductPermissions]
|
|
2106
|
+
#
|
|
2107
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2108
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2109
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2110
|
+
def get_product_permissions(enterprise_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2111
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/permissions', options)
|
|
2112
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
|
|
2113
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ProductPermissions
|
|
2114
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
2115
|
+
command.params['productId'] = product_id unless product_id.nil?
|
|
2116
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2117
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2118
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2119
|
+
execute_or_queue_command(command, &block)
|
|
2120
|
+
end
|
|
2121
|
+
|
|
2122
|
+
# Finds approved products that match a query, or all approved products if there
|
|
2123
|
+
# is no query.
|
|
2124
|
+
# @param [String] enterprise_id
|
|
2125
|
+
# The ID of the enterprise.
|
|
2126
|
+
# @param [Boolean] approved
|
|
2127
|
+
# Specifies whether to search among all products (false) or among only products
|
|
2128
|
+
# that have been approved (true). Only "true" is supported, and should be
|
|
2129
|
+
# specified.
|
|
2130
|
+
# @param [String] language
|
|
2131
|
+
# The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). Results
|
|
2132
|
+
# are returned in the language best matching the preferred language.
|
|
2133
|
+
# @param [Fixnum] max_results
|
|
2134
|
+
# Specifies the maximum number of products that can be returned per request. If
|
|
2135
|
+
# not specified, uses a default value of 100, which is also the maximum
|
|
2136
|
+
# retrievable within a single response.
|
|
2137
|
+
# @param [String] query
|
|
2138
|
+
# The search query as typed in the Google Play store search box. If omitted, all
|
|
2139
|
+
# approved apps will be returned (using the pagination parameters), including
|
|
2140
|
+
# apps that are not available in the store (e.g. unpublished apps).
|
|
2141
|
+
# @param [String] token
|
|
2142
|
+
# A pagination token is contained in a request''s response when there are more
|
|
2143
|
+
# products. The token can be used in a subsequent request to obtain more
|
|
2144
|
+
# products, and so forth. This parameter cannot be used in the initial request.
|
|
1732
2145
|
# @param [String] fields
|
|
1733
2146
|
# Selector specifying which fields to include in a partial response.
|
|
1734
2147
|
# @param [String] quota_user
|
|
@@ -1742,36 +2155,35 @@ module Google
|
|
|
1742
2155
|
# Request-specific options
|
|
1743
2156
|
#
|
|
1744
2157
|
# @yield [result, err] Result & error if block supplied
|
|
1745
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::
|
|
2158
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductsListResponse] parsed result object
|
|
1746
2159
|
# @yieldparam err [StandardError] error object if request failed
|
|
1747
2160
|
#
|
|
1748
|
-
# @return [Google::Apis::AndroidenterpriseV1::
|
|
2161
|
+
# @return [Google::Apis::AndroidenterpriseV1::ProductsListResponse]
|
|
1749
2162
|
#
|
|
1750
2163
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1751
2164
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1752
2165
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1753
|
-
def
|
|
1754
|
-
command = make_simple_command(:get, 'enterprises/{enterpriseId}/products
|
|
1755
|
-
command.response_representation = Google::Apis::AndroidenterpriseV1::
|
|
1756
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::
|
|
2166
|
+
def list_products(enterprise_id, approved: nil, language: nil, max_results: nil, query: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2167
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}/products', options)
|
|
2168
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ProductsListResponse::Representation
|
|
2169
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ProductsListResponse
|
|
1757
2170
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
1758
|
-
command.
|
|
2171
|
+
command.query['approved'] = approved unless approved.nil?
|
|
1759
2172
|
command.query['language'] = language unless language.nil?
|
|
2173
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
2174
|
+
command.query['query'] = query unless query.nil?
|
|
2175
|
+
command.query['token'] = token unless token.nil?
|
|
1760
2176
|
command.query['fields'] = fields unless fields.nil?
|
|
1761
2177
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1762
2178
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1763
2179
|
execute_or_queue_command(command, &block)
|
|
1764
2180
|
end
|
|
1765
2181
|
|
|
1766
|
-
#
|
|
1767
|
-
# All products have a schema, but this may be empty if no app restrictions are
|
|
1768
|
-
# defined.
|
|
2182
|
+
# Unapproves the specified product (and the relevant app permissions, if any)
|
|
1769
2183
|
# @param [String] enterprise_id
|
|
1770
2184
|
# The ID of the enterprise.
|
|
1771
2185
|
# @param [String] product_id
|
|
1772
2186
|
# The ID of the product.
|
|
1773
|
-
# @param [String] language
|
|
1774
|
-
# The BCP47 tag for the user's preferred language (e.g. "en-US", "de").
|
|
1775
2187
|
# @param [String] fields
|
|
1776
2188
|
# Selector specifying which fields to include in a partial response.
|
|
1777
2189
|
# @param [String] quota_user
|
|
@@ -1785,32 +2197,32 @@ module Google
|
|
|
1785
2197
|
# Request-specific options
|
|
1786
2198
|
#
|
|
1787
2199
|
# @yield [result, err] Result & error if block supplied
|
|
1788
|
-
# @yieldparam result [
|
|
2200
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
1789
2201
|
# @yieldparam err [StandardError] error object if request failed
|
|
1790
2202
|
#
|
|
1791
|
-
# @return [
|
|
2203
|
+
# @return [void]
|
|
1792
2204
|
#
|
|
1793
2205
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1794
2206
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1795
2207
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1796
|
-
def
|
|
1797
|
-
command = make_simple_command(:
|
|
1798
|
-
command.response_representation = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema::Representation
|
|
1799
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema
|
|
2208
|
+
def unapprove_product(enterprise_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2209
|
+
command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/unapprove', options)
|
|
1800
2210
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
1801
2211
|
command.params['productId'] = product_id unless product_id.nil?
|
|
1802
|
-
command.query['language'] = language unless language.nil?
|
|
1803
2212
|
command.query['fields'] = fields unless fields.nil?
|
|
1804
2213
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1805
2214
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1806
2215
|
execute_or_queue_command(command, &block)
|
|
1807
2216
|
end
|
|
1808
2217
|
|
|
1809
|
-
#
|
|
2218
|
+
# Removes and invalidates the specified credentials for the service account
|
|
2219
|
+
# associated with this enterprise. The calling service account must have been
|
|
2220
|
+
# retrieved by calling Enterprises.GetServiceAccount and must have been set as
|
|
2221
|
+
# the enterprise service account by calling Enterprises.SetAccount.
|
|
1810
2222
|
# @param [String] enterprise_id
|
|
1811
2223
|
# The ID of the enterprise.
|
|
1812
|
-
# @param [String]
|
|
1813
|
-
# The ID of the
|
|
2224
|
+
# @param [String] key_id
|
|
2225
|
+
# The ID of the key.
|
|
1814
2226
|
# @param [String] fields
|
|
1815
2227
|
# Selector specifying which fields to include in a partial response.
|
|
1816
2228
|
# @param [String] quota_user
|
|
@@ -1824,47 +2236,32 @@ module Google
|
|
|
1824
2236
|
# Request-specific options
|
|
1825
2237
|
#
|
|
1826
2238
|
# @yield [result, err] Result & error if block supplied
|
|
1827
|
-
# @yieldparam result [
|
|
2239
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
1828
2240
|
# @yieldparam err [StandardError] error object if request failed
|
|
1829
2241
|
#
|
|
1830
|
-
# @return [
|
|
2242
|
+
# @return [void]
|
|
1831
2243
|
#
|
|
1832
2244
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1833
2245
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1834
2246
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1835
|
-
def
|
|
1836
|
-
command = make_simple_command(:
|
|
1837
|
-
command.response_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
|
|
1838
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::ProductPermissions
|
|
2247
|
+
def delete_serviceaccountkey(enterprise_id, key_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2248
|
+
command = make_simple_command(:delete, 'enterprises/{enterpriseId}/serviceAccountKeys/{keyId}', options)
|
|
1839
2249
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
1840
|
-
command.params['
|
|
2250
|
+
command.params['keyId'] = key_id unless key_id.nil?
|
|
1841
2251
|
command.query['fields'] = fields unless fields.nil?
|
|
1842
2252
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1843
2253
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1844
2254
|
execute_or_queue_command(command, &block)
|
|
1845
2255
|
end
|
|
1846
2256
|
|
|
1847
|
-
#
|
|
2257
|
+
# Generates new credentials for the service account associated with this
|
|
2258
|
+
# enterprise. The calling service account must have been retrieved by calling
|
|
2259
|
+
# Enterprises.GetServiceAccount and must have been set as the enterprise service
|
|
2260
|
+
# account by calling Enterprises.SetAccount.
|
|
2261
|
+
# Only the type of the key should be populated in the resource to be inserted.
|
|
1848
2262
|
# @param [String] enterprise_id
|
|
1849
2263
|
# The ID of the enterprise.
|
|
1850
|
-
# @param [
|
|
1851
|
-
# Specifies whether to search among all products (false) or among only products
|
|
1852
|
-
# that have been approved (true). Only "true" is supported, and should be
|
|
1853
|
-
# specified.
|
|
1854
|
-
# @param [String] language
|
|
1855
|
-
# The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). Results
|
|
1856
|
-
# are returned in the language best matching the preferred language.
|
|
1857
|
-
# @param [Fixnum] max_results
|
|
1858
|
-
# Specifies the maximum number of products that can be returned per request. If
|
|
1859
|
-
# not specified, uses a default value of 100, which is also the maximum
|
|
1860
|
-
# retrievable within a single response.
|
|
1861
|
-
# @param [String] query
|
|
1862
|
-
# The search query as typed in the Google Play Store search box. If omitted, all
|
|
1863
|
-
# approved apps will be returned (using the pagination parameters).
|
|
1864
|
-
# @param [String] token
|
|
1865
|
-
# A pagination token is contained in a requests response when there are more
|
|
1866
|
-
# products. The token can be used in a subsequent request to obtain more
|
|
1867
|
-
# products, and so forth. This parameter cannot be used in the initial request.
|
|
2264
|
+
# @param [Google::Apis::AndroidenterpriseV1::ServiceAccountKey] service_account_key_object
|
|
1868
2265
|
# @param [String] fields
|
|
1869
2266
|
# Selector specifying which fields to include in a partial response.
|
|
1870
2267
|
# @param [String] quota_user
|
|
@@ -1878,41 +2275,34 @@ module Google
|
|
|
1878
2275
|
# Request-specific options
|
|
1879
2276
|
#
|
|
1880
2277
|
# @yield [result, err] Result & error if block supplied
|
|
1881
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::
|
|
2278
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ServiceAccountKey] parsed result object
|
|
1882
2279
|
# @yieldparam err [StandardError] error object if request failed
|
|
1883
2280
|
#
|
|
1884
|
-
# @return [Google::Apis::AndroidenterpriseV1::
|
|
2281
|
+
# @return [Google::Apis::AndroidenterpriseV1::ServiceAccountKey]
|
|
1885
2282
|
#
|
|
1886
2283
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1887
2284
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1888
2285
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1889
|
-
def
|
|
1890
|
-
command = make_simple_command(:
|
|
1891
|
-
command.
|
|
1892
|
-
command.
|
|
2286
|
+
def insert_serviceaccountkey(enterprise_id, service_account_key_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2287
|
+
command = make_simple_command(:post, 'enterprises/{enterpriseId}/serviceAccountKeys', options)
|
|
2288
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::ServiceAccountKey::Representation
|
|
2289
|
+
command.request_object = service_account_key_object
|
|
2290
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ServiceAccountKey::Representation
|
|
2291
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ServiceAccountKey
|
|
1893
2292
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
1894
|
-
command.query['approved'] = approved unless approved.nil?
|
|
1895
|
-
command.query['language'] = language unless language.nil?
|
|
1896
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
|
1897
|
-
command.query['query'] = query unless query.nil?
|
|
1898
|
-
command.query['token'] = token unless token.nil?
|
|
1899
2293
|
command.query['fields'] = fields unless fields.nil?
|
|
1900
2294
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1901
2295
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1902
2296
|
execute_or_queue_command(command, &block)
|
|
1903
2297
|
end
|
|
1904
2298
|
|
|
1905
|
-
#
|
|
1906
|
-
#
|
|
1907
|
-
#
|
|
1908
|
-
#
|
|
1909
|
-
#
|
|
1910
|
-
# permissions for this app that have been accepted by the enterprise.
|
|
2299
|
+
# Lists all active credentials for the service account associated with this
|
|
2300
|
+
# enterprise. Only the ID and key type are returned. The calling service account
|
|
2301
|
+
# must have been retrieved by calling Enterprises.GetServiceAccount and must
|
|
2302
|
+
# have been set as the enterprise service account by calling Enterprises.
|
|
2303
|
+
# SetAccount.
|
|
1911
2304
|
# @param [String] enterprise_id
|
|
1912
2305
|
# The ID of the enterprise.
|
|
1913
|
-
# @param [String] product_id
|
|
1914
|
-
# The ID of the product.
|
|
1915
|
-
# @param [Google::Apis::AndroidenterpriseV1::ProductPermissions] product_permissions_object
|
|
1916
2306
|
# @param [String] fields
|
|
1917
2307
|
# Selector specifying which fields to include in a partial response.
|
|
1918
2308
|
# @param [String] quota_user
|
|
@@ -1926,22 +2316,19 @@ module Google
|
|
|
1926
2316
|
# Request-specific options
|
|
1927
2317
|
#
|
|
1928
2318
|
# @yield [result, err] Result & error if block supplied
|
|
1929
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::
|
|
2319
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ServiceAccountKeysListResponse] parsed result object
|
|
1930
2320
|
# @yieldparam err [StandardError] error object if request failed
|
|
1931
2321
|
#
|
|
1932
|
-
# @return [Google::Apis::AndroidenterpriseV1::
|
|
2322
|
+
# @return [Google::Apis::AndroidenterpriseV1::ServiceAccountKeysListResponse]
|
|
1933
2323
|
#
|
|
1934
2324
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1935
2325
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1936
2326
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1937
|
-
def
|
|
1938
|
-
command = make_simple_command(:
|
|
1939
|
-
command.
|
|
1940
|
-
command.
|
|
1941
|
-
command.response_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
|
|
1942
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::ProductPermissions
|
|
2327
|
+
def list_serviceaccountkeys(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2328
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}/serviceAccountKeys', options)
|
|
2329
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ServiceAccountKeysListResponse::Representation
|
|
2330
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ServiceAccountKeysListResponse
|
|
1943
2331
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
1944
|
-
command.params['productId'] = product_id unless product_id.nil?
|
|
1945
2332
|
command.query['fields'] = fields unless fields.nil?
|
|
1946
2333
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1947
2334
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -2424,8 +2811,86 @@ module Google
|
|
|
2424
2811
|
execute_or_queue_command(command, &block)
|
|
2425
2812
|
end
|
|
2426
2813
|
|
|
2427
|
-
#
|
|
2428
|
-
#
|
|
2814
|
+
# Deleted an EMM-managed user.
|
|
2815
|
+
# @param [String] enterprise_id
|
|
2816
|
+
# The ID of the enterprise.
|
|
2817
|
+
# @param [String] user_id
|
|
2818
|
+
# The ID of the user.
|
|
2819
|
+
# @param [String] fields
|
|
2820
|
+
# Selector specifying which fields to include in a partial response.
|
|
2821
|
+
# @param [String] quota_user
|
|
2822
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2823
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2824
|
+
# Overrides userIp if both are provided.
|
|
2825
|
+
# @param [String] user_ip
|
|
2826
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2827
|
+
# enforce per-user limits.
|
|
2828
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2829
|
+
# Request-specific options
|
|
2830
|
+
#
|
|
2831
|
+
# @yield [result, err] Result & error if block supplied
|
|
2832
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
2833
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2834
|
+
#
|
|
2835
|
+
# @return [void]
|
|
2836
|
+
#
|
|
2837
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2838
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2839
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2840
|
+
def delete_user(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2841
|
+
command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}', options)
|
|
2842
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
2843
|
+
command.params['userId'] = user_id unless user_id.nil?
|
|
2844
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2845
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2846
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2847
|
+
execute_or_queue_command(command, &block)
|
|
2848
|
+
end
|
|
2849
|
+
|
|
2850
|
+
# Generates an authentication token which the device policy client can use to
|
|
2851
|
+
# provision the given EMM-managed user account on a device. The generated token
|
|
2852
|
+
# is single-use and expires after a few minutes.
|
|
2853
|
+
# This call only works with EMM-managed accounts.
|
|
2854
|
+
# @param [String] enterprise_id
|
|
2855
|
+
# The ID of the enterprise.
|
|
2856
|
+
# @param [String] user_id
|
|
2857
|
+
# The ID of the user.
|
|
2858
|
+
# @param [String] fields
|
|
2859
|
+
# Selector specifying which fields to include in a partial response.
|
|
2860
|
+
# @param [String] quota_user
|
|
2861
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2862
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2863
|
+
# Overrides userIp if both are provided.
|
|
2864
|
+
# @param [String] user_ip
|
|
2865
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2866
|
+
# enforce per-user limits.
|
|
2867
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2868
|
+
# Request-specific options
|
|
2869
|
+
#
|
|
2870
|
+
# @yield [result, err] Result & error if block supplied
|
|
2871
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::AuthenticationToken] parsed result object
|
|
2872
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2873
|
+
#
|
|
2874
|
+
# @return [Google::Apis::AndroidenterpriseV1::AuthenticationToken]
|
|
2875
|
+
#
|
|
2876
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2877
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2878
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2879
|
+
def generate_user_authentication_token(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2880
|
+
command = make_simple_command(:post, 'enterprises/{enterpriseId}/users/{userId}/authenticationToken', options)
|
|
2881
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::AuthenticationToken::Representation
|
|
2882
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::AuthenticationToken
|
|
2883
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
2884
|
+
command.params['userId'] = user_id unless user_id.nil?
|
|
2885
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2886
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2887
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2888
|
+
execute_or_queue_command(command, &block)
|
|
2889
|
+
end
|
|
2890
|
+
|
|
2891
|
+
# Generates a token (activation code) to allow this user to configure their
|
|
2892
|
+
# managed account in the Android Setup Wizard. Revokes any previously generated
|
|
2893
|
+
# token.
|
|
2429
2894
|
# This call only works with Google managed accounts.
|
|
2430
2895
|
# @param [String] enterprise_id
|
|
2431
2896
|
# The ID of the enterprise.
|
|
@@ -2540,7 +3005,52 @@ module Google
|
|
|
2540
3005
|
execute_or_queue_command(command, &block)
|
|
2541
3006
|
end
|
|
2542
3007
|
|
|
2543
|
-
#
|
|
3008
|
+
# Creates a new EMM-managed user.
|
|
3009
|
+
# The Users resource passed in the body of the request should include an
|
|
3010
|
+
# accountIdentifier and an accountType.
|
|
3011
|
+
# If a corresponding user already exists with the same account identifier, the
|
|
3012
|
+
# user will be updated with the resource. In this case only the displayName
|
|
3013
|
+
# field can be changed.
|
|
3014
|
+
# @param [String] enterprise_id
|
|
3015
|
+
# The ID of the enterprise.
|
|
3016
|
+
# @param [Google::Apis::AndroidenterpriseV1::User] user_object
|
|
3017
|
+
# @param [String] fields
|
|
3018
|
+
# Selector specifying which fields to include in a partial response.
|
|
3019
|
+
# @param [String] quota_user
|
|
3020
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3021
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3022
|
+
# Overrides userIp if both are provided.
|
|
3023
|
+
# @param [String] user_ip
|
|
3024
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
3025
|
+
# enforce per-user limits.
|
|
3026
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3027
|
+
# Request-specific options
|
|
3028
|
+
#
|
|
3029
|
+
# @yield [result, err] Result & error if block supplied
|
|
3030
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
|
|
3031
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3032
|
+
#
|
|
3033
|
+
# @return [Google::Apis::AndroidenterpriseV1::User]
|
|
3034
|
+
#
|
|
3035
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3036
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3037
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3038
|
+
def insert_user(enterprise_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3039
|
+
command = make_simple_command(:post, 'enterprises/{enterpriseId}/users', options)
|
|
3040
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
|
|
3041
|
+
command.request_object = user_object
|
|
3042
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
|
|
3043
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::User
|
|
3044
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
3045
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3046
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3047
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3048
|
+
execute_or_queue_command(command, &block)
|
|
3049
|
+
end
|
|
3050
|
+
|
|
3051
|
+
# Looks up a user by primary email address. This is only supported for Google-
|
|
3052
|
+
# managed users. Lookup of the id is not needed for EMM-managed users because
|
|
3053
|
+
# the id is already returned in the result of the Users.insert call.
|
|
2544
3054
|
# @param [String] enterprise_id
|
|
2545
3055
|
# The ID of the enterprise.
|
|
2546
3056
|
# @param [String] email
|
|
@@ -2578,6 +3088,51 @@ module Google
|
|
|
2578
3088
|
execute_or_queue_command(command, &block)
|
|
2579
3089
|
end
|
|
2580
3090
|
|
|
3091
|
+
# Updates the details of an EMM-managed user.
|
|
3092
|
+
# Can be used with EMM-managed users only (not Google managed users). Pass the
|
|
3093
|
+
# new details in the Users resource in the request body. Only the displayName
|
|
3094
|
+
# field can be changed. Other fields must either be unset or have the currently
|
|
3095
|
+
# active value. This method supports patch semantics.
|
|
3096
|
+
# @param [String] enterprise_id
|
|
3097
|
+
# The ID of the enterprise.
|
|
3098
|
+
# @param [String] user_id
|
|
3099
|
+
# The ID of the user.
|
|
3100
|
+
# @param [Google::Apis::AndroidenterpriseV1::User] user_object
|
|
3101
|
+
# @param [String] fields
|
|
3102
|
+
# Selector specifying which fields to include in a partial response.
|
|
3103
|
+
# @param [String] quota_user
|
|
3104
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3105
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3106
|
+
# Overrides userIp if both are provided.
|
|
3107
|
+
# @param [String] user_ip
|
|
3108
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
3109
|
+
# enforce per-user limits.
|
|
3110
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3111
|
+
# Request-specific options
|
|
3112
|
+
#
|
|
3113
|
+
# @yield [result, err] Result & error if block supplied
|
|
3114
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
|
|
3115
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3116
|
+
#
|
|
3117
|
+
# @return [Google::Apis::AndroidenterpriseV1::User]
|
|
3118
|
+
#
|
|
3119
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3120
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3121
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3122
|
+
def patch_user(enterprise_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3123
|
+
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}', options)
|
|
3124
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
|
|
3125
|
+
command.request_object = user_object
|
|
3126
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
|
|
3127
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::User
|
|
3128
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
3129
|
+
command.params['userId'] = user_id unless user_id.nil?
|
|
3130
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3131
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3132
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3133
|
+
execute_or_queue_command(command, &block)
|
|
3134
|
+
end
|
|
3135
|
+
|
|
2581
3136
|
# Revokes a previously generated token (activation code) for the user.
|
|
2582
3137
|
# @param [String] enterprise_id
|
|
2583
3138
|
# The ID of the enterprise.
|
|
@@ -2614,7 +3169,9 @@ module Google
|
|
|
2614
3169
|
execute_or_queue_command(command, &block)
|
|
2615
3170
|
end
|
|
2616
3171
|
|
|
2617
|
-
# Modifies the set of products a user is entitled to access
|
|
3172
|
+
# Modifies the set of products that a user is entitled to access (referred to as
|
|
3173
|
+
# whitelisted products). Only products that are approved or products that were
|
|
3174
|
+
# previously approved (products with revoked approval) can be whitelisted.
|
|
2618
3175
|
# @param [String] enterprise_id
|
|
2619
3176
|
# The ID of the enterprise.
|
|
2620
3177
|
# @param [String] user_id
|
|
@@ -2654,6 +3211,51 @@ module Google
|
|
|
2654
3211
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2655
3212
|
execute_or_queue_command(command, &block)
|
|
2656
3213
|
end
|
|
3214
|
+
|
|
3215
|
+
# Updates the details of an EMM-managed user.
|
|
3216
|
+
# Can be used with EMM-managed users only (not Google managed users). Pass the
|
|
3217
|
+
# new details in the Users resource in the request body. Only the displayName
|
|
3218
|
+
# field can be changed. Other fields must either be unset or have the currently
|
|
3219
|
+
# active value.
|
|
3220
|
+
# @param [String] enterprise_id
|
|
3221
|
+
# The ID of the enterprise.
|
|
3222
|
+
# @param [String] user_id
|
|
3223
|
+
# The ID of the user.
|
|
3224
|
+
# @param [Google::Apis::AndroidenterpriseV1::User] user_object
|
|
3225
|
+
# @param [String] fields
|
|
3226
|
+
# Selector specifying which fields to include in a partial response.
|
|
3227
|
+
# @param [String] quota_user
|
|
3228
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3229
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3230
|
+
# Overrides userIp if both are provided.
|
|
3231
|
+
# @param [String] user_ip
|
|
3232
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
3233
|
+
# enforce per-user limits.
|
|
3234
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3235
|
+
# Request-specific options
|
|
3236
|
+
#
|
|
3237
|
+
# @yield [result, err] Result & error if block supplied
|
|
3238
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
|
|
3239
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3240
|
+
#
|
|
3241
|
+
# @return [Google::Apis::AndroidenterpriseV1::User]
|
|
3242
|
+
#
|
|
3243
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3244
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3245
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3246
|
+
def update_user(enterprise_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3247
|
+
command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}', options)
|
|
3248
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
|
|
3249
|
+
command.request_object = user_object
|
|
3250
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
|
|
3251
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::User
|
|
3252
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
3253
|
+
command.params['userId'] = user_id unless user_id.nil?
|
|
3254
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3255
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3256
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3257
|
+
execute_or_queue_command(command, &block)
|
|
3258
|
+
end
|
|
2657
3259
|
|
|
2658
3260
|
protected
|
|
2659
3261
|
|