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
@@ -48,11 +48,11 @@ module Google
|
|
48
48
|
|
49
49
|
# Returns the Analytics data.
|
50
50
|
# @param [Google::Apis::AnalyticsreportingV4::GetReportsRequest] get_reports_request_object
|
51
|
+
# @param [String] fields
|
52
|
+
# Selector specifying which fields to include in a partial response.
|
51
53
|
# @param [String] quota_user
|
52
54
|
# Available to use for quota purposes for server-side applications. Can be any
|
53
55
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
54
|
-
# @param [String] fields
|
55
|
-
# Selector specifying which fields to include in a partial response.
|
56
56
|
# @param [Google::Apis::RequestOptions] options
|
57
57
|
# Request-specific options
|
58
58
|
#
|
@@ -65,14 +65,14 @@ module Google
|
|
65
65
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
66
66
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
67
67
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
68
|
-
def batch_get_reports(get_reports_request_object = nil,
|
68
|
+
def batch_get_reports(get_reports_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
69
69
|
command = make_simple_command(:post, 'v4/reports:batchGet', options)
|
70
70
|
command.request_representation = Google::Apis::AnalyticsreportingV4::GetReportsRequest::Representation
|
71
71
|
command.request_object = get_reports_request_object
|
72
72
|
command.response_representation = Google::Apis::AnalyticsreportingV4::GetReportsResponse::Representation
|
73
73
|
command.response_class = Google::Apis::AnalyticsreportingV4::GetReportsResponse
|
74
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
75
74
|
command.query['fields'] = fields unless fields.nil?
|
75
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
76
76
|
execute_or_queue_command(command, &block)
|
77
77
|
end
|
78
78
|
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/android/work/play/emm-api
|
26
26
|
module AndroidenterpriseV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170322'
|
29
29
|
|
30
30
|
# Manage corporate Android devices
|
31
31
|
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
@@ -22,6 +22,90 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module AndroidenterpriseV1
|
24
24
|
|
25
|
+
# This represents an enterprise admin who can manage the enterprise in the
|
26
|
+
# managed Google Play store.
|
27
|
+
class Administrator
|
28
|
+
include Google::Apis::Core::Hashable
|
29
|
+
|
30
|
+
# The admin's email address.
|
31
|
+
# Corresponds to the JSON property `email`
|
32
|
+
# @return [String]
|
33
|
+
attr_accessor :email
|
34
|
+
|
35
|
+
def initialize(**args)
|
36
|
+
update!(**args)
|
37
|
+
end
|
38
|
+
|
39
|
+
# Update properties of this object
|
40
|
+
def update!(**args)
|
41
|
+
@email = args[:email] if args.key?(:email)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
# A token authorizing an admin to access an iframe.
|
46
|
+
class AdministratorWebToken
|
47
|
+
include Google::Apis::Core::Hashable
|
48
|
+
|
49
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
50
|
+
# androidenterprise#administratorWebToken".
|
51
|
+
# Corresponds to the JSON property `kind`
|
52
|
+
# @return [String]
|
53
|
+
attr_accessor :kind
|
54
|
+
|
55
|
+
# An opaque token to be passed to the Play front-end to generate an iframe.
|
56
|
+
# Corresponds to the JSON property `token`
|
57
|
+
# @return [String]
|
58
|
+
attr_accessor :token
|
59
|
+
|
60
|
+
def initialize(**args)
|
61
|
+
update!(**args)
|
62
|
+
end
|
63
|
+
|
64
|
+
# Update properties of this object
|
65
|
+
def update!(**args)
|
66
|
+
@kind = args[:kind] if args.key?(:kind)
|
67
|
+
@token = args[:token] if args.key?(:token)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# Specification for a token used to generate iframes. The token specifies what
|
72
|
+
# data the admin is allowed to modify and the URI the iframe is allowed to
|
73
|
+
# communiate with.
|
74
|
+
class AdministratorWebTokenSpec
|
75
|
+
include Google::Apis::Core::Hashable
|
76
|
+
|
77
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
78
|
+
# androidenterprise#administratorWebTokenSpec".
|
79
|
+
# Corresponds to the JSON property `kind`
|
80
|
+
# @return [String]
|
81
|
+
attr_accessor :kind
|
82
|
+
|
83
|
+
# The URI of the parent frame hosting the iframe. To prevent XSS, the iframe may
|
84
|
+
# not be hosted at other URIs. This URI must be https.
|
85
|
+
# Corresponds to the JSON property `parent`
|
86
|
+
# @return [String]
|
87
|
+
attr_accessor :parent
|
88
|
+
|
89
|
+
# The list of permissions the admin is granted within the iframe. The admin will
|
90
|
+
# only be allowed to view an iframe if they have all of the permissions
|
91
|
+
# associated with it. The only valid value is "approveApps" that will allow the
|
92
|
+
# admin to access the iframe in "approve" mode.
|
93
|
+
# Corresponds to the JSON property `permission`
|
94
|
+
# @return [Array<String>]
|
95
|
+
attr_accessor :permission
|
96
|
+
|
97
|
+
def initialize(**args)
|
98
|
+
update!(**args)
|
99
|
+
end
|
100
|
+
|
101
|
+
# Update properties of this object
|
102
|
+
def update!(**args)
|
103
|
+
@kind = args[:kind] if args.key?(:kind)
|
104
|
+
@parent = args[:parent] if args.key?(:parent)
|
105
|
+
@permission = args[:permission] if args.key?(:permission)
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
25
109
|
# Represents the list of app restrictions available to be pre-configured for the
|
26
110
|
# product.
|
27
111
|
class AppRestrictionsSchema
|
@@ -49,6 +133,28 @@ module Google
|
|
49
133
|
end
|
50
134
|
end
|
51
135
|
|
136
|
+
# An event generated when a new app version is uploaded to Google Play and its
|
137
|
+
# app restrictions schema changed. To fetch the app restrictions schema for an
|
138
|
+
# app, use Products.getAppRestrictionsSchema on the EMM API.
|
139
|
+
class AppRestrictionsSchemaChangeEvent
|
140
|
+
include Google::Apis::Core::Hashable
|
141
|
+
|
142
|
+
# The id of the product (e.g. "app:com.google.android.gm") for which the app
|
143
|
+
# restriction schema changed. This field will always be present.
|
144
|
+
# Corresponds to the JSON property `productId`
|
145
|
+
# @return [String]
|
146
|
+
attr_accessor :product_id
|
147
|
+
|
148
|
+
def initialize(**args)
|
149
|
+
update!(**args)
|
150
|
+
end
|
151
|
+
|
152
|
+
# Update properties of this object
|
153
|
+
def update!(**args)
|
154
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
52
158
|
# A restriction in the App Restriction Schema represents a piece of
|
53
159
|
# configuration that may be pre-applied.
|
54
160
|
class AppRestrictionsSchemaRestriction
|
@@ -71,7 +177,9 @@ module Google
|
|
71
177
|
attr_accessor :entry
|
72
178
|
|
73
179
|
# For choice or multiselect restrictions, the list of possible entries' machine-
|
74
|
-
# readable values.
|
180
|
+
# readable values. These values should be used in the configuration, either as a
|
181
|
+
# single string value for a choice restriction or in a stringArray for a
|
182
|
+
# multiselect restriction.
|
75
183
|
# Corresponds to the JSON property `entryValue`
|
76
184
|
# @return [Array<String>]
|
77
185
|
attr_accessor :entry_value
|
@@ -82,6 +190,13 @@ module Google
|
|
82
190
|
# @return [String]
|
83
191
|
attr_accessor :key
|
84
192
|
|
193
|
+
# For bundle or bundleArray restrictions, the list of nested restrictions. A
|
194
|
+
# bundle restriction is always nested within a bundleArray restriction, and a
|
195
|
+
# bundleArray restriction is at most two levels deep.
|
196
|
+
# Corresponds to the JSON property `nestedRestriction`
|
197
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction>]
|
198
|
+
attr_accessor :nested_restriction
|
199
|
+
|
85
200
|
# The type of the restriction.
|
86
201
|
# Corresponds to the JSON property `restrictionType`
|
87
202
|
# @return [String]
|
@@ -103,6 +218,7 @@ module Google
|
|
103
218
|
@entry = args[:entry] if args.key?(:entry)
|
104
219
|
@entry_value = args[:entry_value] if args.key?(:entry_value)
|
105
220
|
@key = args[:key] if args.key?(:key)
|
221
|
+
@nested_restriction = args[:nested_restriction] if args.key?(:nested_restriction)
|
106
222
|
@restriction_type = args[:restriction_type] if args.key?(:restriction_type)
|
107
223
|
@title = args[:title] if args.key?(:title)
|
108
224
|
end
|
@@ -152,6 +268,29 @@ module Google
|
|
152
268
|
end
|
153
269
|
end
|
154
270
|
|
271
|
+
# An event generated when a new version of an app is uploaded to Google Play.
|
272
|
+
# Notifications are sent for new public versions only: alpha, beta, or canary
|
273
|
+
# versions do not generate this event. To fetch up-to-date version history for
|
274
|
+
# an app, use Products.Get on the EMM API.
|
275
|
+
class AppUpdateEvent
|
276
|
+
include Google::Apis::Core::Hashable
|
277
|
+
|
278
|
+
# The id of the product (e.g. "app:com.google.android.gm") that was updated.
|
279
|
+
# This field will always be present.
|
280
|
+
# Corresponds to the JSON property `productId`
|
281
|
+
# @return [String]
|
282
|
+
attr_accessor :product_id
|
283
|
+
|
284
|
+
def initialize(**args)
|
285
|
+
update!(**args)
|
286
|
+
end
|
287
|
+
|
288
|
+
# Update properties of this object
|
289
|
+
def update!(**args)
|
290
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
155
294
|
# This represents a single version of the app.
|
156
295
|
class AppVersion
|
157
296
|
include Google::Apis::Core::Hashable
|
@@ -161,7 +300,7 @@ module Google
|
|
161
300
|
# @return [Fixnum]
|
162
301
|
attr_accessor :version_code
|
163
302
|
|
164
|
-
# The string used in the Play
|
303
|
+
# The string used in the Play store by the app developer to identify the version.
|
165
304
|
# The string is not necessarily unique or localized (for example, the string
|
166
305
|
# could be "1.4").
|
167
306
|
# Corresponds to the JSON property `versionString`
|
@@ -206,108 +345,23 @@ module Google
|
|
206
345
|
end
|
207
346
|
end
|
208
347
|
|
209
|
-
#
|
210
|
-
#
|
211
|
-
|
212
|
-
# trigger creation of install and entitlement resources). A user cannot install
|
213
|
-
# an app on a managed device unless the app is listed in at least one collection
|
214
|
-
# that is visible to that user.
|
215
|
-
# Note that the API can be used to directly install an app regardless of whether
|
216
|
-
# it is in any collection - so an enterprise has a choice of either directly
|
217
|
-
# pushing apps to users, or allowing users to install apps if they want. Which
|
218
|
-
# is appropriate will depend on the enterprise's policies and the purpose of the
|
219
|
-
# apps concerned.
|
220
|
-
class Collection
|
348
|
+
# An AuthenticationToken is used by the EMM's device policy client on a device
|
349
|
+
# to provision the given EMM-managed user on that device.
|
350
|
+
class AuthenticationToken
|
221
351
|
include Google::Apis::Core::Hashable
|
222
352
|
|
223
|
-
# Arbitrary unique ID, allocated by the API on creation.
|
224
|
-
# Corresponds to the JSON property `collectionId`
|
225
|
-
# @return [String]
|
226
|
-
attr_accessor :collection_id
|
227
|
-
|
228
353
|
# Identifies what kind of resource this is. Value: the fixed string "
|
229
|
-
# androidenterprise#
|
354
|
+
# androidenterprise#authenticationToken".
|
230
355
|
# Corresponds to the JSON property `kind`
|
231
356
|
# @return [String]
|
232
357
|
attr_accessor :kind
|
233
358
|
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
attr_accessor :name
|
239
|
-
|
240
|
-
# The IDs of the products in the collection, in the order in which they should
|
241
|
-
# be displayed.
|
242
|
-
# Corresponds to the JSON property `productId`
|
243
|
-
# @return [Array<String>]
|
244
|
-
attr_accessor :product_id
|
245
|
-
|
246
|
-
# Whether this collection is visible to all users, or only to the users that
|
247
|
-
# have been granted access through the "Collectionviewers" API. With the launch
|
248
|
-
# of the "setAvailableProductSet" API, this property should always be set to "
|
249
|
-
# viewersOnly", as the "allUsers" option will bypass the "availableProductSet"
|
250
|
-
# for all users within a domain.
|
251
|
-
# The "allUsers" setting is deprecated, and will be removed.
|
252
|
-
# Corresponds to the JSON property `visibility`
|
253
|
-
# @return [String]
|
254
|
-
attr_accessor :visibility
|
255
|
-
|
256
|
-
def initialize(**args)
|
257
|
-
update!(**args)
|
258
|
-
end
|
259
|
-
|
260
|
-
# Update properties of this object
|
261
|
-
def update!(**args)
|
262
|
-
@collection_id = args[:collection_id] if args.key?(:collection_id)
|
263
|
-
@kind = args[:kind] if args.key?(:kind)
|
264
|
-
@name = args[:name] if args.key?(:name)
|
265
|
-
@product_id = args[:product_id] if args.key?(:product_id)
|
266
|
-
@visibility = args[:visibility] if args.key?(:visibility)
|
267
|
-
end
|
268
|
-
end
|
269
|
-
|
270
|
-
# The user resources for the collection.
|
271
|
-
class ListCollectionViewersResponse
|
272
|
-
include Google::Apis::Core::Hashable
|
273
|
-
|
274
|
-
# Identifies what kind of resource this is. Value: the fixed string "
|
275
|
-
# androidenterprise#collectionViewersListResponse".
|
276
|
-
# Corresponds to the JSON property `kind`
|
277
|
-
# @return [String]
|
278
|
-
attr_accessor :kind
|
279
|
-
|
280
|
-
# A user of an enterprise.
|
281
|
-
# Corresponds to the JSON property `user`
|
282
|
-
# @return [Array<Google::Apis::AndroidenterpriseV1::User>]
|
283
|
-
attr_accessor :user
|
284
|
-
|
285
|
-
def initialize(**args)
|
286
|
-
update!(**args)
|
287
|
-
end
|
288
|
-
|
289
|
-
# Update properties of this object
|
290
|
-
def update!(**args)
|
291
|
-
@kind = args[:kind] if args.key?(:kind)
|
292
|
-
@user = args[:user] if args.key?(:user)
|
293
|
-
end
|
294
|
-
end
|
295
|
-
|
296
|
-
# The collection resources for the enterprise.
|
297
|
-
class ListCollectionsResponse
|
298
|
-
include Google::Apis::Core::Hashable
|
299
|
-
|
300
|
-
# An ordered collection of products which can be made visible on the Google Play
|
301
|
-
# Store to a selected group of users.
|
302
|
-
# Corresponds to the JSON property `collection`
|
303
|
-
# @return [Array<Google::Apis::AndroidenterpriseV1::Collection>]
|
304
|
-
attr_accessor :collection
|
305
|
-
|
306
|
-
# Identifies what kind of resource this is. Value: the fixed string "
|
307
|
-
# androidenterprise#collectionsListResponse".
|
308
|
-
# Corresponds to the JSON property `kind`
|
359
|
+
# The authentication token to be passed to the device policy client on the
|
360
|
+
# device where it can be used to provision the account for which this token was
|
361
|
+
# generated.
|
362
|
+
# Corresponds to the JSON property `token`
|
309
363
|
# @return [String]
|
310
|
-
attr_accessor :
|
364
|
+
attr_accessor :token
|
311
365
|
|
312
366
|
def initialize(**args)
|
313
367
|
update!(**args)
|
@@ -315,20 +369,20 @@ module Google
|
|
315
369
|
|
316
370
|
# Update properties of this object
|
317
371
|
def update!(**args)
|
318
|
-
@collection = args[:collection] if args.key?(:collection)
|
319
372
|
@kind = args[:kind] if args.key?(:kind)
|
373
|
+
@token = args[:token] if args.key?(:token)
|
320
374
|
end
|
321
375
|
end
|
322
376
|
|
323
|
-
# A
|
377
|
+
# A Devices resource represents a mobile device managed by the EMM and belonging
|
324
378
|
# to a specific enterprise user.
|
325
|
-
# This collection cannot be modified via the API
|
379
|
+
# This collection cannot be modified via the API. It is automatically populated
|
326
380
|
# as devices are set up to be managed.
|
327
381
|
class Device
|
328
382
|
include Google::Apis::Core::Hashable
|
329
383
|
|
330
384
|
# The Google Play Services Android ID for the device encoded as a lowercase hex
|
331
|
-
# string,
|
385
|
+
# string. For example, "123456789abcdef0".
|
332
386
|
# Corresponds to the JSON property `androidId`
|
333
387
|
# @return [String]
|
334
388
|
attr_accessor :android_id
|
@@ -339,12 +393,19 @@ module Google
|
|
339
393
|
# @return [String]
|
340
394
|
attr_accessor :kind
|
341
395
|
|
342
|
-
#
|
343
|
-
#
|
344
|
-
#
|
345
|
-
#
|
346
|
-
#
|
347
|
-
#
|
396
|
+
# Identifies the extent to which the device is controlled by a managed Google
|
397
|
+
# Play EMM in various deployment configurations.
|
398
|
+
# Possible values include:
|
399
|
+
# - "managedDevice", a device that has the EMM's device policy controller (DPC)
|
400
|
+
# as the device owner,
|
401
|
+
# - "managedProfile", a device that has a profile managed by the DPC (DPC is
|
402
|
+
# profile owner) in addition to a separate, personal profile that is unavailable
|
403
|
+
# to the DPC,
|
404
|
+
# - "containerApp", a device running the container App. The container App is
|
405
|
+
# managed by the DPC,
|
406
|
+
# - "unmanagedProfile", a device that has been allowed (by the domain's admin,
|
407
|
+
# using the Admin Console to enable the privilege) to use managed Google Play,
|
408
|
+
# but the profile is itself not owned by a DPC.
|
348
409
|
# Corresponds to the JSON property `managementType`
|
349
410
|
# @return [String]
|
350
411
|
attr_accessor :management_type
|
@@ -417,33 +478,27 @@ module Google
|
|
417
478
|
end
|
418
479
|
end
|
419
480
|
|
420
|
-
# An
|
421
|
-
#
|
422
|
-
#
|
423
|
-
#
|
424
|
-
#
|
425
|
-
#
|
426
|
-
#
|
427
|
-
#
|
428
|
-
#
|
429
|
-
#
|
430
|
-
#
|
431
|
-
#
|
432
|
-
# new token).
|
433
|
-
# The EMM can unenroll an enterprise in order to sever the binding between them.
|
434
|
-
# Re-enrolling an enterprise is possible, but requires a new token to be
|
435
|
-
# retrieved. Enterprises.unenroll requires the EMM's credentials (as enroll does)
|
436
|
-
# , not the enterprise's. Enterprises.unenroll can only be used for enterprises
|
437
|
-
# that were previously enrolled with the enroll call. Any enterprises that were
|
438
|
-
# enrolled using the (deprecated) Enterprises.insert call must be unenrolled
|
439
|
-
# with Enterprises.delete and can then be re-enrolled using the Enterprises.
|
440
|
-
# enroll call.
|
441
|
-
# The ID for an enterprise is an opaque string. It is returned by insert and
|
442
|
-
# enroll and can also be retrieved if the enterprise's primary domain is known
|
443
|
-
# using the list method.
|
481
|
+
# An Enterprises resource represents the binding between an EMM and a specific
|
482
|
+
# organization. That binding can be instantiated in one of two different ways
|
483
|
+
# using this API as follows:
|
484
|
+
# - For Google managed domain customers, the process involves using Enterprises.
|
485
|
+
# enroll and Enterprises.setAccount (in conjunction with artifacts obtained from
|
486
|
+
# the Admin console and the Google API Console) and submitted to the EMM through
|
487
|
+
# a more-or-less manual process.
|
488
|
+
# - For managed Google Play Accounts customers, the process involves using
|
489
|
+
# Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction
|
490
|
+
# with the managed Google Play sign-up UI (Google-provided mechanism) to create
|
491
|
+
# the binding without manual steps. As an EMM, you can support either or both
|
492
|
+
# approaches in your EMM console. See Create an Enterprise for details.
|
444
493
|
class Enterprise
|
445
494
|
include Google::Apis::Core::Hashable
|
446
495
|
|
496
|
+
# Admins of the enterprise. This is only supported for enterprises created via
|
497
|
+
# the EMM-initiated flow.
|
498
|
+
# Corresponds to the JSON property `administrator`
|
499
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::Administrator>]
|
500
|
+
attr_accessor :administrator
|
501
|
+
|
447
502
|
# The unique ID for the enterprise.
|
448
503
|
# Corresponds to the JSON property `id`
|
449
504
|
# @return [String]
|
@@ -455,12 +510,12 @@ module Google
|
|
455
510
|
# @return [String]
|
456
511
|
attr_accessor :kind
|
457
512
|
|
458
|
-
# The name of the enterprise,
|
513
|
+
# The name of the enterprise, for example, "Example, Inc".
|
459
514
|
# Corresponds to the JSON property `name`
|
460
515
|
# @return [String]
|
461
516
|
attr_accessor :name
|
462
517
|
|
463
|
-
# The enterprise's primary domain,
|
518
|
+
# The enterprise's primary domain, such as "example.com".
|
464
519
|
# Corresponds to the JSON property `primaryDomain`
|
465
520
|
# @return [String]
|
466
521
|
attr_accessor :primary_domain
|
@@ -471,6 +526,7 @@ module Google
|
|
471
526
|
|
472
527
|
# Update properties of this object
|
473
528
|
def update!(**args)
|
529
|
+
@administrator = args[:administrator] if args.key?(:administrator)
|
474
530
|
@id = args[:id] if args.key?(:id)
|
475
531
|
@kind = args[:kind] if args.key?(:kind)
|
476
532
|
@name = args[:name] if args.key?(:name)
|
@@ -557,30 +613,26 @@ module Google
|
|
557
613
|
end
|
558
614
|
end
|
559
615
|
|
560
|
-
# The
|
561
|
-
# use a particular app
|
562
|
-
#
|
563
|
-
#
|
564
|
-
#
|
565
|
-
#
|
566
|
-
#
|
567
|
-
#
|
568
|
-
# the app
|
569
|
-
#
|
570
|
-
#
|
571
|
-
#
|
572
|
-
#
|
573
|
-
#
|
574
|
-
#
|
575
|
-
#
|
576
|
-
#
|
577
|
-
#
|
578
|
-
#
|
579
|
-
#
|
580
|
-
# the enterprise has not yet accepted.
|
581
|
-
# Entitlements for paid apps that are due to purchases by the user on a non-
|
582
|
-
# managed profile will have "userPurchase" as entitlement reason; those
|
583
|
-
# entitlements cannot be removed via the API.
|
616
|
+
# The presence of an Entitlements resource indicates that a user has the right
|
617
|
+
# to use a particular app. Entitlements are user specific, not device specific.
|
618
|
+
# This allows a user with an entitlement to an app to install the app on all
|
619
|
+
# their devices. It's also possible for a user to hold an entitlement to an app
|
620
|
+
# without installing the app on any device.
|
621
|
+
# The API can be used to create an entitlement. As an option, you can also use
|
622
|
+
# the API to trigger the installation of an app on all a user's managed devices
|
623
|
+
# at the same time the entitlement is created.
|
624
|
+
# If the app is free, creating the entitlement also creates a group license for
|
625
|
+
# that app. For paid apps, creating the entitlement consumes one license, and
|
626
|
+
# that license remains consumed until the entitlement is removed. If the
|
627
|
+
# enterprise hasn't purchased enough licenses, then no entitlement is created
|
628
|
+
# and the installation fails. An entitlement is also not created for an app if
|
629
|
+
# the app requires permissions that the enterprise hasn't accepted.
|
630
|
+
# If an entitlement is deleted, the app may be uninstalled from a user's device.
|
631
|
+
# As a best practice, uninstall the app by calling Installs.delete() before
|
632
|
+
# deleting the entitlement.
|
633
|
+
# Entitlements for apps that a user pays for on an unmanaged profile have "
|
634
|
+
# userPurchase" as the entitlement reason. These entitlements cannot be removed
|
635
|
+
# via the API.
|
584
636
|
class Entitlement
|
585
637
|
include Google::Apis::Core::Hashable
|
586
638
|
|
@@ -590,14 +642,15 @@ module Google
|
|
590
642
|
# @return [String]
|
591
643
|
attr_accessor :kind
|
592
644
|
|
593
|
-
# The ID of the product that the entitlement is for,
|
594
|
-
# android.gm".
|
645
|
+
# The ID of the product that the entitlement is for. For example, "app:com.
|
646
|
+
# google.android.gm".
|
595
647
|
# Corresponds to the JSON property `productId`
|
596
648
|
# @return [String]
|
597
649
|
attr_accessor :product_id
|
598
650
|
|
599
|
-
# The reason for the entitlement,
|
600
|
-
# it will be replaced by the acquisition kind field of
|
651
|
+
# The reason for the entitlement. For example, "free" for free apps. This
|
652
|
+
# property is temporary: it will be replaced by the acquisition kind field of
|
653
|
+
# group licenses.
|
601
654
|
# Corresponds to the JSON property `reason`
|
602
655
|
# @return [String]
|
603
656
|
attr_accessor :reason
|
@@ -661,19 +714,18 @@ module Google
|
|
661
714
|
class GroupLicense
|
662
715
|
include Google::Apis::Core::Hashable
|
663
716
|
|
664
|
-
# How this group license was acquired. "bulkPurchase" means that this
|
665
|
-
#
|
666
|
-
# product;
|
717
|
+
# How this group license was acquired. "bulkPurchase" means that this
|
718
|
+
# Grouplicenses resource was created because the enterprise purchased licenses
|
719
|
+
# for this product; otherwise, the value is "free" (for free products).
|
667
720
|
# Corresponds to the JSON property `acquisitionKind`
|
668
721
|
# @return [String]
|
669
722
|
attr_accessor :acquisition_kind
|
670
723
|
|
671
724
|
# Whether the product to which this group license relates is currently approved
|
672
|
-
# by the enterprise
|
673
|
-
#
|
674
|
-
#
|
675
|
-
#
|
676
|
-
# created.
|
725
|
+
# by the enterprise. Products are approved when a group license is first created,
|
726
|
+
# but this approval may be revoked by an enterprise admin via Google Play.
|
727
|
+
# Unapproved products will not be visible to end users in collections, and new
|
728
|
+
# entitlements to them should not normally be created.
|
677
729
|
# Corresponds to the JSON property `approval`
|
678
730
|
# @return [String]
|
679
731
|
attr_accessor :approval
|
@@ -691,14 +743,14 @@ module Google
|
|
691
743
|
attr_accessor :num_provisioned
|
692
744
|
|
693
745
|
# The number of purchased licenses (possibly in multiple purchases). If this
|
694
|
-
# field is omitted then there is no limit on the number of licenses that can be
|
695
|
-
# provisioned (
|
746
|
+
# field is omitted, then there is no limit on the number of licenses that can be
|
747
|
+
# provisioned (for example, if the acquisition kind is "free").
|
696
748
|
# Corresponds to the JSON property `numPurchased`
|
697
749
|
# @return [Fixnum]
|
698
750
|
attr_accessor :num_purchased
|
699
751
|
|
700
|
-
# The ID of the product that the license is for,
|
701
|
-
# .
|
752
|
+
# The ID of the product that the license is for. For example, "app:com.google.
|
753
|
+
# android.gm".
|
702
754
|
# Corresponds to the JSON property `productId`
|
703
755
|
# @return [String]
|
704
756
|
attr_accessor :product_id
|
@@ -770,18 +822,18 @@ module Google
|
|
770
822
|
end
|
771
823
|
end
|
772
824
|
|
773
|
-
# The existence of an
|
825
|
+
# The existence of an Installs resource indicates that an app is installed on a
|
774
826
|
# particular device (or that an install is pending).
|
775
827
|
# The API can be used to create an install resource using the update method.
|
776
828
|
# This triggers the actual install of the app on the device. If the user does
|
777
|
-
# not already have an entitlement for the app then an attempt is made to create
|
778
|
-
# one. If this fails (
|
779
|
-
# license) then the creation of the install fails.
|
780
|
-
# The API can also be used to update an installed app. If the
|
781
|
-
# used on an existing install then the app will be updated to the latest
|
829
|
+
# not already have an entitlement for the app, then an attempt is made to create
|
830
|
+
# one. If this fails (for example, because the app is not free and there is no
|
831
|
+
# available license), then the creation of the install fails.
|
832
|
+
# The API can also be used to update an installed app. If the update method is
|
833
|
+
# used on an existing install, then the app will be updated to the latest
|
782
834
|
# available version.
|
783
835
|
# Note that it is not possible to force the installation of a specific version
|
784
|
-
# of an app
|
836
|
+
# of an app: the version code is read-only.
|
785
837
|
# If a user installs an app themselves (as permitted by the enterprise), then
|
786
838
|
# again an install resource and possibly an entitlement resource are
|
787
839
|
# automatically created.
|
@@ -806,8 +858,8 @@ module Google
|
|
806
858
|
# @return [String]
|
807
859
|
attr_accessor :kind
|
808
860
|
|
809
|
-
# The ID of the product that the install is for,
|
810
|
-
# .
|
861
|
+
# The ID of the product that the install is for. For example, "app:com.google.
|
862
|
+
# android.gm".
|
811
863
|
# Corresponds to the JSON property `productId`
|
812
864
|
# @return [String]
|
813
865
|
attr_accessor :product_id
|
@@ -831,6 +883,50 @@ module Google
|
|
831
883
|
end
|
832
884
|
end
|
833
885
|
|
886
|
+
# An event generated when an app installation failed on a device
|
887
|
+
class InstallFailureEvent
|
888
|
+
include Google::Apis::Core::Hashable
|
889
|
+
|
890
|
+
# The Android ID of the device. This field will always be present.
|
891
|
+
# Corresponds to the JSON property `deviceId`
|
892
|
+
# @return [String]
|
893
|
+
attr_accessor :device_id
|
894
|
+
|
895
|
+
# Additional details on the failure if applicable.
|
896
|
+
# Corresponds to the JSON property `failureDetails`
|
897
|
+
# @return [String]
|
898
|
+
attr_accessor :failure_details
|
899
|
+
|
900
|
+
# The reason for the installation failure. This field will always be present.
|
901
|
+
# Corresponds to the JSON property `failureReason`
|
902
|
+
# @return [String]
|
903
|
+
attr_accessor :failure_reason
|
904
|
+
|
905
|
+
# The id of the product (e.g. "app:com.google.android.gm") for which the install
|
906
|
+
# failure event occured. This field will always be present.
|
907
|
+
# Corresponds to the JSON property `productId`
|
908
|
+
# @return [String]
|
909
|
+
attr_accessor :product_id
|
910
|
+
|
911
|
+
# The ID of the user. This field will always be present.
|
912
|
+
# Corresponds to the JSON property `userId`
|
913
|
+
# @return [String]
|
914
|
+
attr_accessor :user_id
|
915
|
+
|
916
|
+
def initialize(**args)
|
917
|
+
update!(**args)
|
918
|
+
end
|
919
|
+
|
920
|
+
# Update properties of this object
|
921
|
+
def update!(**args)
|
922
|
+
@device_id = args[:device_id] if args.key?(:device_id)
|
923
|
+
@failure_details = args[:failure_details] if args.key?(:failure_details)
|
924
|
+
@failure_reason = args[:failure_reason] if args.key?(:failure_reason)
|
925
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
926
|
+
@user_id = args[:user_id] if args.key?(:user_id)
|
927
|
+
end
|
928
|
+
end
|
929
|
+
|
834
930
|
# The install resources for the device.
|
835
931
|
class ListInstallsResponse
|
836
932
|
include Google::Apis::Core::Hashable
|
@@ -883,6 +979,355 @@ module Google
|
|
883
979
|
end
|
884
980
|
end
|
885
981
|
|
982
|
+
# A managed configuration resource contains the set of managed properties that
|
983
|
+
# have been configured for an Android app. The app's developer would have
|
984
|
+
# defined configurable properties in the managed configurations schema.
|
985
|
+
class ManagedConfiguration
|
986
|
+
include Google::Apis::Core::Hashable
|
987
|
+
|
988
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
989
|
+
# androidenterprise#managedConfiguration".
|
990
|
+
# Corresponds to the JSON property `kind`
|
991
|
+
# @return [String]
|
992
|
+
attr_accessor :kind
|
993
|
+
|
994
|
+
# The set of managed properties for this configuration.
|
995
|
+
# Corresponds to the JSON property `managedProperty`
|
996
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::ManagedProperty>]
|
997
|
+
attr_accessor :managed_property
|
998
|
+
|
999
|
+
# The ID of the product that the managed configuration is for, e.g. "app:com.
|
1000
|
+
# google.android.gm".
|
1001
|
+
# Corresponds to the JSON property `productId`
|
1002
|
+
# @return [String]
|
1003
|
+
attr_accessor :product_id
|
1004
|
+
|
1005
|
+
def initialize(**args)
|
1006
|
+
update!(**args)
|
1007
|
+
end
|
1008
|
+
|
1009
|
+
# Update properties of this object
|
1010
|
+
def update!(**args)
|
1011
|
+
@kind = args[:kind] if args.key?(:kind)
|
1012
|
+
@managed_property = args[:managed_property] if args.key?(:managed_property)
|
1013
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1014
|
+
end
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
# The managed configuration resources for the device.
|
1018
|
+
class ManagedConfigurationsForDeviceListResponse
|
1019
|
+
include Google::Apis::Core::Hashable
|
1020
|
+
|
1021
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
1022
|
+
# androidenterprise#managedConfigurationsForDeviceListResponse".
|
1023
|
+
# Corresponds to the JSON property `kind`
|
1024
|
+
# @return [String]
|
1025
|
+
attr_accessor :kind
|
1026
|
+
|
1027
|
+
# A managed configuration for an app on a specific device.
|
1028
|
+
# Corresponds to the JSON property `managedConfigurationForDevice`
|
1029
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::ManagedConfiguration>]
|
1030
|
+
attr_accessor :managed_configuration_for_device
|
1031
|
+
|
1032
|
+
def initialize(**args)
|
1033
|
+
update!(**args)
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
# Update properties of this object
|
1037
|
+
def update!(**args)
|
1038
|
+
@kind = args[:kind] if args.key?(:kind)
|
1039
|
+
@managed_configuration_for_device = args[:managed_configuration_for_device] if args.key?(:managed_configuration_for_device)
|
1040
|
+
end
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
# The managed configuration resources for the user.
|
1044
|
+
class ManagedConfigurationsForUserListResponse
|
1045
|
+
include Google::Apis::Core::Hashable
|
1046
|
+
|
1047
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
1048
|
+
# androidenterprise#managedConfigurationsForUserListResponse".
|
1049
|
+
# Corresponds to the JSON property `kind`
|
1050
|
+
# @return [String]
|
1051
|
+
attr_accessor :kind
|
1052
|
+
|
1053
|
+
# A managed configuration for an app for a specific user.
|
1054
|
+
# Corresponds to the JSON property `managedConfigurationForUser`
|
1055
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::ManagedConfiguration>]
|
1056
|
+
attr_accessor :managed_configuration_for_user
|
1057
|
+
|
1058
|
+
def initialize(**args)
|
1059
|
+
update!(**args)
|
1060
|
+
end
|
1061
|
+
|
1062
|
+
# Update properties of this object
|
1063
|
+
def update!(**args)
|
1064
|
+
@kind = args[:kind] if args.key?(:kind)
|
1065
|
+
@managed_configuration_for_user = args[:managed_configuration_for_user] if args.key?(:managed_configuration_for_user)
|
1066
|
+
end
|
1067
|
+
end
|
1068
|
+
|
1069
|
+
# A managed property of a managed configuration. The property must match one of
|
1070
|
+
# the properties in the app restrictions schema of the product. Exactly one of
|
1071
|
+
# the value fields must be populated, and it must match the property's type in
|
1072
|
+
# the app restrictions schema.
|
1073
|
+
class ManagedProperty
|
1074
|
+
include Google::Apis::Core::Hashable
|
1075
|
+
|
1076
|
+
# The unique key that identifies the property.
|
1077
|
+
# Corresponds to the JSON property `key`
|
1078
|
+
# @return [String]
|
1079
|
+
attr_accessor :key
|
1080
|
+
|
1081
|
+
# The boolean value - this will only be present if type of the property is bool.
|
1082
|
+
# Corresponds to the JSON property `valueBool`
|
1083
|
+
# @return [Boolean]
|
1084
|
+
attr_accessor :value_bool
|
1085
|
+
alias_method :value_bool?, :value_bool
|
1086
|
+
|
1087
|
+
# A bundle of managed properties.
|
1088
|
+
# Corresponds to the JSON property `valueBundle`
|
1089
|
+
# @return [Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle]
|
1090
|
+
attr_accessor :value_bundle
|
1091
|
+
|
1092
|
+
# The list of bundles of properties - this will only be present if type of the
|
1093
|
+
# property is bundle_array.
|
1094
|
+
# Corresponds to the JSON property `valueBundleArray`
|
1095
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle>]
|
1096
|
+
attr_accessor :value_bundle_array
|
1097
|
+
|
1098
|
+
# The integer value - this will only be present if type of the property is
|
1099
|
+
# integer.
|
1100
|
+
# Corresponds to the JSON property `valueInteger`
|
1101
|
+
# @return [Fixnum]
|
1102
|
+
attr_accessor :value_integer
|
1103
|
+
|
1104
|
+
# The string value - this will only be present if type of the property is string,
|
1105
|
+
# choice or hidden.
|
1106
|
+
# Corresponds to the JSON property `valueString`
|
1107
|
+
# @return [String]
|
1108
|
+
attr_accessor :value_string
|
1109
|
+
|
1110
|
+
# The list of string values - this will only be present if type of the property
|
1111
|
+
# is multiselect.
|
1112
|
+
# Corresponds to the JSON property `valueStringArray`
|
1113
|
+
# @return [Array<String>]
|
1114
|
+
attr_accessor :value_string_array
|
1115
|
+
|
1116
|
+
def initialize(**args)
|
1117
|
+
update!(**args)
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
# Update properties of this object
|
1121
|
+
def update!(**args)
|
1122
|
+
@key = args[:key] if args.key?(:key)
|
1123
|
+
@value_bool = args[:value_bool] if args.key?(:value_bool)
|
1124
|
+
@value_bundle = args[:value_bundle] if args.key?(:value_bundle)
|
1125
|
+
@value_bundle_array = args[:value_bundle_array] if args.key?(:value_bundle_array)
|
1126
|
+
@value_integer = args[:value_integer] if args.key?(:value_integer)
|
1127
|
+
@value_string = args[:value_string] if args.key?(:value_string)
|
1128
|
+
@value_string_array = args[:value_string_array] if args.key?(:value_string_array)
|
1129
|
+
end
|
1130
|
+
end
|
1131
|
+
|
1132
|
+
# A bundle of managed properties.
|
1133
|
+
class ManagedPropertyBundle
|
1134
|
+
include Google::Apis::Core::Hashable
|
1135
|
+
|
1136
|
+
# The list of managed properties.
|
1137
|
+
# Corresponds to the JSON property `managedProperty`
|
1138
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::ManagedProperty>]
|
1139
|
+
attr_accessor :managed_property
|
1140
|
+
|
1141
|
+
def initialize(**args)
|
1142
|
+
update!(**args)
|
1143
|
+
end
|
1144
|
+
|
1145
|
+
# Update properties of this object
|
1146
|
+
def update!(**args)
|
1147
|
+
@managed_property = args[:managed_property] if args.key?(:managed_property)
|
1148
|
+
end
|
1149
|
+
end
|
1150
|
+
|
1151
|
+
# An event generated when a new device is ready to be managed.
|
1152
|
+
class NewDeviceEvent
|
1153
|
+
include Google::Apis::Core::Hashable
|
1154
|
+
|
1155
|
+
# The Android ID of the device. This field will always be present.
|
1156
|
+
# Corresponds to the JSON property `deviceId`
|
1157
|
+
# @return [String]
|
1158
|
+
attr_accessor :device_id
|
1159
|
+
|
1160
|
+
# Identifies the extent to which the device is controlled by an Android EMM in
|
1161
|
+
# various deployment configurations.
|
1162
|
+
# Possible values include:
|
1163
|
+
# - "managedDevice", a device where the DPC is set as device owner,
|
1164
|
+
# - "managedProfile", a device where the DPC is set as profile owner.
|
1165
|
+
# Corresponds to the JSON property `managementType`
|
1166
|
+
# @return [String]
|
1167
|
+
attr_accessor :management_type
|
1168
|
+
|
1169
|
+
# The ID of the user. This field will always be present.
|
1170
|
+
# Corresponds to the JSON property `userId`
|
1171
|
+
# @return [String]
|
1172
|
+
attr_accessor :user_id
|
1173
|
+
|
1174
|
+
def initialize(**args)
|
1175
|
+
update!(**args)
|
1176
|
+
end
|
1177
|
+
|
1178
|
+
# Update properties of this object
|
1179
|
+
def update!(**args)
|
1180
|
+
@device_id = args[:device_id] if args.key?(:device_id)
|
1181
|
+
@management_type = args[:management_type] if args.key?(:management_type)
|
1182
|
+
@user_id = args[:user_id] if args.key?(:user_id)
|
1183
|
+
end
|
1184
|
+
end
|
1185
|
+
|
1186
|
+
# An event generated when new permissions are added to an app.
|
1187
|
+
class NewPermissionsEvent
|
1188
|
+
include Google::Apis::Core::Hashable
|
1189
|
+
|
1190
|
+
# The set of permissions that the enterprise admin has already approved for this
|
1191
|
+
# application. Use Permissions.Get on the EMM API to retrieve details about
|
1192
|
+
# these permissions.
|
1193
|
+
# Corresponds to the JSON property `approvedPermissions`
|
1194
|
+
# @return [Array<String>]
|
1195
|
+
attr_accessor :approved_permissions
|
1196
|
+
|
1197
|
+
# The id of the product (e.g. "app:com.google.android.gm") for which new
|
1198
|
+
# permissions were added. This field will always be present.
|
1199
|
+
# Corresponds to the JSON property `productId`
|
1200
|
+
# @return [String]
|
1201
|
+
attr_accessor :product_id
|
1202
|
+
|
1203
|
+
# The set of permissions that the app is currently requesting. Use Permissions.
|
1204
|
+
# Get on the EMM API to retrieve details about these permissions.
|
1205
|
+
# Corresponds to the JSON property `requestedPermissions`
|
1206
|
+
# @return [Array<String>]
|
1207
|
+
attr_accessor :requested_permissions
|
1208
|
+
|
1209
|
+
def initialize(**args)
|
1210
|
+
update!(**args)
|
1211
|
+
end
|
1212
|
+
|
1213
|
+
# Update properties of this object
|
1214
|
+
def update!(**args)
|
1215
|
+
@approved_permissions = args[:approved_permissions] if args.key?(:approved_permissions)
|
1216
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1217
|
+
@requested_permissions = args[:requested_permissions] if args.key?(:requested_permissions)
|
1218
|
+
end
|
1219
|
+
end
|
1220
|
+
|
1221
|
+
# A notification of one event relating to an enterprise.
|
1222
|
+
class Notification
|
1223
|
+
include Google::Apis::Core::Hashable
|
1224
|
+
|
1225
|
+
# An event generated when a new app version is uploaded to Google Play and its
|
1226
|
+
# app restrictions schema changed. To fetch the app restrictions schema for an
|
1227
|
+
# app, use Products.getAppRestrictionsSchema on the EMM API.
|
1228
|
+
# Corresponds to the JSON property `appRestrictionsSchemaChangeEvent`
|
1229
|
+
# @return [Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaChangeEvent]
|
1230
|
+
attr_accessor :app_restrictions_schema_change_event
|
1231
|
+
|
1232
|
+
# An event generated when a new version of an app is uploaded to Google Play.
|
1233
|
+
# Notifications are sent for new public versions only: alpha, beta, or canary
|
1234
|
+
# versions do not generate this event. To fetch up-to-date version history for
|
1235
|
+
# an app, use Products.Get on the EMM API.
|
1236
|
+
# Corresponds to the JSON property `appUpdateEvent`
|
1237
|
+
# @return [Google::Apis::AndroidenterpriseV1::AppUpdateEvent]
|
1238
|
+
attr_accessor :app_update_event
|
1239
|
+
|
1240
|
+
# The ID of the enterprise for which the notification is sent. This will always
|
1241
|
+
# be present.
|
1242
|
+
# Corresponds to the JSON property `enterpriseId`
|
1243
|
+
# @return [String]
|
1244
|
+
attr_accessor :enterprise_id
|
1245
|
+
|
1246
|
+
# An event generated when an app installation failed on a device
|
1247
|
+
# Corresponds to the JSON property `installFailureEvent`
|
1248
|
+
# @return [Google::Apis::AndroidenterpriseV1::InstallFailureEvent]
|
1249
|
+
attr_accessor :install_failure_event
|
1250
|
+
|
1251
|
+
# An event generated when a new device is ready to be managed.
|
1252
|
+
# Corresponds to the JSON property `newDeviceEvent`
|
1253
|
+
# @return [Google::Apis::AndroidenterpriseV1::NewDeviceEvent]
|
1254
|
+
attr_accessor :new_device_event
|
1255
|
+
|
1256
|
+
# An event generated when new permissions are added to an app.
|
1257
|
+
# Corresponds to the JSON property `newPermissionsEvent`
|
1258
|
+
# @return [Google::Apis::AndroidenterpriseV1::NewPermissionsEvent]
|
1259
|
+
attr_accessor :new_permissions_event
|
1260
|
+
|
1261
|
+
# An event generated when a product's approval status is changed.
|
1262
|
+
# Corresponds to the JSON property `productApprovalEvent`
|
1263
|
+
# @return [Google::Apis::AndroidenterpriseV1::ProductApprovalEvent]
|
1264
|
+
attr_accessor :product_approval_event
|
1265
|
+
|
1266
|
+
# An event generated whenever a product's availability changes.
|
1267
|
+
# Corresponds to the JSON property `productAvailabilityChangeEvent`
|
1268
|
+
# @return [Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent]
|
1269
|
+
attr_accessor :product_availability_change_event
|
1270
|
+
|
1271
|
+
# The time when the notification was published in milliseconds since 1970-01-
|
1272
|
+
# 01T00:00:00Z. This will always be present.
|
1273
|
+
# Corresponds to the JSON property `timestampMillis`
|
1274
|
+
# @return [String]
|
1275
|
+
attr_accessor :timestamp_millis
|
1276
|
+
|
1277
|
+
def initialize(**args)
|
1278
|
+
update!(**args)
|
1279
|
+
end
|
1280
|
+
|
1281
|
+
# Update properties of this object
|
1282
|
+
def update!(**args)
|
1283
|
+
@app_restrictions_schema_change_event = args[:app_restrictions_schema_change_event] if args.key?(:app_restrictions_schema_change_event)
|
1284
|
+
@app_update_event = args[:app_update_event] if args.key?(:app_update_event)
|
1285
|
+
@enterprise_id = args[:enterprise_id] if args.key?(:enterprise_id)
|
1286
|
+
@install_failure_event = args[:install_failure_event] if args.key?(:install_failure_event)
|
1287
|
+
@new_device_event = args[:new_device_event] if args.key?(:new_device_event)
|
1288
|
+
@new_permissions_event = args[:new_permissions_event] if args.key?(:new_permissions_event)
|
1289
|
+
@product_approval_event = args[:product_approval_event] if args.key?(:product_approval_event)
|
1290
|
+
@product_availability_change_event = args[:product_availability_change_event] if args.key?(:product_availability_change_event)
|
1291
|
+
@timestamp_millis = args[:timestamp_millis] if args.key?(:timestamp_millis)
|
1292
|
+
end
|
1293
|
+
end
|
1294
|
+
|
1295
|
+
# A resource returned by the PullNotificationSet API, which contains a
|
1296
|
+
# collection of notifications for enterprises associated with the service
|
1297
|
+
# account authenticated for the request.
|
1298
|
+
class NotificationSet
|
1299
|
+
include Google::Apis::Core::Hashable
|
1300
|
+
|
1301
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
1302
|
+
# androidenterprise#notificationSet".
|
1303
|
+
# Corresponds to the JSON property `kind`
|
1304
|
+
# @return [String]
|
1305
|
+
attr_accessor :kind
|
1306
|
+
|
1307
|
+
# The notifications received, or empty if no notifications are present.
|
1308
|
+
# Corresponds to the JSON property `notification`
|
1309
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::Notification>]
|
1310
|
+
attr_accessor :notification
|
1311
|
+
|
1312
|
+
# The notification set ID, required to mark the notification as received with
|
1313
|
+
# the Enterprises.AcknowledgeNotification API. This will be omitted if no
|
1314
|
+
# notifications are present.
|
1315
|
+
# Corresponds to the JSON property `notificationSetId`
|
1316
|
+
# @return [String]
|
1317
|
+
attr_accessor :notification_set_id
|
1318
|
+
|
1319
|
+
def initialize(**args)
|
1320
|
+
update!(**args)
|
1321
|
+
end
|
1322
|
+
|
1323
|
+
# Update properties of this object
|
1324
|
+
def update!(**args)
|
1325
|
+
@kind = args[:kind] if args.key?(:kind)
|
1326
|
+
@notification = args[:notification] if args.key?(:notification)
|
1327
|
+
@notification_set_id = args[:notification_set_id] if args.key?(:notification_set_id)
|
1328
|
+
end
|
1329
|
+
end
|
1330
|
+
|
886
1331
|
#
|
887
1332
|
class PageInfo
|
888
1333
|
include Google::Apis::Core::Hashable
|
@@ -914,17 +1359,18 @@ module Google
|
|
914
1359
|
end
|
915
1360
|
end
|
916
1361
|
|
917
|
-
# A
|
918
|
-
# which requires explicit consent. An enterprise admin must consent
|
919
|
-
# permissions on behalf of their users before an entitlement for the
|
920
|
-
# created.
|
1362
|
+
# A Permissions resource represents some extra capability, to be granted to an
|
1363
|
+
# Android app, which requires explicit consent. An enterprise admin must consent
|
1364
|
+
# to these permissions on behalf of their users before an entitlement for the
|
1365
|
+
# app can be created.
|
921
1366
|
# The permissions collection is read-only. The information provided for each
|
922
|
-
# permission (localized name and description) is intended to be used in the
|
1367
|
+
# permission (localized name and description) is intended to be used in the MDM
|
923
1368
|
# user interface when obtaining consent from the enterprise.
|
924
1369
|
class Permission
|
925
1370
|
include Google::Apis::Core::Hashable
|
926
1371
|
|
927
|
-
# A longer description of the
|
1372
|
+
# A longer description of the Permissions resource, giving more details of what
|
1373
|
+
# it affects.
|
928
1374
|
# Corresponds to the JSON property `description`
|
929
1375
|
# @return [String]
|
930
1376
|
attr_accessor :description
|
@@ -958,10 +1404,10 @@ module Google
|
|
958
1404
|
end
|
959
1405
|
end
|
960
1406
|
|
961
|
-
# A
|
962
|
-
# least some users in the enterprise. (Some apps are restricted
|
963
|
-
# enterprise, and no information about them is made available
|
964
|
-
# enterprise.)
|
1407
|
+
# A Products resource represents an app in the Google Play store that is
|
1408
|
+
# available to at least some users in the enterprise. (Some apps are restricted
|
1409
|
+
# to a single enterprise, and no information about them is made available
|
1410
|
+
# outside that enterprise.)
|
965
1411
|
# The information provided for each product (localized name, icon, link to the
|
966
1412
|
# full Google Play details page) is intended to allow a basic representation of
|
967
1413
|
# the product within an EMM user interface.
|
@@ -974,7 +1420,7 @@ module Google
|
|
974
1420
|
# @return [Array<Google::Apis::AndroidenterpriseV1::AppVersion>]
|
975
1421
|
attr_accessor :app_version
|
976
1422
|
|
977
|
-
# The name of the author of the product (
|
1423
|
+
# The name of the author of the product (for example, the app developer).
|
978
1424
|
# Corresponds to the JSON property `authorName`
|
979
1425
|
# @return [String]
|
980
1426
|
attr_accessor :author_name
|
@@ -985,7 +1431,7 @@ module Google
|
|
985
1431
|
attr_accessor :details_url
|
986
1432
|
|
987
1433
|
# How and to whom the package is made available. The value publicGoogleHosted
|
988
|
-
# means that the package is available through the Play
|
1434
|
+
# means that the package is available through the Play store and not restricted
|
989
1435
|
# to a specific enterprise. The value privateGoogleHosted means that the package
|
990
1436
|
# is a private app (restricted to an enterprise) but hosted by Google. The value
|
991
1437
|
# privateSelfHosted means that the package is a private app (restricted to an
|
@@ -1012,13 +1458,15 @@ module Google
|
|
1012
1458
|
# @return [String]
|
1013
1459
|
attr_accessor :product_id
|
1014
1460
|
|
1015
|
-
# Whether this product is free, free with in-app purchases, or paid.
|
1461
|
+
# Whether this product is free, free with in-app purchases, or paid. If the
|
1462
|
+
# pricing is unknown, this means the product is not generally available anymore (
|
1463
|
+
# even though it might still be available to people who own it).
|
1016
1464
|
# Corresponds to the JSON property `productPricing`
|
1017
1465
|
# @return [String]
|
1018
1466
|
attr_accessor :product_pricing
|
1019
1467
|
|
1020
|
-
# Whether this app can only be installed on devices using the Android
|
1021
|
-
#
|
1468
|
+
# Whether this app can only be installed on devices using the Android container
|
1469
|
+
# app.
|
1022
1470
|
# Corresponds to the JSON property `requiresContainerApp`
|
1023
1471
|
# @return [Boolean]
|
1024
1472
|
attr_accessor :requires_container_app
|
@@ -1035,8 +1483,8 @@ module Google
|
|
1035
1483
|
# @return [String]
|
1036
1484
|
attr_accessor :title
|
1037
1485
|
|
1038
|
-
# A link to the Google Play
|
1039
|
-
# Enterprise
|
1486
|
+
# A link to the managed Google Play details page for the product, for use by an
|
1487
|
+
# Enterprise admin.
|
1040
1488
|
# Corresponds to the JSON property `workDetailsUrl`
|
1041
1489
|
# @return [String]
|
1042
1490
|
attr_accessor :work_details_url
|
@@ -1062,6 +1510,59 @@ module Google
|
|
1062
1510
|
end
|
1063
1511
|
end
|
1064
1512
|
|
1513
|
+
# An event generated when a product's approval status is changed.
|
1514
|
+
class ProductApprovalEvent
|
1515
|
+
include Google::Apis::Core::Hashable
|
1516
|
+
|
1517
|
+
# Whether the product was approved or unapproved. This field will always be
|
1518
|
+
# present.
|
1519
|
+
# Corresponds to the JSON property `approved`
|
1520
|
+
# @return [String]
|
1521
|
+
attr_accessor :approved
|
1522
|
+
|
1523
|
+
# The id of the product (e.g. "app:com.google.android.gm") for which the
|
1524
|
+
# approval status has changed. This field will always be present.
|
1525
|
+
# Corresponds to the JSON property `productId`
|
1526
|
+
# @return [String]
|
1527
|
+
attr_accessor :product_id
|
1528
|
+
|
1529
|
+
def initialize(**args)
|
1530
|
+
update!(**args)
|
1531
|
+
end
|
1532
|
+
|
1533
|
+
# Update properties of this object
|
1534
|
+
def update!(**args)
|
1535
|
+
@approved = args[:approved] if args.key?(:approved)
|
1536
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1537
|
+
end
|
1538
|
+
end
|
1539
|
+
|
1540
|
+
# An event generated whenever a product's availability changes.
|
1541
|
+
class ProductAvailabilityChangeEvent
|
1542
|
+
include Google::Apis::Core::Hashable
|
1543
|
+
|
1544
|
+
# The new state of the product. This field will always be present.
|
1545
|
+
# Corresponds to the JSON property `availabilityStatus`
|
1546
|
+
# @return [String]
|
1547
|
+
attr_accessor :availability_status
|
1548
|
+
|
1549
|
+
# The id of the product (e.g. "app:com.google.android.gm") for which the product
|
1550
|
+
# availability changed. This field will always be present.
|
1551
|
+
# Corresponds to the JSON property `productId`
|
1552
|
+
# @return [String]
|
1553
|
+
attr_accessor :product_id
|
1554
|
+
|
1555
|
+
def initialize(**args)
|
1556
|
+
update!(**args)
|
1557
|
+
end
|
1558
|
+
|
1559
|
+
# Update properties of this object
|
1560
|
+
def update!(**args)
|
1561
|
+
@availability_status = args[:availability_status] if args.key?(:availability_status)
|
1562
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1563
|
+
end
|
1564
|
+
end
|
1565
|
+
|
1065
1566
|
# A product permissions resource represents the set of permissions required by a
|
1066
1567
|
# specific app and whether or not they have been accepted by an enterprise admin.
|
1067
1568
|
# The API can be used to read the set of permissions, and also to update the set
|
@@ -1139,6 +1640,17 @@ module Google
|
|
1139
1640
|
# @return [Array<String>]
|
1140
1641
|
attr_accessor :product_id
|
1141
1642
|
|
1643
|
+
# The interpretation of this product set. "unknown" should never be sent and is
|
1644
|
+
# ignored if received. "whitelist" means that this product set constitutes a
|
1645
|
+
# whitelist. "includeAll" means that all products are accessible, including
|
1646
|
+
# products that are approved, products with revoked approval, and products that
|
1647
|
+
# have never been approved. If the value is "includeAll", the value of the
|
1648
|
+
# productId field is therefore ignored. If a value is not supplied, it is
|
1649
|
+
# interpreted to be "whitelist" for backwards compatibility.
|
1650
|
+
# Corresponds to the JSON property `productSetBehavior`
|
1651
|
+
# @return [String]
|
1652
|
+
attr_accessor :product_set_behavior
|
1653
|
+
|
1142
1654
|
def initialize(**args)
|
1143
1655
|
update!(**args)
|
1144
1656
|
end
|
@@ -1147,6 +1659,7 @@ module Google
|
|
1147
1659
|
def update!(**args)
|
1148
1660
|
@kind = args[:kind] if args.key?(:kind)
|
1149
1661
|
@product_id = args[:product_id] if args.key?(:product_id)
|
1662
|
+
@product_set_behavior = args[:product_set_behavior] if args.key?(:product_set_behavior)
|
1150
1663
|
end
|
1151
1664
|
end
|
1152
1665
|
|
@@ -1210,7 +1723,7 @@ module Google
|
|
1210
1723
|
# @return [Google::Apis::AndroidenterpriseV1::PageInfo]
|
1211
1724
|
attr_accessor :page_info
|
1212
1725
|
|
1213
|
-
# Information about a product (e.g. an app) in the Google Play
|
1726
|
+
# Information about a product (e.g. an app) in the Google Play store, for
|
1214
1727
|
# display to an enterprise admin.
|
1215
1728
|
# Corresponds to the JSON property `product`
|
1216
1729
|
# @return [Array<Google::Apis::AndroidenterpriseV1::Product>]
|
@@ -1234,7 +1747,143 @@ module Google
|
|
1234
1747
|
end
|
1235
1748
|
end
|
1236
1749
|
|
1237
|
-
#
|
1750
|
+
# A service account identity, including the name and credentials that can be
|
1751
|
+
# used to authenticate as the service account.
|
1752
|
+
class ServiceAccount
|
1753
|
+
include Google::Apis::Core::Hashable
|
1754
|
+
|
1755
|
+
# Credentials that can be used to authenticate as a service account.
|
1756
|
+
# Corresponds to the JSON property `key`
|
1757
|
+
# @return [Google::Apis::AndroidenterpriseV1::ServiceAccountKey]
|
1758
|
+
attr_accessor :key
|
1759
|
+
|
1760
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
1761
|
+
# androidenterprise#serviceAccount".
|
1762
|
+
# Corresponds to the JSON property `kind`
|
1763
|
+
# @return [String]
|
1764
|
+
attr_accessor :kind
|
1765
|
+
|
1766
|
+
# The account name of the service account, in the form of an email address.
|
1767
|
+
# Assigned by the server.
|
1768
|
+
# Corresponds to the JSON property `name`
|
1769
|
+
# @return [String]
|
1770
|
+
attr_accessor :name
|
1771
|
+
|
1772
|
+
def initialize(**args)
|
1773
|
+
update!(**args)
|
1774
|
+
end
|
1775
|
+
|
1776
|
+
# Update properties of this object
|
1777
|
+
def update!(**args)
|
1778
|
+
@key = args[:key] if args.key?(:key)
|
1779
|
+
@kind = args[:kind] if args.key?(:kind)
|
1780
|
+
@name = args[:name] if args.key?(:name)
|
1781
|
+
end
|
1782
|
+
end
|
1783
|
+
|
1784
|
+
# Credentials that can be used to authenticate as a service account.
|
1785
|
+
class ServiceAccountKey
|
1786
|
+
include Google::Apis::Core::Hashable
|
1787
|
+
|
1788
|
+
# The body of the private key credentials file, in string format. This is only
|
1789
|
+
# populated when the ServiceAccountKey is created, and is not stored by Google.
|
1790
|
+
# Corresponds to the JSON property `data`
|
1791
|
+
# @return [String]
|
1792
|
+
attr_accessor :data
|
1793
|
+
|
1794
|
+
# An opaque, unique identifier for this ServiceAccountKey. Assigned by the
|
1795
|
+
# server.
|
1796
|
+
# Corresponds to the JSON property `id`
|
1797
|
+
# @return [String]
|
1798
|
+
attr_accessor :id
|
1799
|
+
|
1800
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
1801
|
+
# androidenterprise#serviceAccountKey".
|
1802
|
+
# Corresponds to the JSON property `kind`
|
1803
|
+
# @return [String]
|
1804
|
+
attr_accessor :kind
|
1805
|
+
|
1806
|
+
# Public key data for the credentials file. This is an X.509 cert. If you are
|
1807
|
+
# using the googleCredentials key type, this is identical to the cert that can
|
1808
|
+
# be retrieved by using the X.509 cert url inside of the credentials file.
|
1809
|
+
# Corresponds to the JSON property `publicData`
|
1810
|
+
# @return [String]
|
1811
|
+
attr_accessor :public_data
|
1812
|
+
|
1813
|
+
# The file format of the generated key data.
|
1814
|
+
# Corresponds to the JSON property `type`
|
1815
|
+
# @return [String]
|
1816
|
+
attr_accessor :type
|
1817
|
+
|
1818
|
+
def initialize(**args)
|
1819
|
+
update!(**args)
|
1820
|
+
end
|
1821
|
+
|
1822
|
+
# Update properties of this object
|
1823
|
+
def update!(**args)
|
1824
|
+
@data = args[:data] if args.key?(:data)
|
1825
|
+
@id = args[:id] if args.key?(:id)
|
1826
|
+
@kind = args[:kind] if args.key?(:kind)
|
1827
|
+
@public_data = args[:public_data] if args.key?(:public_data)
|
1828
|
+
@type = args[:type] if args.key?(:type)
|
1829
|
+
end
|
1830
|
+
end
|
1831
|
+
|
1832
|
+
#
|
1833
|
+
class ServiceAccountKeysListResponse
|
1834
|
+
include Google::Apis::Core::Hashable
|
1835
|
+
|
1836
|
+
# The service account credentials.
|
1837
|
+
# Corresponds to the JSON property `serviceAccountKey`
|
1838
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::ServiceAccountKey>]
|
1839
|
+
attr_accessor :service_account_key
|
1840
|
+
|
1841
|
+
def initialize(**args)
|
1842
|
+
update!(**args)
|
1843
|
+
end
|
1844
|
+
|
1845
|
+
# Update properties of this object
|
1846
|
+
def update!(**args)
|
1847
|
+
@service_account_key = args[:service_account_key] if args.key?(:service_account_key)
|
1848
|
+
end
|
1849
|
+
end
|
1850
|
+
|
1851
|
+
# A resource returned by the GenerateSignupUrl API, which contains the Signup
|
1852
|
+
# URL and Completion Token.
|
1853
|
+
class SignupInfo
|
1854
|
+
include Google::Apis::Core::Hashable
|
1855
|
+
|
1856
|
+
# An opaque token that will be required, along with the Enterprise Token, for
|
1857
|
+
# obtaining the enterprise resource from CompleteSignup.
|
1858
|
+
# Corresponds to the JSON property `completionToken`
|
1859
|
+
# @return [String]
|
1860
|
+
attr_accessor :completion_token
|
1861
|
+
|
1862
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
1863
|
+
# androidenterprise#signupInfo".
|
1864
|
+
# Corresponds to the JSON property `kind`
|
1865
|
+
# @return [String]
|
1866
|
+
attr_accessor :kind
|
1867
|
+
|
1868
|
+
# A URL under which the Admin can sign up for an enterprise. The page pointed to
|
1869
|
+
# cannot be rendered in an iframe.
|
1870
|
+
# Corresponds to the JSON property `url`
|
1871
|
+
# @return [String]
|
1872
|
+
attr_accessor :url
|
1873
|
+
|
1874
|
+
def initialize(**args)
|
1875
|
+
update!(**args)
|
1876
|
+
end
|
1877
|
+
|
1878
|
+
# Update properties of this object
|
1879
|
+
def update!(**args)
|
1880
|
+
@completion_token = args[:completion_token] if args.key?(:completion_token)
|
1881
|
+
@kind = args[:kind] if args.key?(:kind)
|
1882
|
+
@url = args[:url] if args.key?(:url)
|
1883
|
+
end
|
1884
|
+
end
|
1885
|
+
|
1886
|
+
# Definition of a managed Google Play store cluster, a list of products
|
1238
1887
|
# displayed as part of a store page.
|
1239
1888
|
class StoreCluster
|
1240
1889
|
include Google::Apis::Core::Hashable
|
@@ -1287,17 +1936,15 @@ module Google
|
|
1287
1936
|
end
|
1288
1937
|
end
|
1289
1938
|
|
1290
|
-
# General setting for the Google Play
|
1939
|
+
# General setting for the managed Google Play store layout, currently only
|
1291
1940
|
# specifying the page to display the first time the store is opened.
|
1292
1941
|
class StoreLayout
|
1293
1942
|
include Google::Apis::Core::Hashable
|
1294
1943
|
|
1295
|
-
# The ID of the store page to be used as the homepage. The homepage
|
1296
|
-
#
|
1297
|
-
#
|
1298
|
-
#
|
1299
|
-
# If there exists at least one page, this field must be set to the ID of a valid
|
1300
|
-
# page.
|
1944
|
+
# The ID of the store page to be used as the homepage. The homepage is the first
|
1945
|
+
# page shown in the managed Google Play Store.
|
1946
|
+
# Not specifying a homepage is equivalent to setting the store layout type to "
|
1947
|
+
# basic".
|
1301
1948
|
# Corresponds to the JSON property `homepageId`
|
1302
1949
|
# @return [String]
|
1303
1950
|
attr_accessor :homepage_id
|
@@ -1308,6 +1955,14 @@ module Google
|
|
1308
1955
|
# @return [String]
|
1309
1956
|
attr_accessor :kind
|
1310
1957
|
|
1958
|
+
# The store layout type. By default, this value is set to "basic" if the
|
1959
|
+
# homepageId field is not set, and to "custom" otherwise. If set to "basic", the
|
1960
|
+
# layout will consist of all approved apps that have been whitelisted for the
|
1961
|
+
# user.
|
1962
|
+
# Corresponds to the JSON property `storeLayoutType`
|
1963
|
+
# @return [String]
|
1964
|
+
attr_accessor :store_layout_type
|
1965
|
+
|
1311
1966
|
def initialize(**args)
|
1312
1967
|
update!(**args)
|
1313
1968
|
end
|
@@ -1316,6 +1971,7 @@ module Google
|
|
1316
1971
|
def update!(**args)
|
1317
1972
|
@homepage_id = args[:homepage_id] if args.key?(:homepage_id)
|
1318
1973
|
@kind = args[:kind] if args.key?(:kind)
|
1974
|
+
@store_layout_type = args[:store_layout_type] if args.key?(:store_layout_type)
|
1319
1975
|
end
|
1320
1976
|
end
|
1321
1977
|
|
@@ -1371,7 +2027,7 @@ module Google
|
|
1371
2027
|
end
|
1372
2028
|
end
|
1373
2029
|
|
1374
|
-
# Definition of a Google Play
|
2030
|
+
# Definition of a managed Google Play store page, made of a localized name and
|
1375
2031
|
# links to other pages. A page also contains clusters defined as a subcollection.
|
1376
2032
|
class StorePage
|
1377
2033
|
include Google::Apis::Core::Hashable
|
@@ -1441,17 +2097,42 @@ module Google
|
|
1441
2097
|
end
|
1442
2098
|
end
|
1443
2099
|
|
1444
|
-
# A
|
1445
|
-
#
|
1446
|
-
#
|
1447
|
-
#
|
1448
|
-
#
|
1449
|
-
#
|
1450
|
-
#
|
1451
|
-
#
|
2100
|
+
# A Users resource represents an account associated with an enterprise. The
|
2101
|
+
# account may be specific to a device or to an individual user (who can then use
|
2102
|
+
# the account across multiple devices). The account may provide access to
|
2103
|
+
# managed Google Play only, or to other Google services, depending on the
|
2104
|
+
# identity model:
|
2105
|
+
# - The Google managed domain identity model requires synchronization to Google
|
2106
|
+
# account sources (via primaryEmail).
|
2107
|
+
# - The managed Google Play Accounts identity model provides a dynamic means for
|
2108
|
+
# enterprises to create user or device accounts as needed. These accounts
|
2109
|
+
# provide access to managed Google Play.
|
1452
2110
|
class User
|
1453
2111
|
include Google::Apis::Core::Hashable
|
1454
2112
|
|
2113
|
+
# A unique identifier you create for this user, such as "user342" or "asset#
|
2114
|
+
# 44418". Do not use personally identifiable information (PII) for this property.
|
2115
|
+
# Must always be set for EMM-managed users. Not set for Google-managed users.
|
2116
|
+
# Corresponds to the JSON property `accountIdentifier`
|
2117
|
+
# @return [String]
|
2118
|
+
attr_accessor :account_identifier
|
2119
|
+
|
2120
|
+
# The type of account that this user represents. A userAccount can be installed
|
2121
|
+
# on multiple devices, but a deviceAccount is specific to a single device. An
|
2122
|
+
# EMM-managed user (emmManaged) can be either type (userAccount, deviceAccount),
|
2123
|
+
# but a Google-managed user (googleManaged) is always a userAccount.
|
2124
|
+
# Corresponds to the JSON property `accountType`
|
2125
|
+
# @return [String]
|
2126
|
+
attr_accessor :account_type
|
2127
|
+
|
2128
|
+
# The name that will appear in user interfaces. Setting this property is
|
2129
|
+
# optional when creating EMM-managed users. If you do set this property, use
|
2130
|
+
# something generic about the organization (such as "Example, Inc.") or your
|
2131
|
+
# name (as EMM). Not used for Google-managed user accounts.
|
2132
|
+
# Corresponds to the JSON property `displayName`
|
2133
|
+
# @return [String]
|
2134
|
+
attr_accessor :display_name
|
2135
|
+
|
1455
2136
|
# The unique ID for the user.
|
1456
2137
|
# Corresponds to the JSON property `id`
|
1457
2138
|
# @return [String]
|
@@ -1463,7 +2144,15 @@ module Google
|
|
1463
2144
|
# @return [String]
|
1464
2145
|
attr_accessor :kind
|
1465
2146
|
|
1466
|
-
# The user
|
2147
|
+
# The entity that manages the user. With googleManaged users, the source of
|
2148
|
+
# truth is Google so EMMs have to make sure a Google Account exists for the user.
|
2149
|
+
# With emmManaged users, the EMM is in charge.
|
2150
|
+
# Corresponds to the JSON property `managementType`
|
2151
|
+
# @return [String]
|
2152
|
+
attr_accessor :management_type
|
2153
|
+
|
2154
|
+
# The user's primary email address, for example, "jsmith@example.com". Will
|
2155
|
+
# always be set for Google managed users and not set for EMM managed users.
|
1467
2156
|
# Corresponds to the JSON property `primaryEmail`
|
1468
2157
|
# @return [String]
|
1469
2158
|
attr_accessor :primary_email
|
@@ -1474,16 +2163,20 @@ module Google
|
|
1474
2163
|
|
1475
2164
|
# Update properties of this object
|
1476
2165
|
def update!(**args)
|
2166
|
+
@account_identifier = args[:account_identifier] if args.key?(:account_identifier)
|
2167
|
+
@account_type = args[:account_type] if args.key?(:account_type)
|
2168
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1477
2169
|
@id = args[:id] if args.key?(:id)
|
1478
2170
|
@kind = args[:kind] if args.key?(:kind)
|
2171
|
+
@management_type = args[:management_type] if args.key?(:management_type)
|
1479
2172
|
@primary_email = args[:primary_email] if args.key?(:primary_email)
|
1480
2173
|
end
|
1481
2174
|
end
|
1482
2175
|
|
1483
2176
|
# A UserToken is used by a user when setting up a managed device or profile with
|
1484
|
-
# their
|
1485
|
-
# token (activation code) the appropriate EMM app can be
|
1486
|
-
# downloaded.
|
2177
|
+
# their managed Google Play account on a device. When the user enters their
|
2178
|
+
# email address and token (activation code) the appropriate EMM app can be
|
2179
|
+
# automatically downloaded.
|
1487
2180
|
class UserToken
|
1488
2181
|
include Google::Apis::Core::Hashable
|
1489
2182
|
|