google-api-client 0.9.8 → 0.9.20
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/CHANGELOG.md +37 -0
- data/Gemfile +9 -1
- data/README.md +10 -2
- data/api_names.yaml +63 -110
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +260 -13
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +81 -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 +86 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +24 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/admin_reports_v1/service.rb +2 -2
- 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 +217 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +813 -49
- data/generated/google/apis/androidenterprise_v1/representations.rb +336 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +1234 -145
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +47 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +27 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +55 -0
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +516 -313
- data/generated/google/apis/appengine_v1beta5/representations.rb +115 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +329 -33
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- 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 +277 -20
- data/generated/google/apis/bigquery_v2/representations.rb +86 -0
- data/generated/google/apis/bigquery_v2/service.rb +8 -2
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +79 -1
- data/generated/google/apis/books_v1/representations.rb +34 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- 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 +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +183 -37
- data/generated/google/apis/classroom_v1/representations.rb +74 -9
- data/generated/google/apis/classroom_v1/service.rb +403 -38
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +381 -17
- data/generated/google/apis/cloudbuild_v1/representations.rb +137 -2
- data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
- data/generated/google/apis/clouddebugger_v2.rb +3 -6
- data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +502 -111
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +162 -24
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +274 -30
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +121 -9
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +46 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +71 -58
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +2299 -434
- data/generated/google/apis/compute_beta/representations.rb +752 -33
- data/generated/google/apis/compute_beta/service.rb +6067 -3153
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1681 -207
- data/generated/google/apis/compute_v1/representations.rb +552 -0
- data/generated/google/apis/compute_v1/service.rb +2797 -1171
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +757 -1
- data/generated/google/apis/content_v2/representations.rb +337 -0
- data/generated/google/apis/content_v2/service.rb +244 -0
- data/generated/google/apis/dataflow_v1b3.rb +38 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4053 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +1736 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +875 -0
- data/generated/google/apis/dataproc_v1.rb +2 -2
- data/generated/google/apis/dataproc_v1/classes.rb +213 -68
- data/generated/google/apis/dataproc_v1/representations.rb +38 -0
- data/generated/google/apis/dataproc_v1/service.rb +78 -48
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1284 -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 +384 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +217 -55
- 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/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- 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/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +27 -3
- data/generated/google/apis/drive_v2/representations.rb +4 -0
- data/generated/google/apis/drive_v2/service.rb +16 -3
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +50 -16
- data/generated/google/apis/drive_v3/representations.rb +4 -0
- data/generated/google/apis/drive_v3/service.rb +12 -2
- data/generated/google/apis/fitness_v1.rb +8 -2
- data/generated/google/apis/fitness_v1/classes.rb +64 -6
- 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 +2 -4
- data/generated/google/apis/genomics_v1/classes.rb +143 -34
- data/generated/google/apis/genomics_v1/representations.rb +48 -11
- data/generated/google/apis/genomics_v1/service.rb +35 -37
- data/generated/google/apis/gmail_v1.rb +10 -1
- data/generated/google/apis/gmail_v1/classes.rb +542 -4
- data/generated/google/apis/gmail_v1/representations.rb +213 -0
- data/generated/google/apis/gmail_v1/service.rb +898 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- 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 +181 -206
- data/generated/google/apis/iam_v1/representations.rb +36 -45
- data/generated/google/apis/iam_v1/service.rb +101 -67
- data/generated/google/apis/identitytoolkit_v3.rb +4 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +171 -1
- data/generated/google/apis/identitytoolkit_v3/representations.rb +26 -0
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +599 -0
- data/generated/google/apis/language_v1beta1/representations.rb +289 -0
- data/generated/google/apis/language_v1beta1/service.rb +152 -0
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +760 -731
- data/generated/google/apis/logging_v2beta1/representations.rb +136 -147
- data/generated/google/apis/logging_v2beta1/service.rb +290 -209
- 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 +1337 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +711 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +10 -9
- data/generated/google/apis/pubsub_v1/service.rb +128 -27
- 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/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -0
- data/generated/google/apis/script_v1/representations.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +910 -89
- data/generated/google/apis/sheets_v4/representations.rb +194 -10
- data/generated/google/apis/sheets_v4/service.rb +216 -49
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +3926 -0
- data/generated/google/apis/slides_v1/representations.rb +1722 -0
- data/generated/google/apis/slides_v1/service.rb +202 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +511 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
- data/generated/google/apis/speech_v1beta1/service.rb +271 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -8
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +43 -18
- data/generated/google/apis/storage_v1/representations.rb +4 -1
- data/generated/google/apis/storage_v1/service.rb +5 -2
- 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 +12 -11
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +183 -21
- data/generated/google/apis/youtube_v3/representations.rb +85 -4
- data/generated/google/apis/youtube_v3/service.rb +41 -5
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/google-api-client.gemspec +2 -1
- data/lib/google/apis/core/api_command.rb +4 -0
- data/lib/google/apis/core/base_service.rb +10 -4
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +2 -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/sheets.rb +61 -0
- data/sync.rb +71 -0
- metadata +55 -13
@@ -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 = '20161102'
|
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 administrator who can manage the enterprise in
|
26
|
+
# the Google Play for Work Store.
|
27
|
+
class Administrator
|
28
|
+
include Google::Apis::Core::Hashable
|
29
|
+
|
30
|
+
# The administrator'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 administrator to access an iframe.
|
46
|
+
class AdministratorWebToken
|
47
|
+
include Google::Apis::Core::Hashable
|
48
|
+
|
49
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
50
|
+
# androidenterprise#administratorWebToken".
|
51
|
+
# Corresponds to the JSON property `kind`
|
52
|
+
# @return [String]
|
53
|
+
attr_accessor :kind
|
54
|
+
|
55
|
+
# An opaque token to be passed to the Play front-end to generate an iframe.
|
56
|
+
# Corresponds to the JSON property `token`
|
57
|
+
# @return [String]
|
58
|
+
attr_accessor :token
|
59
|
+
|
60
|
+
def initialize(**args)
|
61
|
+
update!(**args)
|
62
|
+
end
|
63
|
+
|
64
|
+
# Update properties of this object
|
65
|
+
def update!(**args)
|
66
|
+
@kind = args[:kind] if args.key?(:kind)
|
67
|
+
@token = args[:token] if args.key?(:token)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# Specification for a token used to generate iframes. The token specifies what
|
72
|
+
# data the admin is allowed to modify and the URI the iframe is allowed to
|
73
|
+
# communiate with.
|
74
|
+
class AdministratorWebTokenSpec
|
75
|
+
include Google::Apis::Core::Hashable
|
76
|
+
|
77
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
78
|
+
# androidenterprise#administratorWebTokenSpec".
|
79
|
+
# Corresponds to the JSON property `kind`
|
80
|
+
# @return [String]
|
81
|
+
attr_accessor :kind
|
82
|
+
|
83
|
+
# The URI of the parent frame hosting the iframe. To prevent XSS, the iframe may
|
84
|
+
# not be hosted at other URIs. This URI must be https.
|
85
|
+
# Corresponds to the JSON property `parent`
|
86
|
+
# @return [String]
|
87
|
+
attr_accessor :parent
|
88
|
+
|
89
|
+
# The list of permissions the admin is granted within the iframe. The admin will
|
90
|
+
# only be allowed to view an iframe if they have all of the permissions
|
91
|
+
# associated with it. 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
|
@@ -206,6 +345,35 @@ module Google
|
|
206
345
|
end
|
207
346
|
end
|
208
347
|
|
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
|
351
|
+
include Google::Apis::Core::Hashable
|
352
|
+
|
353
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
354
|
+
# androidenterprise#authenticationToken".
|
355
|
+
# Corresponds to the JSON property `kind`
|
356
|
+
# @return [String]
|
357
|
+
attr_accessor :kind
|
358
|
+
|
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`
|
363
|
+
# @return [String]
|
364
|
+
attr_accessor :token
|
365
|
+
|
366
|
+
def initialize(**args)
|
367
|
+
update!(**args)
|
368
|
+
end
|
369
|
+
|
370
|
+
# Update properties of this object
|
371
|
+
def update!(**args)
|
372
|
+
@kind = args[:kind] if args.key?(:kind)
|
373
|
+
@token = args[:token] if args.key?(:token)
|
374
|
+
end
|
375
|
+
end
|
376
|
+
|
209
377
|
# A collection resource defines a named set of apps that is visible to a set of
|
210
378
|
# users in the Google Play Store app running on those users' managed devices.
|
211
379
|
# Those users can then install any of those apps if they wish (which will
|
@@ -339,12 +507,19 @@ module Google
|
|
339
507
|
# @return [String]
|
340
508
|
attr_accessor :kind
|
341
509
|
|
342
|
-
#
|
343
|
-
#
|
344
|
-
#
|
345
|
-
#
|
346
|
-
#
|
347
|
-
#
|
510
|
+
# Identifies the extent to which the device is controlled by an Android for Work
|
511
|
+
# EMM in various deployment configurations.
|
512
|
+
# Possible values include:
|
513
|
+
# - "managedDevice", a device that has the EMM's device policy controller (DPC)
|
514
|
+
# as the device owner,
|
515
|
+
# - "managedProfile", a device that has a work profile managed by the DPC (DPC
|
516
|
+
# is profile owner) in addition to a separate, personal profile that is
|
517
|
+
# unavailable to the DPC,
|
518
|
+
# - "containerApp", a device running the Android for Work App. The Android for
|
519
|
+
# Work App is managed by the DPC,
|
520
|
+
# - "unmanagedProfile", a device that has been allowed (by the domain's admin,
|
521
|
+
# using the Admin Console to enable the privilege) to use Android for Work apps
|
522
|
+
# or Google Apps for Work, but the profile is itself not owned by a DPC.
|
348
523
|
# Corresponds to the JSON property `managementType`
|
349
524
|
# @return [String]
|
350
525
|
attr_accessor :management_type
|
@@ -417,33 +592,27 @@ module Google
|
|
417
592
|
end
|
418
593
|
end
|
419
594
|
|
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.
|
595
|
+
# An Enterprises resource represents the binding between an EMM and a specific
|
596
|
+
# organization. That binding can be instantiated in one of two different ways
|
597
|
+
# using this API as follows:
|
598
|
+
# - For Google managed domain customers, the process involves using Enterprises.
|
599
|
+
# enroll and Enterprises.setAccount (in conjunction with artifacts obtained from
|
600
|
+
# the Admin console and the Google API Console) and submitted to the EMM through
|
601
|
+
# a more-or-less manual process.
|
602
|
+
# - For Android for Work Accounts customers, the process involves using
|
603
|
+
# Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction
|
604
|
+
# with the Android for Work Sign-up UI (Google-provided mechanism) to create the
|
605
|
+
# binding without manual steps. As an EMM, you can support either or both
|
606
|
+
# approaches in your EMM console. See Create an Enterprise for details.
|
444
607
|
class Enterprise
|
445
608
|
include Google::Apis::Core::Hashable
|
446
609
|
|
610
|
+
# Administrators of the enterprise. This is only supported for enterprises
|
611
|
+
# created via the EMM-initiated flow.
|
612
|
+
# Corresponds to the JSON property `administrator`
|
613
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::Administrator>]
|
614
|
+
attr_accessor :administrator
|
615
|
+
|
447
616
|
# The unique ID for the enterprise.
|
448
617
|
# Corresponds to the JSON property `id`
|
449
618
|
# @return [String]
|
@@ -455,12 +624,12 @@ module Google
|
|
455
624
|
# @return [String]
|
456
625
|
attr_accessor :kind
|
457
626
|
|
458
|
-
# The name of the enterprise,
|
627
|
+
# The name of the enterprise, for example, "Example, Inc".
|
459
628
|
# Corresponds to the JSON property `name`
|
460
629
|
# @return [String]
|
461
630
|
attr_accessor :name
|
462
631
|
|
463
|
-
# The enterprise's primary domain,
|
632
|
+
# The enterprise's primary domain, such as "example.com".
|
464
633
|
# Corresponds to the JSON property `primaryDomain`
|
465
634
|
# @return [String]
|
466
635
|
attr_accessor :primary_domain
|
@@ -471,6 +640,7 @@ module Google
|
|
471
640
|
|
472
641
|
# Update properties of this object
|
473
642
|
def update!(**args)
|
643
|
+
@administrator = args[:administrator] if args.key?(:administrator)
|
474
644
|
@id = args[:id] if args.key?(:id)
|
475
645
|
@kind = args[:kind] if args.key?(:kind)
|
476
646
|
@name = args[:name] if args.key?(:name)
|
@@ -831,6 +1001,50 @@ module Google
|
|
831
1001
|
end
|
832
1002
|
end
|
833
1003
|
|
1004
|
+
# An event generated when an app installation failed on a device
|
1005
|
+
class InstallFailureEvent
|
1006
|
+
include Google::Apis::Core::Hashable
|
1007
|
+
|
1008
|
+
# The Android ID of the device. This field will always be present.
|
1009
|
+
# Corresponds to the JSON property `deviceId`
|
1010
|
+
# @return [String]
|
1011
|
+
attr_accessor :device_id
|
1012
|
+
|
1013
|
+
# Additional details on the failure if applicable.
|
1014
|
+
# Corresponds to the JSON property `failureDetails`
|
1015
|
+
# @return [String]
|
1016
|
+
attr_accessor :failure_details
|
1017
|
+
|
1018
|
+
# The reason for the installation failure. This field will always be present.
|
1019
|
+
# Corresponds to the JSON property `failureReason`
|
1020
|
+
# @return [String]
|
1021
|
+
attr_accessor :failure_reason
|
1022
|
+
|
1023
|
+
# The id of the product (e.g. "app:com.google.android.gm") for which the install
|
1024
|
+
# failure event occured. This field will always be present.
|
1025
|
+
# Corresponds to the JSON property `productId`
|
1026
|
+
# @return [String]
|
1027
|
+
attr_accessor :product_id
|
1028
|
+
|
1029
|
+
# The ID of the user. This field will always be present.
|
1030
|
+
# Corresponds to the JSON property `userId`
|
1031
|
+
# @return [String]
|
1032
|
+
attr_accessor :user_id
|
1033
|
+
|
1034
|
+
def initialize(**args)
|
1035
|
+
update!(**args)
|
1036
|
+
end
|
1037
|
+
|
1038
|
+
# Update properties of this object
|
1039
|
+
def update!(**args)
|
1040
|
+
@device_id = args[:device_id] if args.key?(:device_id)
|
1041
|
+
@failure_details = args[:failure_details] if args.key?(:failure_details)
|
1042
|
+
@failure_reason = args[:failure_reason] if args.key?(:failure_reason)
|
1043
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1044
|
+
@user_id = args[:user_id] if args.key?(:user_id)
|
1045
|
+
end
|
1046
|
+
end
|
1047
|
+
|
834
1048
|
# The install resources for the device.
|
835
1049
|
class ListInstallsResponse
|
836
1050
|
include Google::Apis::Core::Hashable
|
@@ -883,6 +1097,314 @@ module Google
|
|
883
1097
|
end
|
884
1098
|
end
|
885
1099
|
|
1100
|
+
# A managed configuration resource contains the set of managed properties that
|
1101
|
+
# have been configured for an Android app. The app's developer would have
|
1102
|
+
# defined configurable properties in the managed configurations schema.
|
1103
|
+
class ManagedConfiguration
|
1104
|
+
include Google::Apis::Core::Hashable
|
1105
|
+
|
1106
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
1107
|
+
# androidenterprise#managedConfiguration".
|
1108
|
+
# Corresponds to the JSON property `kind`
|
1109
|
+
# @return [String]
|
1110
|
+
attr_accessor :kind
|
1111
|
+
|
1112
|
+
# The set of managed properties for this configuration.
|
1113
|
+
# Corresponds to the JSON property `managedProperty`
|
1114
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::ManagedProperty>]
|
1115
|
+
attr_accessor :managed_property
|
1116
|
+
|
1117
|
+
# The ID of the product that the managed configuration is for, e.g. "app:com.
|
1118
|
+
# google.android.gm".
|
1119
|
+
# Corresponds to the JSON property `productId`
|
1120
|
+
# @return [String]
|
1121
|
+
attr_accessor :product_id
|
1122
|
+
|
1123
|
+
def initialize(**args)
|
1124
|
+
update!(**args)
|
1125
|
+
end
|
1126
|
+
|
1127
|
+
# Update properties of this object
|
1128
|
+
def update!(**args)
|
1129
|
+
@kind = args[:kind] if args.key?(:kind)
|
1130
|
+
@managed_property = args[:managed_property] if args.key?(:managed_property)
|
1131
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1132
|
+
end
|
1133
|
+
end
|
1134
|
+
|
1135
|
+
# The managed configuration resources for the device.
|
1136
|
+
class ManagedConfigurationsForDeviceListResponse
|
1137
|
+
include Google::Apis::Core::Hashable
|
1138
|
+
|
1139
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
1140
|
+
# androidenterprise#managedConfigurationsForDeviceListResponse".
|
1141
|
+
# Corresponds to the JSON property `kind`
|
1142
|
+
# @return [String]
|
1143
|
+
attr_accessor :kind
|
1144
|
+
|
1145
|
+
# A managed configuration for an app on a specific device.
|
1146
|
+
# Corresponds to the JSON property `managedConfigurationForDevice`
|
1147
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::ManagedConfiguration>]
|
1148
|
+
attr_accessor :managed_configuration_for_device
|
1149
|
+
|
1150
|
+
def initialize(**args)
|
1151
|
+
update!(**args)
|
1152
|
+
end
|
1153
|
+
|
1154
|
+
# Update properties of this object
|
1155
|
+
def update!(**args)
|
1156
|
+
@kind = args[:kind] if args.key?(:kind)
|
1157
|
+
@managed_configuration_for_device = args[:managed_configuration_for_device] if args.key?(:managed_configuration_for_device)
|
1158
|
+
end
|
1159
|
+
end
|
1160
|
+
|
1161
|
+
# The managed configuration resources for the user.
|
1162
|
+
class ManagedConfigurationsForUserListResponse
|
1163
|
+
include Google::Apis::Core::Hashable
|
1164
|
+
|
1165
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
1166
|
+
# androidenterprise#managedConfigurationsForUserListResponse".
|
1167
|
+
# Corresponds to the JSON property `kind`
|
1168
|
+
# @return [String]
|
1169
|
+
attr_accessor :kind
|
1170
|
+
|
1171
|
+
# A managed configuration for an app for a specific user.
|
1172
|
+
# Corresponds to the JSON property `managedConfigurationForUser`
|
1173
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::ManagedConfiguration>]
|
1174
|
+
attr_accessor :managed_configuration_for_user
|
1175
|
+
|
1176
|
+
def initialize(**args)
|
1177
|
+
update!(**args)
|
1178
|
+
end
|
1179
|
+
|
1180
|
+
# Update properties of this object
|
1181
|
+
def update!(**args)
|
1182
|
+
@kind = args[:kind] if args.key?(:kind)
|
1183
|
+
@managed_configuration_for_user = args[:managed_configuration_for_user] if args.key?(:managed_configuration_for_user)
|
1184
|
+
end
|
1185
|
+
end
|
1186
|
+
|
1187
|
+
# A managed property of a managed configuration. The property must match one of
|
1188
|
+
# the properties in the app restrictions schema of the product. Exactly one of
|
1189
|
+
# the value fields must be populated, and it must match the property's type in
|
1190
|
+
# the app restrictions schema.
|
1191
|
+
class ManagedProperty
|
1192
|
+
include Google::Apis::Core::Hashable
|
1193
|
+
|
1194
|
+
# The unique key that identifies the property.
|
1195
|
+
# Corresponds to the JSON property `key`
|
1196
|
+
# @return [String]
|
1197
|
+
attr_accessor :key
|
1198
|
+
|
1199
|
+
# The boolean value - this will only be present if type of the property is bool.
|
1200
|
+
# Corresponds to the JSON property `valueBool`
|
1201
|
+
# @return [Boolean]
|
1202
|
+
attr_accessor :value_bool
|
1203
|
+
alias_method :value_bool?, :value_bool
|
1204
|
+
|
1205
|
+
# A bundle of managed properties.
|
1206
|
+
# Corresponds to the JSON property `valueBundle`
|
1207
|
+
# @return [Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle]
|
1208
|
+
attr_accessor :value_bundle
|
1209
|
+
|
1210
|
+
# The list of bundles of properties - this will only be present if type of the
|
1211
|
+
# property is bundle_array.
|
1212
|
+
# Corresponds to the JSON property `valueBundleArray`
|
1213
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle>]
|
1214
|
+
attr_accessor :value_bundle_array
|
1215
|
+
|
1216
|
+
# The integer value - this will only be present if type of the property is
|
1217
|
+
# integer.
|
1218
|
+
# Corresponds to the JSON property `valueInteger`
|
1219
|
+
# @return [Fixnum]
|
1220
|
+
attr_accessor :value_integer
|
1221
|
+
|
1222
|
+
# The string value - this will only be present if type of the property is string,
|
1223
|
+
# choice or hidden.
|
1224
|
+
# Corresponds to the JSON property `valueString`
|
1225
|
+
# @return [String]
|
1226
|
+
attr_accessor :value_string
|
1227
|
+
|
1228
|
+
# The list of string values - this will only be present if type of the property
|
1229
|
+
# is multiselect.
|
1230
|
+
# Corresponds to the JSON property `valueStringArray`
|
1231
|
+
# @return [Array<String>]
|
1232
|
+
attr_accessor :value_string_array
|
1233
|
+
|
1234
|
+
def initialize(**args)
|
1235
|
+
update!(**args)
|
1236
|
+
end
|
1237
|
+
|
1238
|
+
# Update properties of this object
|
1239
|
+
def update!(**args)
|
1240
|
+
@key = args[:key] if args.key?(:key)
|
1241
|
+
@value_bool = args[:value_bool] if args.key?(:value_bool)
|
1242
|
+
@value_bundle = args[:value_bundle] if args.key?(:value_bundle)
|
1243
|
+
@value_bundle_array = args[:value_bundle_array] if args.key?(:value_bundle_array)
|
1244
|
+
@value_integer = args[:value_integer] if args.key?(:value_integer)
|
1245
|
+
@value_string = args[:value_string] if args.key?(:value_string)
|
1246
|
+
@value_string_array = args[:value_string_array] if args.key?(:value_string_array)
|
1247
|
+
end
|
1248
|
+
end
|
1249
|
+
|
1250
|
+
# A bundle of managed properties.
|
1251
|
+
class ManagedPropertyBundle
|
1252
|
+
include Google::Apis::Core::Hashable
|
1253
|
+
|
1254
|
+
# The list of managed properties.
|
1255
|
+
# Corresponds to the JSON property `managedProperty`
|
1256
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::ManagedProperty>]
|
1257
|
+
attr_accessor :managed_property
|
1258
|
+
|
1259
|
+
def initialize(**args)
|
1260
|
+
update!(**args)
|
1261
|
+
end
|
1262
|
+
|
1263
|
+
# Update properties of this object
|
1264
|
+
def update!(**args)
|
1265
|
+
@managed_property = args[:managed_property] if args.key?(:managed_property)
|
1266
|
+
end
|
1267
|
+
end
|
1268
|
+
|
1269
|
+
# An event generated when new permissions are added to an app.
|
1270
|
+
class NewPermissionsEvent
|
1271
|
+
include Google::Apis::Core::Hashable
|
1272
|
+
|
1273
|
+
# The set of permissions that the enterprise admin has already approved for this
|
1274
|
+
# application. Use Permissions.Get on the EMM API to retrieve details about
|
1275
|
+
# these permissions.
|
1276
|
+
# Corresponds to the JSON property `approvedPermissions`
|
1277
|
+
# @return [Array<String>]
|
1278
|
+
attr_accessor :approved_permissions
|
1279
|
+
|
1280
|
+
# The id of the product (e.g. "app:com.google.android.gm") for which new
|
1281
|
+
# permissions were added. This field will always be present.
|
1282
|
+
# Corresponds to the JSON property `productId`
|
1283
|
+
# @return [String]
|
1284
|
+
attr_accessor :product_id
|
1285
|
+
|
1286
|
+
# The set of permissions that the app is currently requesting. Use Permissions.
|
1287
|
+
# Get on the EMM API to retrieve details about these permissions.
|
1288
|
+
# Corresponds to the JSON property `requestedPermissions`
|
1289
|
+
# @return [Array<String>]
|
1290
|
+
attr_accessor :requested_permissions
|
1291
|
+
|
1292
|
+
def initialize(**args)
|
1293
|
+
update!(**args)
|
1294
|
+
end
|
1295
|
+
|
1296
|
+
# Update properties of this object
|
1297
|
+
def update!(**args)
|
1298
|
+
@approved_permissions = args[:approved_permissions] if args.key?(:approved_permissions)
|
1299
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1300
|
+
@requested_permissions = args[:requested_permissions] if args.key?(:requested_permissions)
|
1301
|
+
end
|
1302
|
+
end
|
1303
|
+
|
1304
|
+
# A notification of one event relating to an enterprise.
|
1305
|
+
class Notification
|
1306
|
+
include Google::Apis::Core::Hashable
|
1307
|
+
|
1308
|
+
# An event generated when a new app version is uploaded to Google Play and its
|
1309
|
+
# app restrictions schema changed. To fetch the app restrictions schema for an
|
1310
|
+
# app, use Products.getAppRestrictionsSchema on the EMM API.
|
1311
|
+
# Corresponds to the JSON property `appRestrictionsSchemaChangeEvent`
|
1312
|
+
# @return [Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaChangeEvent]
|
1313
|
+
attr_accessor :app_restrictions_schema_change_event
|
1314
|
+
|
1315
|
+
# An event generated when a new version of an app is uploaded to Google Play.
|
1316
|
+
# Notifications are sent for new public versions only: alpha, beta, or canary
|
1317
|
+
# versions do not generate this event. To fetch up-to-date version history for
|
1318
|
+
# an app, use Products.Get on the EMM API.
|
1319
|
+
# Corresponds to the JSON property `appUpdateEvent`
|
1320
|
+
# @return [Google::Apis::AndroidenterpriseV1::AppUpdateEvent]
|
1321
|
+
attr_accessor :app_update_event
|
1322
|
+
|
1323
|
+
# The ID of the enterprise for which the notification is sent. This will always
|
1324
|
+
# be present.
|
1325
|
+
# Corresponds to the JSON property `enterpriseId`
|
1326
|
+
# @return [String]
|
1327
|
+
attr_accessor :enterprise_id
|
1328
|
+
|
1329
|
+
# An event generated when an app installation failed on a device
|
1330
|
+
# Corresponds to the JSON property `installFailureEvent`
|
1331
|
+
# @return [Google::Apis::AndroidenterpriseV1::InstallFailureEvent]
|
1332
|
+
attr_accessor :install_failure_event
|
1333
|
+
|
1334
|
+
# An event generated when new permissions are added to an app.
|
1335
|
+
# Corresponds to the JSON property `newPermissionsEvent`
|
1336
|
+
# @return [Google::Apis::AndroidenterpriseV1::NewPermissionsEvent]
|
1337
|
+
attr_accessor :new_permissions_event
|
1338
|
+
|
1339
|
+
# An event generated when a product's approval status is changed.
|
1340
|
+
# Corresponds to the JSON property `productApprovalEvent`
|
1341
|
+
# @return [Google::Apis::AndroidenterpriseV1::ProductApprovalEvent]
|
1342
|
+
attr_accessor :product_approval_event
|
1343
|
+
|
1344
|
+
# An event generated whenever a product's availability changes.
|
1345
|
+
# Corresponds to the JSON property `productAvailabilityChangeEvent`
|
1346
|
+
# @return [Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent]
|
1347
|
+
attr_accessor :product_availability_change_event
|
1348
|
+
|
1349
|
+
# The time when the notification was published in milliseconds since 1970-01-
|
1350
|
+
# 01T00:00:00Z. This will always be present.
|
1351
|
+
# Corresponds to the JSON property `timestampMillis`
|
1352
|
+
# @return [String]
|
1353
|
+
attr_accessor :timestamp_millis
|
1354
|
+
|
1355
|
+
def initialize(**args)
|
1356
|
+
update!(**args)
|
1357
|
+
end
|
1358
|
+
|
1359
|
+
# Update properties of this object
|
1360
|
+
def update!(**args)
|
1361
|
+
@app_restrictions_schema_change_event = args[:app_restrictions_schema_change_event] if args.key?(:app_restrictions_schema_change_event)
|
1362
|
+
@app_update_event = args[:app_update_event] if args.key?(:app_update_event)
|
1363
|
+
@enterprise_id = args[:enterprise_id] if args.key?(:enterprise_id)
|
1364
|
+
@install_failure_event = args[:install_failure_event] if args.key?(:install_failure_event)
|
1365
|
+
@new_permissions_event = args[:new_permissions_event] if args.key?(:new_permissions_event)
|
1366
|
+
@product_approval_event = args[:product_approval_event] if args.key?(:product_approval_event)
|
1367
|
+
@product_availability_change_event = args[:product_availability_change_event] if args.key?(:product_availability_change_event)
|
1368
|
+
@timestamp_millis = args[:timestamp_millis] if args.key?(:timestamp_millis)
|
1369
|
+
end
|
1370
|
+
end
|
1371
|
+
|
1372
|
+
# A resource returned by the PullNotificationSet API, which contains a
|
1373
|
+
# collection of notifications for enterprises associated with the service
|
1374
|
+
# account authenticated for the request.
|
1375
|
+
class NotificationSet
|
1376
|
+
include Google::Apis::Core::Hashable
|
1377
|
+
|
1378
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
1379
|
+
# androidenterprise#notificationSet".
|
1380
|
+
# Corresponds to the JSON property `kind`
|
1381
|
+
# @return [String]
|
1382
|
+
attr_accessor :kind
|
1383
|
+
|
1384
|
+
# The notifications received, or empty if no notifications are present.
|
1385
|
+
# Corresponds to the JSON property `notification`
|
1386
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::Notification>]
|
1387
|
+
attr_accessor :notification
|
1388
|
+
|
1389
|
+
# The notification set ID, required to mark the notification as received with
|
1390
|
+
# the Enterprises.AcknowledgeNotification API. This will be omitted if no
|
1391
|
+
# notifications are present.
|
1392
|
+
# Corresponds to the JSON property `notificationSetId`
|
1393
|
+
# @return [String]
|
1394
|
+
attr_accessor :notification_set_id
|
1395
|
+
|
1396
|
+
def initialize(**args)
|
1397
|
+
update!(**args)
|
1398
|
+
end
|
1399
|
+
|
1400
|
+
# Update properties of this object
|
1401
|
+
def update!(**args)
|
1402
|
+
@kind = args[:kind] if args.key?(:kind)
|
1403
|
+
@notification = args[:notification] if args.key?(:notification)
|
1404
|
+
@notification_set_id = args[:notification_set_id] if args.key?(:notification_set_id)
|
1405
|
+
end
|
1406
|
+
end
|
1407
|
+
|
886
1408
|
#
|
887
1409
|
class PageInfo
|
888
1410
|
include Google::Apis::Core::Hashable
|
@@ -958,10 +1480,10 @@ module Google
|
|
958
1480
|
end
|
959
1481
|
end
|
960
1482
|
|
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.)
|
1483
|
+
# A Products resource represents an app in the Google Play Store that is
|
1484
|
+
# available to at least some users in the enterprise. (Some apps are restricted
|
1485
|
+
# to a single enterprise, and no information about them is made available
|
1486
|
+
# outside that enterprise.)
|
965
1487
|
# The information provided for each product (localized name, icon, link to the
|
966
1488
|
# full Google Play details page) is intended to allow a basic representation of
|
967
1489
|
# the product within an EMM user interface.
|
@@ -1012,7 +1534,9 @@ module Google
|
|
1012
1534
|
# @return [String]
|
1013
1535
|
attr_accessor :product_id
|
1014
1536
|
|
1015
|
-
# Whether this product is free, free with in-app purchases, or paid.
|
1537
|
+
# Whether this product is free, free with in-app purchases, or paid. If the
|
1538
|
+
# pricing is unknown, this means the product is not generally available anymore (
|
1539
|
+
# even though it might still be available to people who own it).
|
1016
1540
|
# Corresponds to the JSON property `productPricing`
|
1017
1541
|
# @return [String]
|
1018
1542
|
attr_accessor :product_pricing
|
@@ -1062,6 +1586,59 @@ module Google
|
|
1062
1586
|
end
|
1063
1587
|
end
|
1064
1588
|
|
1589
|
+
# An event generated when a product's approval status is changed.
|
1590
|
+
class ProductApprovalEvent
|
1591
|
+
include Google::Apis::Core::Hashable
|
1592
|
+
|
1593
|
+
# Whether the product was approved or unapproved. This field will always be
|
1594
|
+
# present.
|
1595
|
+
# Corresponds to the JSON property `approved`
|
1596
|
+
# @return [String]
|
1597
|
+
attr_accessor :approved
|
1598
|
+
|
1599
|
+
# The id of the product (e.g. "app:com.google.android.gm") for which the
|
1600
|
+
# approval status has changed. This field will always be present.
|
1601
|
+
# Corresponds to the JSON property `productId`
|
1602
|
+
# @return [String]
|
1603
|
+
attr_accessor :product_id
|
1604
|
+
|
1605
|
+
def initialize(**args)
|
1606
|
+
update!(**args)
|
1607
|
+
end
|
1608
|
+
|
1609
|
+
# Update properties of this object
|
1610
|
+
def update!(**args)
|
1611
|
+
@approved = args[:approved] if args.key?(:approved)
|
1612
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1613
|
+
end
|
1614
|
+
end
|
1615
|
+
|
1616
|
+
# An event generated whenever a product's availability changes.
|
1617
|
+
class ProductAvailabilityChangeEvent
|
1618
|
+
include Google::Apis::Core::Hashable
|
1619
|
+
|
1620
|
+
# The new state of the product. This field will always be present.
|
1621
|
+
# Corresponds to the JSON property `availabilityStatus`
|
1622
|
+
# @return [String]
|
1623
|
+
attr_accessor :availability_status
|
1624
|
+
|
1625
|
+
# The id of the product (e.g. "app:com.google.android.gm") for which the product
|
1626
|
+
# availability changed. This field will always be present.
|
1627
|
+
# Corresponds to the JSON property `productId`
|
1628
|
+
# @return [String]
|
1629
|
+
attr_accessor :product_id
|
1630
|
+
|
1631
|
+
def initialize(**args)
|
1632
|
+
update!(**args)
|
1633
|
+
end
|
1634
|
+
|
1635
|
+
# Update properties of this object
|
1636
|
+
def update!(**args)
|
1637
|
+
@availability_status = args[:availability_status] if args.key?(:availability_status)
|
1638
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1639
|
+
end
|
1640
|
+
end
|
1641
|
+
|
1065
1642
|
# A product permissions resource represents the set of permissions required by a
|
1066
1643
|
# specific app and whether or not they have been accepted by an enterprise admin.
|
1067
1644
|
# The API can be used to read the set of permissions, and also to update the set
|
@@ -1139,6 +1716,15 @@ module Google
|
|
1139
1716
|
# @return [Array<String>]
|
1140
1717
|
attr_accessor :product_id
|
1141
1718
|
|
1719
|
+
# The interpretation of this product set. "unknown" should never be sent and
|
1720
|
+
# ignored if received. "whitelist" means that this product set constitutes a
|
1721
|
+
# whitelist. "includeAll" means that all products are accessible (the value of
|
1722
|
+
# the productId field is therefore ignored). If a value is not supplied, it is
|
1723
|
+
# interpreted to be "whitelist" for backwards compatibility.
|
1724
|
+
# Corresponds to the JSON property `productSetBehavior`
|
1725
|
+
# @return [String]
|
1726
|
+
attr_accessor :product_set_behavior
|
1727
|
+
|
1142
1728
|
def initialize(**args)
|
1143
1729
|
update!(**args)
|
1144
1730
|
end
|
@@ -1147,6 +1733,7 @@ module Google
|
|
1147
1733
|
def update!(**args)
|
1148
1734
|
@kind = args[:kind] if args.key?(:kind)
|
1149
1735
|
@product_id = args[:product_id] if args.key?(:product_id)
|
1736
|
+
@product_set_behavior = args[:product_set_behavior] if args.key?(:product_set_behavior)
|
1150
1737
|
end
|
1151
1738
|
end
|
1152
1739
|
|
@@ -1234,6 +1821,134 @@ module Google
|
|
1234
1821
|
end
|
1235
1822
|
end
|
1236
1823
|
|
1824
|
+
# A service account identity, including the name and credentials that can be
|
1825
|
+
# used to authenticate as the service account.
|
1826
|
+
class ServiceAccount
|
1827
|
+
include Google::Apis::Core::Hashable
|
1828
|
+
|
1829
|
+
# Credentials that can be used to authenticate as a service account.
|
1830
|
+
# Corresponds to the JSON property `key`
|
1831
|
+
# @return [Google::Apis::AndroidenterpriseV1::ServiceAccountKey]
|
1832
|
+
attr_accessor :key
|
1833
|
+
|
1834
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
1835
|
+
# androidenterprise#serviceAccount".
|
1836
|
+
# Corresponds to the JSON property `kind`
|
1837
|
+
# @return [String]
|
1838
|
+
attr_accessor :kind
|
1839
|
+
|
1840
|
+
# The account name of the service account, in the form of an email address.
|
1841
|
+
# Assigned by the server.
|
1842
|
+
# Corresponds to the JSON property `name`
|
1843
|
+
# @return [String]
|
1844
|
+
attr_accessor :name
|
1845
|
+
|
1846
|
+
def initialize(**args)
|
1847
|
+
update!(**args)
|
1848
|
+
end
|
1849
|
+
|
1850
|
+
# Update properties of this object
|
1851
|
+
def update!(**args)
|
1852
|
+
@key = args[:key] if args.key?(:key)
|
1853
|
+
@kind = args[:kind] if args.key?(:kind)
|
1854
|
+
@name = args[:name] if args.key?(:name)
|
1855
|
+
end
|
1856
|
+
end
|
1857
|
+
|
1858
|
+
# Credentials that can be used to authenticate as a service account.
|
1859
|
+
class ServiceAccountKey
|
1860
|
+
include Google::Apis::Core::Hashable
|
1861
|
+
|
1862
|
+
# The body of the private key credentials file, in string format. This is only
|
1863
|
+
# populated when the ServiceAccountKey is created, and is not stored by Google.
|
1864
|
+
# Corresponds to the JSON property `data`
|
1865
|
+
# @return [String]
|
1866
|
+
attr_accessor :data
|
1867
|
+
|
1868
|
+
# An opaque, unique identifier for this ServiceAccountKey. Assigned by the
|
1869
|
+
# server.
|
1870
|
+
# Corresponds to the JSON property `id`
|
1871
|
+
# @return [String]
|
1872
|
+
attr_accessor :id
|
1873
|
+
|
1874
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
1875
|
+
# androidenterprise#serviceAccountKey".
|
1876
|
+
# Corresponds to the JSON property `kind`
|
1877
|
+
# @return [String]
|
1878
|
+
attr_accessor :kind
|
1879
|
+
|
1880
|
+
# The file format of the generated key data.
|
1881
|
+
# Corresponds to the JSON property `type`
|
1882
|
+
# @return [String]
|
1883
|
+
attr_accessor :type
|
1884
|
+
|
1885
|
+
def initialize(**args)
|
1886
|
+
update!(**args)
|
1887
|
+
end
|
1888
|
+
|
1889
|
+
# Update properties of this object
|
1890
|
+
def update!(**args)
|
1891
|
+
@data = args[:data] if args.key?(:data)
|
1892
|
+
@id = args[:id] if args.key?(:id)
|
1893
|
+
@kind = args[:kind] if args.key?(:kind)
|
1894
|
+
@type = args[:type] if args.key?(:type)
|
1895
|
+
end
|
1896
|
+
end
|
1897
|
+
|
1898
|
+
#
|
1899
|
+
class ServiceAccountKeysListResponse
|
1900
|
+
include Google::Apis::Core::Hashable
|
1901
|
+
|
1902
|
+
# The service account credentials.
|
1903
|
+
# Corresponds to the JSON property `serviceAccountKey`
|
1904
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::ServiceAccountKey>]
|
1905
|
+
attr_accessor :service_account_key
|
1906
|
+
|
1907
|
+
def initialize(**args)
|
1908
|
+
update!(**args)
|
1909
|
+
end
|
1910
|
+
|
1911
|
+
# Update properties of this object
|
1912
|
+
def update!(**args)
|
1913
|
+
@service_account_key = args[:service_account_key] if args.key?(:service_account_key)
|
1914
|
+
end
|
1915
|
+
end
|
1916
|
+
|
1917
|
+
# A resource returned by the GenerateSignupUrl API, which contains the Signup
|
1918
|
+
# URL and Completion Token.
|
1919
|
+
class SignupInfo
|
1920
|
+
include Google::Apis::Core::Hashable
|
1921
|
+
|
1922
|
+
# An opaque token that will be required, along with the Enterprise Token, for
|
1923
|
+
# obtaining the enterprise resource from CompleteSignup.
|
1924
|
+
# Corresponds to the JSON property `completionToken`
|
1925
|
+
# @return [String]
|
1926
|
+
attr_accessor :completion_token
|
1927
|
+
|
1928
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
1929
|
+
# androidenterprise#signupInfo".
|
1930
|
+
# Corresponds to the JSON property `kind`
|
1931
|
+
# @return [String]
|
1932
|
+
attr_accessor :kind
|
1933
|
+
|
1934
|
+
# A URL under which the Admin can sign up for an enterprise. The page pointed to
|
1935
|
+
# cannot be rendered in an iframe.
|
1936
|
+
# Corresponds to the JSON property `url`
|
1937
|
+
# @return [String]
|
1938
|
+
attr_accessor :url
|
1939
|
+
|
1940
|
+
def initialize(**args)
|
1941
|
+
update!(**args)
|
1942
|
+
end
|
1943
|
+
|
1944
|
+
# Update properties of this object
|
1945
|
+
def update!(**args)
|
1946
|
+
@completion_token = args[:completion_token] if args.key?(:completion_token)
|
1947
|
+
@kind = args[:kind] if args.key?(:kind)
|
1948
|
+
@url = args[:url] if args.key?(:url)
|
1949
|
+
end
|
1950
|
+
end
|
1951
|
+
|
1237
1952
|
# Definition of a Google Play for Work store cluster, a list of products
|
1238
1953
|
# displayed as part of a store page.
|
1239
1954
|
class StoreCluster
|
@@ -1294,8 +2009,8 @@ module Google
|
|
1294
2009
|
|
1295
2010
|
# The ID of the store page to be used as the homepage. The homepage will be used
|
1296
2011
|
# as the first page shown in the Google Play for Work store.
|
1297
|
-
# If
|
1298
|
-
#
|
2012
|
+
# If a homepage has not been set, the Play store shown on devices will be empty.
|
2013
|
+
# Not specifying a homepage on a store layout effectively empties the store.
|
1299
2014
|
# If there exists at least one page, this field must be set to the ID of a valid
|
1300
2015
|
# page.
|
1301
2016
|
# Corresponds to the JSON property `homepageId`
|
@@ -1308,6 +2023,17 @@ module Google
|
|
1308
2023
|
# @return [String]
|
1309
2024
|
attr_accessor :kind
|
1310
2025
|
|
2026
|
+
# The store layout type. By default, this value is set to "basic". If set to "
|
2027
|
+
# custom", "homepageId" must be specified. If set to "basic", the layout will
|
2028
|
+
# consist of all approved apps accessible by the user, split in pages of 100
|
2029
|
+
# each; in this case, "homepageId" must not be specified. The "basic" setting
|
2030
|
+
# takes precedence over any existing collections setup for this enterprise (if
|
2031
|
+
# any). Should the enterprise use collectionViewers for controlling access
|
2032
|
+
# rights, these will still be respected.
|
2033
|
+
# Corresponds to the JSON property `storeLayoutType`
|
2034
|
+
# @return [String]
|
2035
|
+
attr_accessor :store_layout_type
|
2036
|
+
|
1311
2037
|
def initialize(**args)
|
1312
2038
|
update!(**args)
|
1313
2039
|
end
|
@@ -1316,6 +2042,7 @@ module Google
|
|
1316
2042
|
def update!(**args)
|
1317
2043
|
@homepage_id = args[:homepage_id] if args.key?(:homepage_id)
|
1318
2044
|
@kind = args[:kind] if args.key?(:kind)
|
2045
|
+
@store_layout_type = args[:store_layout_type] if args.key?(:store_layout_type)
|
1319
2046
|
end
|
1320
2047
|
end
|
1321
2048
|
|
@@ -1441,17 +2168,42 @@ module Google
|
|
1441
2168
|
end
|
1442
2169
|
end
|
1443
2170
|
|
1444
|
-
# A
|
1445
|
-
#
|
1446
|
-
#
|
1447
|
-
#
|
1448
|
-
#
|
1449
|
-
#
|
1450
|
-
#
|
1451
|
-
#
|
2171
|
+
# A Users resource represents an account associated with an enterprise. The
|
2172
|
+
# account may be specific to a device or to an individual user (who can then use
|
2173
|
+
# the account across multiple devices). The account may provide access to Google
|
2174
|
+
# Play for Work only, or to other Google services, depending on the identity
|
2175
|
+
# model:
|
2176
|
+
# - Google managed domain identity model requires synchronization to Google
|
2177
|
+
# account sources (via primaryEmail).
|
2178
|
+
# - Android for Work Accounts identity model provides a dynamic means for
|
2179
|
+
# enterprises to create user or device accounts as needed. These accounts
|
2180
|
+
# provide access to Google Play for Work only.
|
1452
2181
|
class User
|
1453
2182
|
include Google::Apis::Core::Hashable
|
1454
2183
|
|
2184
|
+
# A unique identifier you create for this user, such as "user342" or "asset#
|
2185
|
+
# 44418". Do not use personally identifiable information (PII) for this property.
|
2186
|
+
# Must always be set for EMM-managed users. Not set for Google-managed users.
|
2187
|
+
# Corresponds to the JSON property `accountIdentifier`
|
2188
|
+
# @return [String]
|
2189
|
+
attr_accessor :account_identifier
|
2190
|
+
|
2191
|
+
# The type of account that this user represents. A userAccount can be installed
|
2192
|
+
# on multiple devices, but a deviceAccount is specific to a single device. An
|
2193
|
+
# EMM-managed user (emmManaged) can be either type (userAccount, deviceAccount),
|
2194
|
+
# but a Google-managed user (googleManaged) is always a userAccount.
|
2195
|
+
# Corresponds to the JSON property `accountType`
|
2196
|
+
# @return [String]
|
2197
|
+
attr_accessor :account_type
|
2198
|
+
|
2199
|
+
# The name that will appear in user interfaces. Setting this property is
|
2200
|
+
# optional when creating EMM-managed users. If you do set this property, use
|
2201
|
+
# something generic about the organization (such as "Example, Inc.") or your
|
2202
|
+
# name (as EMM). Not used for Google-managed user accounts.
|
2203
|
+
# Corresponds to the JSON property `displayName`
|
2204
|
+
# @return [String]
|
2205
|
+
attr_accessor :display_name
|
2206
|
+
|
1455
2207
|
# The unique ID for the user.
|
1456
2208
|
# Corresponds to the JSON property `id`
|
1457
2209
|
# @return [String]
|
@@ -1463,7 +2215,15 @@ module Google
|
|
1463
2215
|
# @return [String]
|
1464
2216
|
attr_accessor :kind
|
1465
2217
|
|
1466
|
-
# The user
|
2218
|
+
# The entity that manages the user. With googleManaged users, the source of
|
2219
|
+
# truth is Google so EMMs have to make sure a Google Account exists for the user.
|
2220
|
+
# With emmManaged users, the EMM is in charge.
|
2221
|
+
# Corresponds to the JSON property `managementType`
|
2222
|
+
# @return [String]
|
2223
|
+
attr_accessor :management_type
|
2224
|
+
|
2225
|
+
# The user's primary email address, for example, "jsmith@example.com". Will
|
2226
|
+
# always be set for Google managed users and not set for EMM managed users.
|
1467
2227
|
# Corresponds to the JSON property `primaryEmail`
|
1468
2228
|
# @return [String]
|
1469
2229
|
attr_accessor :primary_email
|
@@ -1474,8 +2234,12 @@ module Google
|
|
1474
2234
|
|
1475
2235
|
# Update properties of this object
|
1476
2236
|
def update!(**args)
|
2237
|
+
@account_identifier = args[:account_identifier] if args.key?(:account_identifier)
|
2238
|
+
@account_type = args[:account_type] if args.key?(:account_type)
|
2239
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1477
2240
|
@id = args[:id] if args.key?(:id)
|
1478
2241
|
@kind = args[:kind] if args.key?(:kind)
|
2242
|
+
@management_type = args[:management_type] if args.key?(:management_type)
|
1479
2243
|
@primary_email = args[:primary_email] if args.key?(:primary_email)
|
1480
2244
|
end
|
1481
2245
|
end
|