google-api-client 0.9.11 → 0.9.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/api_names.yaml +55 -117
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +76 -8
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +23 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +10 -4
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/admin_directory_v1/classes.rb +6 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
- data/generated/google/apis/admin_directory_v1/service.rb +2 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +2 -2
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +371 -1
- data/generated/google/apis/analytics_v3/representations.rb +135 -0
- data/generated/google/apis/analytics_v3/service.rb +218 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +18 -8
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +208 -37
- data/generated/google/apis/androidenterprise_v1/representations.rb +83 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +469 -20
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +9 -8
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +379 -297
- data/generated/google/apis/appengine_v1beta5/representations.rb +55 -10
- data/generated/google/apis/appengine_v1beta5/service.rb +281 -35
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +50 -2
- data/generated/google/apis/bigquery_v2/representations.rb +6 -0
- data/generated/google/apis/bigquery_v2/service.rb +8 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +6 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +2 -1
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/classroom_v1/classes.rb +176 -37
- data/generated/google/apis/classroom_v1/representations.rb +73 -9
- data/generated/google/apis/classroom_v1/service.rb +392 -37
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +190 -12
- data/generated/google/apis/cloudbuild_v1/representations.rb +73 -2
- data/generated/google/apis/cloudbuild_v1/service.rb +170 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/service.rb +2 -2
- data/generated/google/apis/clouddebugger_v2.rb +3 -6
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +599 -77
- data/generated/google/apis/compute_beta/representations.rb +240 -0
- data/generated/google/apis/compute_beta/service.rb +1999 -710
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +140 -58
- data/generated/google/apis/compute_v1/representations.rb +17 -0
- data/generated/google/apis/compute_v1/service.rb +462 -521
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +689 -1
- data/generated/google/apis/content_v2/representations.rb +316 -0
- data/generated/google/apis/content_v2/service.rb +244 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +48 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +5 -0
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11585 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9006 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +8 -0
- data/generated/google/apis/fitness_v1/representations.rb +1 -0
- data/generated/google/apis/fitness_v1/service.rb +2 -2
- data/generated/google/apis/fitness_v1.rb +7 -1
- 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/classes.rb +13 -2
- data/generated/google/apis/genomics_v1/representations.rb +1 -0
- data/generated/google/apis/genomics_v1/service.rb +2 -3
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +8 -11
- data/generated/google/apis/gmail_v1/service.rb +5 -5
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +38 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +6 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +340 -421
- data/generated/google/apis/monitoring_v3/representations.rb +0 -17
- data/generated/google/apis/monitoring_v3/service.rb +136 -168
- data/generated/google/apis/monitoring_v3.rb +1 -1
- 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/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/qpx_express_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/script_v1.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +35 -0
- data/generated/google/apis/sheets_v4/representations.rb +16 -0
- data/generated/google/apis/sheets_v4/service.rb +55 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +12 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +41 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +36 -1
- data/generated/google/apis/storage_v1/representations.rb +16 -0
- data/generated/google/apis/storage_v1/service.rb +18 -3
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/vision_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_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -3
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/analytics/devguides/reporting/core/v4/
|
26
26
|
module AnalyticsreportingV4
|
27
27
|
VERSION = 'V4'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20160809'
|
29
29
|
|
30
30
|
# View your Google Analytics data
|
31
31
|
AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly'
|
@@ -124,6 +124,11 @@ module Google
|
|
124
124
|
# @return [String]
|
125
125
|
attr_accessor :key
|
126
126
|
|
127
|
+
# For bundle or bundleArray restrictions, the list of nested restrictions.
|
128
|
+
# Corresponds to the JSON property `nestedRestriction`
|
129
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction>]
|
130
|
+
attr_accessor :nested_restriction
|
131
|
+
|
127
132
|
# The type of the restriction.
|
128
133
|
# Corresponds to the JSON property `restrictionType`
|
129
134
|
# @return [String]
|
@@ -145,6 +150,7 @@ module Google
|
|
145
150
|
@entry = args[:entry] if args.key?(:entry)
|
146
151
|
@entry_value = args[:entry_value] if args.key?(:entry_value)
|
147
152
|
@key = args[:key] if args.key?(:key)
|
153
|
+
@nested_restriction = args[:nested_restriction] if args.key?(:nested_restriction)
|
148
154
|
@restriction_type = args[:restriction_type] if args.key?(:restriction_type)
|
149
155
|
@title = args[:title] if args.key?(:title)
|
150
156
|
end
|
@@ -510,22 +516,18 @@ module Google
|
|
510
516
|
end
|
511
517
|
end
|
512
518
|
|
513
|
-
# An
|
514
|
-
# organization.
|
515
|
-
#
|
516
|
-
# as follows:
|
517
|
-
#
|
519
|
+
# An Enterprises resource represents the binding between an EMM and a specific
|
520
|
+
# organization. That binding can be instantiated in one of two different ways
|
521
|
+
# using this API as follows:
|
518
522
|
# - For Google managed domain customers, the process involves using Enterprises.
|
519
523
|
# enroll and Enterprises.setAccount (in conjunction with artifacts obtained from
|
520
|
-
# the Admin console and the Google
|
521
|
-
#
|
522
|
-
# -
|
523
|
-
#
|
524
|
-
#
|
525
|
-
#
|
526
|
-
#
|
527
|
-
# but as an EMM, you can support either or both approaches in your EMM console.
|
528
|
-
# See EMM Developer's Guide for details.
|
524
|
+
# the Admin console and the Google API Console) and submitted to the EMM through
|
525
|
+
# a more-or-less manual process.
|
526
|
+
# - For Android for Work Accounts customers, the process involves using
|
527
|
+
# Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction
|
528
|
+
# with the Android for Work Sign-up UI (Google-provided mechanism) to create the
|
529
|
+
# binding without manual steps. As an EMM, you can support either or both
|
530
|
+
# approaches in your EMM console. See Create an Enterprise for details.
|
529
531
|
class Enterprise
|
530
532
|
include Google::Apis::Core::Hashable
|
531
533
|
|
@@ -546,12 +548,12 @@ module Google
|
|
546
548
|
# @return [String]
|
547
549
|
attr_accessor :kind
|
548
550
|
|
549
|
-
# The name of the enterprise,
|
551
|
+
# The name of the enterprise, for example, "Example, Inc".
|
550
552
|
# Corresponds to the JSON property `name`
|
551
553
|
# @return [String]
|
552
554
|
attr_accessor :name
|
553
555
|
|
554
|
-
# The enterprise's primary domain,
|
556
|
+
# The enterprise's primary domain, such as "example.com".
|
555
557
|
# Corresponds to the JSON property `primaryDomain`
|
556
558
|
# @return [String]
|
557
559
|
attr_accessor :primary_domain
|
@@ -1019,6 +1021,175 @@ module Google
|
|
1019
1021
|
end
|
1020
1022
|
end
|
1021
1023
|
|
1024
|
+
# A managed configuration resource contains the set of managed properties that
|
1025
|
+
# have been configured for an Android app. The app's developer would have
|
1026
|
+
# defined configurable properties in the managed configurations schema.
|
1027
|
+
class ManagedConfiguration
|
1028
|
+
include Google::Apis::Core::Hashable
|
1029
|
+
|
1030
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
1031
|
+
# androidenterprise#managedConfiguration".
|
1032
|
+
# Corresponds to the JSON property `kind`
|
1033
|
+
# @return [String]
|
1034
|
+
attr_accessor :kind
|
1035
|
+
|
1036
|
+
# The set of managed properties for this configuration.
|
1037
|
+
# Corresponds to the JSON property `managedProperty`
|
1038
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::ManagedProperty>]
|
1039
|
+
attr_accessor :managed_property
|
1040
|
+
|
1041
|
+
# The ID of the product that the managed configuration is for, e.g. "app:com.
|
1042
|
+
# google.android.gm".
|
1043
|
+
# Corresponds to the JSON property `productId`
|
1044
|
+
# @return [String]
|
1045
|
+
attr_accessor :product_id
|
1046
|
+
|
1047
|
+
def initialize(**args)
|
1048
|
+
update!(**args)
|
1049
|
+
end
|
1050
|
+
|
1051
|
+
# Update properties of this object
|
1052
|
+
def update!(**args)
|
1053
|
+
@kind = args[:kind] if args.key?(:kind)
|
1054
|
+
@managed_property = args[:managed_property] if args.key?(:managed_property)
|
1055
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1056
|
+
end
|
1057
|
+
end
|
1058
|
+
|
1059
|
+
# The managed configuration resources for the device.
|
1060
|
+
class ManagedConfigurationsForDeviceListResponse
|
1061
|
+
include Google::Apis::Core::Hashable
|
1062
|
+
|
1063
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
1064
|
+
# androidenterprise#managedConfigurationsForDeviceListResponse".
|
1065
|
+
# Corresponds to the JSON property `kind`
|
1066
|
+
# @return [String]
|
1067
|
+
attr_accessor :kind
|
1068
|
+
|
1069
|
+
# A managed configuration for an app on a specific device.
|
1070
|
+
# Corresponds to the JSON property `managedConfigurationForDevice`
|
1071
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::ManagedConfiguration>]
|
1072
|
+
attr_accessor :managed_configuration_for_device
|
1073
|
+
|
1074
|
+
def initialize(**args)
|
1075
|
+
update!(**args)
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
# Update properties of this object
|
1079
|
+
def update!(**args)
|
1080
|
+
@kind = args[:kind] if args.key?(:kind)
|
1081
|
+
@managed_configuration_for_device = args[:managed_configuration_for_device] if args.key?(:managed_configuration_for_device)
|
1082
|
+
end
|
1083
|
+
end
|
1084
|
+
|
1085
|
+
# The managed configuration resources for the user.
|
1086
|
+
class ManagedConfigurationsForUserListResponse
|
1087
|
+
include Google::Apis::Core::Hashable
|
1088
|
+
|
1089
|
+
# Identifies what kind of resource this is. Value: the fixed string "
|
1090
|
+
# androidenterprise#managedConfigurationsForUserListResponse".
|
1091
|
+
# Corresponds to the JSON property `kind`
|
1092
|
+
# @return [String]
|
1093
|
+
attr_accessor :kind
|
1094
|
+
|
1095
|
+
# A managed configuration for an app for a specific user.
|
1096
|
+
# Corresponds to the JSON property `managedConfigurationForUser`
|
1097
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::ManagedConfiguration>]
|
1098
|
+
attr_accessor :managed_configuration_for_user
|
1099
|
+
|
1100
|
+
def initialize(**args)
|
1101
|
+
update!(**args)
|
1102
|
+
end
|
1103
|
+
|
1104
|
+
# Update properties of this object
|
1105
|
+
def update!(**args)
|
1106
|
+
@kind = args[:kind] if args.key?(:kind)
|
1107
|
+
@managed_configuration_for_user = args[:managed_configuration_for_user] if args.key?(:managed_configuration_for_user)
|
1108
|
+
end
|
1109
|
+
end
|
1110
|
+
|
1111
|
+
# A managed property of a managed configuration. The property must match one of
|
1112
|
+
# the properties in the app restrictions schema of the product. Exactly one of
|
1113
|
+
# the value fields must be populated, and it must match the property's type in
|
1114
|
+
# the app restrictions schema.
|
1115
|
+
class ManagedProperty
|
1116
|
+
include Google::Apis::Core::Hashable
|
1117
|
+
|
1118
|
+
# The unique key that identifies the property.
|
1119
|
+
# Corresponds to the JSON property `key`
|
1120
|
+
# @return [String]
|
1121
|
+
attr_accessor :key
|
1122
|
+
|
1123
|
+
# The boolean value - this will only be present if type of the property is bool.
|
1124
|
+
# Corresponds to the JSON property `valueBool`
|
1125
|
+
# @return [Boolean]
|
1126
|
+
attr_accessor :value_bool
|
1127
|
+
alias_method :value_bool?, :value_bool
|
1128
|
+
|
1129
|
+
# A bundle of managed properties.
|
1130
|
+
# Corresponds to the JSON property `valueBundle`
|
1131
|
+
# @return [Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle]
|
1132
|
+
attr_accessor :value_bundle
|
1133
|
+
|
1134
|
+
# The list of bundles of properties - this will only be present if type of the
|
1135
|
+
# property is bundle_array.
|
1136
|
+
# Corresponds to the JSON property `valueBundleArray`
|
1137
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle>]
|
1138
|
+
attr_accessor :value_bundle_array
|
1139
|
+
|
1140
|
+
# The integer value - this will only be present if type of the property is
|
1141
|
+
# integer.
|
1142
|
+
# Corresponds to the JSON property `valueInteger`
|
1143
|
+
# @return [Fixnum]
|
1144
|
+
attr_accessor :value_integer
|
1145
|
+
|
1146
|
+
# The string value - this will only be present if type of the property is string,
|
1147
|
+
# choice or hidden.
|
1148
|
+
# Corresponds to the JSON property `valueString`
|
1149
|
+
# @return [String]
|
1150
|
+
attr_accessor :value_string
|
1151
|
+
|
1152
|
+
# The list of string values - this will only be present if type of the property
|
1153
|
+
# is multiselect.
|
1154
|
+
# Corresponds to the JSON property `valueStringArray`
|
1155
|
+
# @return [Array<String>]
|
1156
|
+
attr_accessor :value_string_array
|
1157
|
+
|
1158
|
+
def initialize(**args)
|
1159
|
+
update!(**args)
|
1160
|
+
end
|
1161
|
+
|
1162
|
+
# Update properties of this object
|
1163
|
+
def update!(**args)
|
1164
|
+
@key = args[:key] if args.key?(:key)
|
1165
|
+
@value_bool = args[:value_bool] if args.key?(:value_bool)
|
1166
|
+
@value_bundle = args[:value_bundle] if args.key?(:value_bundle)
|
1167
|
+
@value_bundle_array = args[:value_bundle_array] if args.key?(:value_bundle_array)
|
1168
|
+
@value_integer = args[:value_integer] if args.key?(:value_integer)
|
1169
|
+
@value_string = args[:value_string] if args.key?(:value_string)
|
1170
|
+
@value_string_array = args[:value_string_array] if args.key?(:value_string_array)
|
1171
|
+
end
|
1172
|
+
end
|
1173
|
+
|
1174
|
+
# A bundle of managed properties.
|
1175
|
+
class ManagedPropertyBundle
|
1176
|
+
include Google::Apis::Core::Hashable
|
1177
|
+
|
1178
|
+
# The list of managed properties.
|
1179
|
+
# Corresponds to the JSON property `managedProperty`
|
1180
|
+
# @return [Array<Google::Apis::AndroidenterpriseV1::ManagedProperty>]
|
1181
|
+
attr_accessor :managed_property
|
1182
|
+
|
1183
|
+
def initialize(**args)
|
1184
|
+
update!(**args)
|
1185
|
+
end
|
1186
|
+
|
1187
|
+
# Update properties of this object
|
1188
|
+
def update!(**args)
|
1189
|
+
@managed_property = args[:managed_property] if args.key?(:managed_property)
|
1190
|
+
end
|
1191
|
+
end
|
1192
|
+
|
1022
1193
|
# An event generated when new permissions are added to an app.
|
1023
1194
|
class NewPermissionsEvent
|
1024
1195
|
include Google::Apis::Core::Hashable
|
@@ -1287,7 +1458,9 @@ module Google
|
|
1287
1458
|
# @return [String]
|
1288
1459
|
attr_accessor :product_id
|
1289
1460
|
|
1290
|
-
# 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).
|
1291
1464
|
# Corresponds to the JSON property `productPricing`
|
1292
1465
|
# @return [String]
|
1293
1466
|
attr_accessor :product_pricing
|
@@ -1750,8 +1923,8 @@ module Google
|
|
1750
1923
|
|
1751
1924
|
# The ID of the store page to be used as the homepage. The homepage will be used
|
1752
1925
|
# as the first page shown in the Google Play for Work store.
|
1753
|
-
# If
|
1754
|
-
#
|
1926
|
+
# If a homepage has not been set, the Play store shown on devices will be empty.
|
1927
|
+
# Not specifying a homepage on a store layout effectively empties the store.
|
1755
1928
|
# If there exists at least one page, this field must be set to the ID of a valid
|
1756
1929
|
# page.
|
1757
1930
|
# Corresponds to the JSON property `homepageId`
|
@@ -1901,36 +2074,34 @@ module Google
|
|
1901
2074
|
# account may be specific to a device or to an individual user (who can then use
|
1902
2075
|
# the account across multiple devices). The account may provide access to Google
|
1903
2076
|
# Play for Work only, or to other Google services, depending on the identity
|
1904
|
-
# model
|
2077
|
+
# model:
|
1905
2078
|
# - Google managed domain identity model requires synchronization to Google
|
1906
2079
|
# account sources (via primaryEmail).
|
1907
|
-
# - Android for Work
|
2080
|
+
# - Android for Work Accounts identity model provides a dynamic means for
|
1908
2081
|
# enterprises to create user or device accounts as needed. These accounts
|
1909
2082
|
# provide access to Google Play for Work only.
|
1910
2083
|
class User
|
1911
2084
|
include Google::Apis::Core::Hashable
|
1912
2085
|
|
1913
|
-
#
|
1914
|
-
#
|
1915
|
-
#
|
1916
|
-
# individual with this identifier.
|
2086
|
+
# A unique identifier you create for this user, such as "user342" or "asset#
|
2087
|
+
# 44418". Do not use personally identifiable information (PII) for this property.
|
2088
|
+
# Must always be set for EMM-managed users. Not set for Google-managed users.
|
1917
2089
|
# Corresponds to the JSON property `accountIdentifier`
|
1918
2090
|
# @return [String]
|
1919
2091
|
attr_accessor :account_identifier
|
1920
2092
|
|
1921
|
-
# The type of account that this user represents. A
|
1922
|
-
#
|
1923
|
-
#
|
1924
|
-
#
|
1925
|
-
# userAccount" or a "deviceAccount".
|
2093
|
+
# The type of account that this user represents. A userAccount can be installed
|
2094
|
+
# on multiple devices, but a deviceAccount is specific to a single device. An
|
2095
|
+
# EMM-managed user (emmManaged) can be either type (userAccount, deviceAccount),
|
2096
|
+
# but a Google-managed user (googleManaged) is always a userAccount.
|
1926
2097
|
# Corresponds to the JSON property `accountType`
|
1927
2098
|
# @return [String]
|
1928
2099
|
attr_accessor :account_type
|
1929
2100
|
|
1930
|
-
# The
|
1931
|
-
#
|
1932
|
-
#
|
1933
|
-
#
|
2101
|
+
# The name that will appear in user interfaces. Setting this property is
|
2102
|
+
# optional when creating EMM-managed users. If you do set this property, use
|
2103
|
+
# something generic about the organization (such as "Example, Inc.") or your
|
2104
|
+
# name (as EMM). Not used for Google-managed user accounts.
|
1934
2105
|
# Corresponds to the JSON property `displayName`
|
1935
2106
|
# @return [String]
|
1936
2107
|
attr_accessor :display_name
|
@@ -1946,9 +2117,9 @@ module Google
|
|
1946
2117
|
# @return [String]
|
1947
2118
|
attr_accessor :kind
|
1948
2119
|
|
1949
|
-
# The entity that manages the user. With
|
1950
|
-
# truth is Google so EMMs have to make sure a Google
|
1951
|
-
# With
|
2120
|
+
# The entity that manages the user. With googleManaged users, the source of
|
2121
|
+
# truth is Google so EMMs have to make sure a Google Account exists for the user.
|
2122
|
+
# With emmManaged users, the EMM is in charge.
|
1952
2123
|
# Corresponds to the JSON property `managementType`
|
1953
2124
|
# @return [String]
|
1954
2125
|
attr_accessor :management_type
|
@@ -190,6 +190,36 @@ module Google
|
|
190
190
|
include Google::Apis::Core::JsonObjectSupport
|
191
191
|
end
|
192
192
|
|
193
|
+
class ManagedConfiguration
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
199
|
+
class ManagedConfigurationsForDeviceListResponse
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
205
|
+
class ManagedConfigurationsForUserListResponse
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
211
|
+
class ManagedProperty
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
217
|
+
class ManagedPropertyBundle
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
193
223
|
class NewPermissionsEvent
|
194
224
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
225
|
|
@@ -384,6 +414,8 @@ module Google
|
|
384
414
|
collection :entry, as: 'entry'
|
385
415
|
collection :entry_value, as: 'entryValue'
|
386
416
|
property :key, as: 'key'
|
417
|
+
collection :nested_restriction, as: 'nestedRestriction', class: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction, decorator: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction::Representation
|
418
|
+
|
387
419
|
property :restriction_type, as: 'restrictionType'
|
388
420
|
property :title, as: 'title'
|
389
421
|
end
|
@@ -609,6 +641,57 @@ module Google
|
|
609
641
|
end
|
610
642
|
end
|
611
643
|
|
644
|
+
class ManagedConfiguration
|
645
|
+
# @private
|
646
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
647
|
+
property :kind, as: 'kind'
|
648
|
+
collection :managed_property, as: 'managedProperty', class: Google::Apis::AndroidenterpriseV1::ManagedProperty, decorator: Google::Apis::AndroidenterpriseV1::ManagedProperty::Representation
|
649
|
+
|
650
|
+
property :product_id, as: 'productId'
|
651
|
+
end
|
652
|
+
end
|
653
|
+
|
654
|
+
class ManagedConfigurationsForDeviceListResponse
|
655
|
+
# @private
|
656
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
657
|
+
property :kind, as: 'kind'
|
658
|
+
collection :managed_configuration_for_device, as: 'managedConfigurationForDevice', class: Google::Apis::AndroidenterpriseV1::ManagedConfiguration, decorator: Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
659
|
+
|
660
|
+
end
|
661
|
+
end
|
662
|
+
|
663
|
+
class ManagedConfigurationsForUserListResponse
|
664
|
+
# @private
|
665
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
666
|
+
property :kind, as: 'kind'
|
667
|
+
collection :managed_configuration_for_user, as: 'managedConfigurationForUser', class: Google::Apis::AndroidenterpriseV1::ManagedConfiguration, decorator: Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
668
|
+
|
669
|
+
end
|
670
|
+
end
|
671
|
+
|
672
|
+
class ManagedProperty
|
673
|
+
# @private
|
674
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
675
|
+
property :key, as: 'key'
|
676
|
+
property :value_bool, as: 'valueBool'
|
677
|
+
property :value_bundle, as: 'valueBundle', class: Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle, decorator: Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle::Representation
|
678
|
+
|
679
|
+
collection :value_bundle_array, as: 'valueBundleArray', class: Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle, decorator: Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle::Representation
|
680
|
+
|
681
|
+
property :value_integer, as: 'valueInteger'
|
682
|
+
property :value_string, as: 'valueString'
|
683
|
+
collection :value_string_array, as: 'valueStringArray'
|
684
|
+
end
|
685
|
+
end
|
686
|
+
|
687
|
+
class ManagedPropertyBundle
|
688
|
+
# @private
|
689
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
690
|
+
collection :managed_property, as: 'managedProperty', class: Google::Apis::AndroidenterpriseV1::ManagedProperty, decorator: Google::Apis::AndroidenterpriseV1::ManagedProperty::Representation
|
691
|
+
|
692
|
+
end
|
693
|
+
end
|
694
|
+
|
612
695
|
class NewPermissionsEvent
|
613
696
|
# @private
|
614
697
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -906,6 +906,7 @@ module Google
|
|
906
906
|
# Once the service account is bound to the enterprise, it can be managed using
|
907
907
|
# the serviceAccountKeys resource.
|
908
908
|
# @param [String] enterprise_id
|
909
|
+
# The ID of the enterprise.
|
909
910
|
# @param [String] key_type
|
910
911
|
# The type of credential to return with the service account. Required.
|
911
912
|
# @param [String] fields
|
@@ -941,7 +942,8 @@ module Google
|
|
941
942
|
execute_or_queue_command(command, &block)
|
942
943
|
end
|
943
944
|
|
944
|
-
# Returns the store layout
|
945
|
+
# Returns the store layout for the enterprise. If the store layout has not been
|
946
|
+
# set, or if the store layout has no homepageId set, returns a NOT_FOUND error.
|
945
947
|
# @param [String] enterprise_id
|
946
948
|
# The ID of the enterprise.
|
947
949
|
# @param [String] fields
|
@@ -1178,7 +1180,7 @@ module Google
|
|
1178
1180
|
execute_or_queue_command(command, &block)
|
1179
1181
|
end
|
1180
1182
|
|
1181
|
-
# Sets the store layout
|
1183
|
+
# Sets the store layout for the enterprise.
|
1182
1184
|
# @param [String] enterprise_id
|
1183
1185
|
# The ID of the enterprise.
|
1184
1186
|
# @param [Google::Apis::AndroidenterpriseV1::StoreLayout] store_layout_object
|
@@ -1811,6 +1813,448 @@ module Google
|
|
1811
1813
|
execute_or_queue_command(command, &block)
|
1812
1814
|
end
|
1813
1815
|
|
1816
|
+
# Removes a per-device managed configuration for an app for the specified device.
|
1817
|
+
# @param [String] enterprise_id
|
1818
|
+
# The ID of the enterprise.
|
1819
|
+
# @param [String] user_id
|
1820
|
+
# The ID of the user.
|
1821
|
+
# @param [String] device_id
|
1822
|
+
# The Android ID of the device.
|
1823
|
+
# @param [String] managed_configuration_for_device_id
|
1824
|
+
# The ID of the managed configuration (a product ID), e.g. "app:com.google.
|
1825
|
+
# android.gm".
|
1826
|
+
# @param [String] fields
|
1827
|
+
# Selector specifying which fields to include in a partial response.
|
1828
|
+
# @param [String] quota_user
|
1829
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1830
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1831
|
+
# Overrides userIp if both are provided.
|
1832
|
+
# @param [String] user_ip
|
1833
|
+
# IP address of the site where the request originates. Use this if you want to
|
1834
|
+
# enforce per-user limits.
|
1835
|
+
# @param [Google::Apis::RequestOptions] options
|
1836
|
+
# Request-specific options
|
1837
|
+
#
|
1838
|
+
# @yield [result, err] Result & error if block supplied
|
1839
|
+
# @yieldparam result [NilClass] No result returned for this method
|
1840
|
+
# @yieldparam err [StandardError] error object if request failed
|
1841
|
+
#
|
1842
|
+
# @return [void]
|
1843
|
+
#
|
1844
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1845
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1846
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1847
|
+
def delete_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1848
|
+
command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
|
1849
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
1850
|
+
command.params['userId'] = user_id unless user_id.nil?
|
1851
|
+
command.params['deviceId'] = device_id unless device_id.nil?
|
1852
|
+
command.params['managedConfigurationForDeviceId'] = managed_configuration_for_device_id unless managed_configuration_for_device_id.nil?
|
1853
|
+
command.query['fields'] = fields unless fields.nil?
|
1854
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1855
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1856
|
+
execute_or_queue_command(command, &block)
|
1857
|
+
end
|
1858
|
+
|
1859
|
+
# Retrieves details of a per-device managed configuration.
|
1860
|
+
# @param [String] enterprise_id
|
1861
|
+
# The ID of the enterprise.
|
1862
|
+
# @param [String] user_id
|
1863
|
+
# The ID of the user.
|
1864
|
+
# @param [String] device_id
|
1865
|
+
# The Android ID of the device.
|
1866
|
+
# @param [String] managed_configuration_for_device_id
|
1867
|
+
# The ID of the managed configuration (a product ID), e.g. "app:com.google.
|
1868
|
+
# android.gm".
|
1869
|
+
# @param [String] fields
|
1870
|
+
# Selector specifying which fields to include in a partial response.
|
1871
|
+
# @param [String] quota_user
|
1872
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1873
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1874
|
+
# Overrides userIp if both are provided.
|
1875
|
+
# @param [String] user_ip
|
1876
|
+
# IP address of the site where the request originates. Use this if you want to
|
1877
|
+
# enforce per-user limits.
|
1878
|
+
# @param [Google::Apis::RequestOptions] options
|
1879
|
+
# Request-specific options
|
1880
|
+
#
|
1881
|
+
# @yield [result, err] Result & error if block supplied
|
1882
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
|
1883
|
+
# @yieldparam err [StandardError] error object if request failed
|
1884
|
+
#
|
1885
|
+
# @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
|
1886
|
+
#
|
1887
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1888
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1889
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1890
|
+
def get_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1891
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
|
1892
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
1893
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
|
1894
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
1895
|
+
command.params['userId'] = user_id unless user_id.nil?
|
1896
|
+
command.params['deviceId'] = device_id unless device_id.nil?
|
1897
|
+
command.params['managedConfigurationForDeviceId'] = managed_configuration_for_device_id unless managed_configuration_for_device_id.nil?
|
1898
|
+
command.query['fields'] = fields unless fields.nil?
|
1899
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1900
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1901
|
+
execute_or_queue_command(command, &block)
|
1902
|
+
end
|
1903
|
+
|
1904
|
+
# Lists all the per-device managed configurations for the specified device. Only
|
1905
|
+
# the ID is set.
|
1906
|
+
# @param [String] enterprise_id
|
1907
|
+
# The ID of the enterprise.
|
1908
|
+
# @param [String] user_id
|
1909
|
+
# The ID of the user.
|
1910
|
+
# @param [String] device_id
|
1911
|
+
# The Android ID of the device.
|
1912
|
+
# @param [String] fields
|
1913
|
+
# Selector specifying which fields to include in a partial response.
|
1914
|
+
# @param [String] quota_user
|
1915
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1916
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1917
|
+
# Overrides userIp if both are provided.
|
1918
|
+
# @param [String] user_ip
|
1919
|
+
# IP address of the site where the request originates. Use this if you want to
|
1920
|
+
# enforce per-user limits.
|
1921
|
+
# @param [Google::Apis::RequestOptions] options
|
1922
|
+
# Request-specific options
|
1923
|
+
#
|
1924
|
+
# @yield [result, err] Result & error if block supplied
|
1925
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForDeviceListResponse] parsed result object
|
1926
|
+
# @yieldparam err [StandardError] error object if request failed
|
1927
|
+
#
|
1928
|
+
# @return [Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForDeviceListResponse]
|
1929
|
+
#
|
1930
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1931
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1932
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1933
|
+
def list_managedconfigurationsfordevices(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1934
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice', options)
|
1935
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForDeviceListResponse::Representation
|
1936
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForDeviceListResponse
|
1937
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
1938
|
+
command.params['userId'] = user_id unless user_id.nil?
|
1939
|
+
command.params['deviceId'] = device_id unless device_id.nil?
|
1940
|
+
command.query['fields'] = fields unless fields.nil?
|
1941
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1942
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1943
|
+
execute_or_queue_command(command, &block)
|
1944
|
+
end
|
1945
|
+
|
1946
|
+
# Adds or updates a per-device managed configuration for an app for the
|
1947
|
+
# specified device. This method supports patch semantics.
|
1948
|
+
# @param [String] enterprise_id
|
1949
|
+
# The ID of the enterprise.
|
1950
|
+
# @param [String] user_id
|
1951
|
+
# The ID of the user.
|
1952
|
+
# @param [String] device_id
|
1953
|
+
# The Android ID of the device.
|
1954
|
+
# @param [String] managed_configuration_for_device_id
|
1955
|
+
# The ID of the managed configuration (a product ID), e.g. "app:com.google.
|
1956
|
+
# android.gm".
|
1957
|
+
# @param [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] managed_configuration_object
|
1958
|
+
# @param [String] fields
|
1959
|
+
# Selector specifying which fields to include in a partial response.
|
1960
|
+
# @param [String] quota_user
|
1961
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1962
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1963
|
+
# Overrides userIp if both are provided.
|
1964
|
+
# @param [String] user_ip
|
1965
|
+
# IP address of the site where the request originates. Use this if you want to
|
1966
|
+
# enforce per-user limits.
|
1967
|
+
# @param [Google::Apis::RequestOptions] options
|
1968
|
+
# Request-specific options
|
1969
|
+
#
|
1970
|
+
# @yield [result, err] Result & error if block supplied
|
1971
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
|
1972
|
+
# @yieldparam err [StandardError] error object if request failed
|
1973
|
+
#
|
1974
|
+
# @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
|
1975
|
+
#
|
1976
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1977
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1978
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1979
|
+
def patch_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, managed_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1980
|
+
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
|
1981
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
1982
|
+
command.request_object = managed_configuration_object
|
1983
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
1984
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
|
1985
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
1986
|
+
command.params['userId'] = user_id unless user_id.nil?
|
1987
|
+
command.params['deviceId'] = device_id unless device_id.nil?
|
1988
|
+
command.params['managedConfigurationForDeviceId'] = managed_configuration_for_device_id unless managed_configuration_for_device_id.nil?
|
1989
|
+
command.query['fields'] = fields unless fields.nil?
|
1990
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1991
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1992
|
+
execute_or_queue_command(command, &block)
|
1993
|
+
end
|
1994
|
+
|
1995
|
+
# Adds or updates a per-device managed configuration for an app for the
|
1996
|
+
# specified device.
|
1997
|
+
# @param [String] enterprise_id
|
1998
|
+
# The ID of the enterprise.
|
1999
|
+
# @param [String] user_id
|
2000
|
+
# The ID of the user.
|
2001
|
+
# @param [String] device_id
|
2002
|
+
# The Android ID of the device.
|
2003
|
+
# @param [String] managed_configuration_for_device_id
|
2004
|
+
# The ID of the managed configuration (a product ID), e.g. "app:com.google.
|
2005
|
+
# android.gm".
|
2006
|
+
# @param [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] managed_configuration_object
|
2007
|
+
# @param [String] fields
|
2008
|
+
# Selector specifying which fields to include in a partial response.
|
2009
|
+
# @param [String] quota_user
|
2010
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2011
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2012
|
+
# Overrides userIp if both are provided.
|
2013
|
+
# @param [String] user_ip
|
2014
|
+
# IP address of the site where the request originates. Use this if you want to
|
2015
|
+
# enforce per-user limits.
|
2016
|
+
# @param [Google::Apis::RequestOptions] options
|
2017
|
+
# Request-specific options
|
2018
|
+
#
|
2019
|
+
# @yield [result, err] Result & error if block supplied
|
2020
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
|
2021
|
+
# @yieldparam err [StandardError] error object if request failed
|
2022
|
+
#
|
2023
|
+
# @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
|
2024
|
+
#
|
2025
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2026
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2027
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2028
|
+
def update_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, managed_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2029
|
+
command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
|
2030
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
2031
|
+
command.request_object = managed_configuration_object
|
2032
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
2033
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
|
2034
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
2035
|
+
command.params['userId'] = user_id unless user_id.nil?
|
2036
|
+
command.params['deviceId'] = device_id unless device_id.nil?
|
2037
|
+
command.params['managedConfigurationForDeviceId'] = managed_configuration_for_device_id unless managed_configuration_for_device_id.nil?
|
2038
|
+
command.query['fields'] = fields unless fields.nil?
|
2039
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2040
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2041
|
+
execute_or_queue_command(command, &block)
|
2042
|
+
end
|
2043
|
+
|
2044
|
+
# Removes a per-user managed configuration for an app for the specified user.
|
2045
|
+
# @param [String] enterprise_id
|
2046
|
+
# The ID of the enterprise.
|
2047
|
+
# @param [String] user_id
|
2048
|
+
# The ID of the user.
|
2049
|
+
# @param [String] managed_configuration_for_user_id
|
2050
|
+
# The ID of the managed configuration (a product ID), e.g. "app:com.google.
|
2051
|
+
# android.gm".
|
2052
|
+
# @param [String] fields
|
2053
|
+
# Selector specifying which fields to include in a partial response.
|
2054
|
+
# @param [String] quota_user
|
2055
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2056
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2057
|
+
# Overrides userIp if both are provided.
|
2058
|
+
# @param [String] user_ip
|
2059
|
+
# IP address of the site where the request originates. Use this if you want to
|
2060
|
+
# enforce per-user limits.
|
2061
|
+
# @param [Google::Apis::RequestOptions] options
|
2062
|
+
# Request-specific options
|
2063
|
+
#
|
2064
|
+
# @yield [result, err] Result & error if block supplied
|
2065
|
+
# @yieldparam result [NilClass] No result returned for this method
|
2066
|
+
# @yieldparam err [StandardError] error object if request failed
|
2067
|
+
#
|
2068
|
+
# @return [void]
|
2069
|
+
#
|
2070
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2071
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2072
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2073
|
+
def delete_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2074
|
+
command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
|
2075
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
2076
|
+
command.params['userId'] = user_id unless user_id.nil?
|
2077
|
+
command.params['managedConfigurationForUserId'] = managed_configuration_for_user_id unless managed_configuration_for_user_id.nil?
|
2078
|
+
command.query['fields'] = fields unless fields.nil?
|
2079
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2080
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2081
|
+
execute_or_queue_command(command, &block)
|
2082
|
+
end
|
2083
|
+
|
2084
|
+
# Retrieves details of a per-user managed configuration for an app for the
|
2085
|
+
# specified user.
|
2086
|
+
# @param [String] enterprise_id
|
2087
|
+
# The ID of the enterprise.
|
2088
|
+
# @param [String] user_id
|
2089
|
+
# The ID of the user.
|
2090
|
+
# @param [String] managed_configuration_for_user_id
|
2091
|
+
# The ID of the managed configuration (a product ID), e.g. "app:com.google.
|
2092
|
+
# android.gm".
|
2093
|
+
# @param [String] fields
|
2094
|
+
# Selector specifying which fields to include in a partial response.
|
2095
|
+
# @param [String] quota_user
|
2096
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2097
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2098
|
+
# Overrides userIp if both are provided.
|
2099
|
+
# @param [String] user_ip
|
2100
|
+
# IP address of the site where the request originates. Use this if you want to
|
2101
|
+
# enforce per-user limits.
|
2102
|
+
# @param [Google::Apis::RequestOptions] options
|
2103
|
+
# Request-specific options
|
2104
|
+
#
|
2105
|
+
# @yield [result, err] Result & error if block supplied
|
2106
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
|
2107
|
+
# @yieldparam err [StandardError] error object if request failed
|
2108
|
+
#
|
2109
|
+
# @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
|
2110
|
+
#
|
2111
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2112
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2113
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2114
|
+
def get_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2115
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
|
2116
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
2117
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
|
2118
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
2119
|
+
command.params['userId'] = user_id unless user_id.nil?
|
2120
|
+
command.params['managedConfigurationForUserId'] = managed_configuration_for_user_id unless managed_configuration_for_user_id.nil?
|
2121
|
+
command.query['fields'] = fields unless fields.nil?
|
2122
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2123
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2124
|
+
execute_or_queue_command(command, &block)
|
2125
|
+
end
|
2126
|
+
|
2127
|
+
# Lists all the per-user managed configurations for the specified user. Only the
|
2128
|
+
# ID is set.
|
2129
|
+
# @param [String] enterprise_id
|
2130
|
+
# The ID of the enterprise.
|
2131
|
+
# @param [String] user_id
|
2132
|
+
# The ID of the user.
|
2133
|
+
# @param [String] fields
|
2134
|
+
# Selector specifying which fields to include in a partial response.
|
2135
|
+
# @param [String] quota_user
|
2136
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2137
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2138
|
+
# Overrides userIp if both are provided.
|
2139
|
+
# @param [String] user_ip
|
2140
|
+
# IP address of the site where the request originates. Use this if you want to
|
2141
|
+
# enforce per-user limits.
|
2142
|
+
# @param [Google::Apis::RequestOptions] options
|
2143
|
+
# Request-specific options
|
2144
|
+
#
|
2145
|
+
# @yield [result, err] Result & error if block supplied
|
2146
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForUserListResponse] parsed result object
|
2147
|
+
# @yieldparam err [StandardError] error object if request failed
|
2148
|
+
#
|
2149
|
+
# @return [Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForUserListResponse]
|
2150
|
+
#
|
2151
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2152
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2153
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2154
|
+
def list_managedconfigurationsforusers(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2155
|
+
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser', options)
|
2156
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForUserListResponse::Representation
|
2157
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForUserListResponse
|
2158
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
2159
|
+
command.params['userId'] = user_id unless user_id.nil?
|
2160
|
+
command.query['fields'] = fields unless fields.nil?
|
2161
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2162
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2163
|
+
execute_or_queue_command(command, &block)
|
2164
|
+
end
|
2165
|
+
|
2166
|
+
# Adds or updates a per-user managed configuration for an app for the specified
|
2167
|
+
# user. This method supports patch semantics.
|
2168
|
+
# @param [String] enterprise_id
|
2169
|
+
# The ID of the enterprise.
|
2170
|
+
# @param [String] user_id
|
2171
|
+
# The ID of the user.
|
2172
|
+
# @param [String] managed_configuration_for_user_id
|
2173
|
+
# The ID of the managed configuration (a product ID), e.g. "app:com.google.
|
2174
|
+
# android.gm".
|
2175
|
+
# @param [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] managed_configuration_object
|
2176
|
+
# @param [String] fields
|
2177
|
+
# Selector specifying which fields to include in a partial response.
|
2178
|
+
# @param [String] quota_user
|
2179
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2180
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2181
|
+
# Overrides userIp if both are provided.
|
2182
|
+
# @param [String] user_ip
|
2183
|
+
# IP address of the site where the request originates. Use this if you want to
|
2184
|
+
# enforce per-user limits.
|
2185
|
+
# @param [Google::Apis::RequestOptions] options
|
2186
|
+
# Request-specific options
|
2187
|
+
#
|
2188
|
+
# @yield [result, err] Result & error if block supplied
|
2189
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
|
2190
|
+
# @yieldparam err [StandardError] error object if request failed
|
2191
|
+
#
|
2192
|
+
# @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
|
2193
|
+
#
|
2194
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2195
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2196
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2197
|
+
def patch_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, managed_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2198
|
+
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
|
2199
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
2200
|
+
command.request_object = managed_configuration_object
|
2201
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
2202
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
|
2203
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
2204
|
+
command.params['userId'] = user_id unless user_id.nil?
|
2205
|
+
command.params['managedConfigurationForUserId'] = managed_configuration_for_user_id unless managed_configuration_for_user_id.nil?
|
2206
|
+
command.query['fields'] = fields unless fields.nil?
|
2207
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2208
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2209
|
+
execute_or_queue_command(command, &block)
|
2210
|
+
end
|
2211
|
+
|
2212
|
+
# Adds or updates a per-user managed configuration for an app for the specified
|
2213
|
+
# user.
|
2214
|
+
# @param [String] enterprise_id
|
2215
|
+
# The ID of the enterprise.
|
2216
|
+
# @param [String] user_id
|
2217
|
+
# The ID of the user.
|
2218
|
+
# @param [String] managed_configuration_for_user_id
|
2219
|
+
# The ID of the managed configuration (a product ID), e.g. "app:com.google.
|
2220
|
+
# android.gm".
|
2221
|
+
# @param [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] managed_configuration_object
|
2222
|
+
# @param [String] fields
|
2223
|
+
# Selector specifying which fields to include in a partial response.
|
2224
|
+
# @param [String] quota_user
|
2225
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2226
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2227
|
+
# Overrides userIp if both are provided.
|
2228
|
+
# @param [String] user_ip
|
2229
|
+
# IP address of the site where the request originates. Use this if you want to
|
2230
|
+
# enforce per-user limits.
|
2231
|
+
# @param [Google::Apis::RequestOptions] options
|
2232
|
+
# Request-specific options
|
2233
|
+
#
|
2234
|
+
# @yield [result, err] Result & error if block supplied
|
2235
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
|
2236
|
+
# @yieldparam err [StandardError] error object if request failed
|
2237
|
+
#
|
2238
|
+
# @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
|
2239
|
+
#
|
2240
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2241
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2242
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2243
|
+
def update_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, managed_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2244
|
+
command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
|
2245
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
2246
|
+
command.request_object = managed_configuration_object
|
2247
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
2248
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
|
2249
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
2250
|
+
command.params['userId'] = user_id unless user_id.nil?
|
2251
|
+
command.params['managedConfigurationForUserId'] = managed_configuration_for_user_id unless managed_configuration_for_user_id.nil?
|
2252
|
+
command.query['fields'] = fields unless fields.nil?
|
2253
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2254
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2255
|
+
execute_or_queue_command(command, &block)
|
2256
|
+
end
|
2257
|
+
|
1814
2258
|
# Retrieves details of an Android app permission for display to an enterprise
|
1815
2259
|
# admin.
|
1816
2260
|
# @param [String] permission_id
|
@@ -1983,9 +2427,12 @@ module Google
|
|
1983
2427
|
execute_or_queue_command(command, &block)
|
1984
2428
|
end
|
1985
2429
|
|
1986
|
-
# Retrieves the schema
|
1987
|
-
# All products have a schema, but this may be empty if no
|
1988
|
-
# defined.
|
2430
|
+
# Retrieves the schema that defines the configurable properties for this product.
|
2431
|
+
# All products have a schema, but this schema may be empty if no managed
|
2432
|
+
# configurations have been defined. This schema can be used to populate a UI
|
2433
|
+
# that allows an administrator to configure the product. To apply a managed
|
2434
|
+
# configuration based on the schema obtained using this API, see Managed
|
2435
|
+
# Configurations through Play.
|
1989
2436
|
# @param [String] enterprise_id
|
1990
2437
|
# The ID of the enterprise.
|
1991
2438
|
# @param [String] product_id
|
@@ -2064,7 +2511,8 @@ module Google
|
|
2064
2511
|
execute_or_queue_command(command, &block)
|
2065
2512
|
end
|
2066
2513
|
|
2067
|
-
# Finds approved products that match a query
|
2514
|
+
# Finds approved products that match a query, or all approved products if there
|
2515
|
+
# is no query.
|
2068
2516
|
# @param [String] enterprise_id
|
2069
2517
|
# The ID of the enterprise.
|
2070
2518
|
# @param [Boolean] approved
|
@@ -2080,7 +2528,8 @@ module Google
|
|
2080
2528
|
# retrievable within a single response.
|
2081
2529
|
# @param [String] query
|
2082
2530
|
# The search query as typed in the Google Play Store search box. If omitted, all
|
2083
|
-
# approved apps will be returned (using the pagination parameters)
|
2531
|
+
# approved apps will be returned (using the pagination parameters), including
|
2532
|
+
# apps that are not available in the store (e.g. unpublished apps).
|
2084
2533
|
# @param [String] token
|
2085
2534
|
# A pagination token is contained in a requests response when there are more
|
2086
2535
|
# products. The token can be used in a subsequent request to obtain more
|
@@ -2994,9 +3443,8 @@ module Google
|
|
2994
3443
|
end
|
2995
3444
|
|
2996
3445
|
# Creates a new EMM-managed user.
|
2997
|
-
# The
|
2998
|
-
#
|
2999
|
-
# displayName fields must be provided.
|
3446
|
+
# The Users resource passed in the body of the request should include an
|
3447
|
+
# accountIdentifier and an accountType.
|
3000
3448
|
# @param [String] enterprise_id
|
3001
3449
|
# The ID of the enterprise.
|
3002
3450
|
# @param [Google::Apis::AndroidenterpriseV1::User] user_object
|
@@ -3034,9 +3482,9 @@ module Google
|
|
3034
3482
|
execute_or_queue_command(command, &block)
|
3035
3483
|
end
|
3036
3484
|
|
3037
|
-
# Looks up a user by
|
3038
|
-
#
|
3039
|
-
#
|
3485
|
+
# Looks up a user by primary email address. This is only supported for Google-
|
3486
|
+
# managed users. Lookup of the id is not needed for EMM-managed users because
|
3487
|
+
# the id is already returned in the result of the Users.insert call.
|
3040
3488
|
# @param [String] enterprise_id
|
3041
3489
|
# The ID of the enterprise.
|
3042
3490
|
# @param [String] email
|
@@ -3075,10 +3523,10 @@ module Google
|
|
3075
3523
|
end
|
3076
3524
|
|
3077
3525
|
# Updates the details of an EMM-managed user.
|
3078
|
-
#
|
3079
|
-
# in the request body. Only the displayName
|
3080
|
-
# must either be unset or have the currently
|
3081
|
-
# patch semantics.
|
3526
|
+
# Can be used with EMM-managed users only (not Google managed users). Pass the
|
3527
|
+
# new details in the Users resource in the request body. Only the displayName
|
3528
|
+
# field can be changed. Other fields must either be unset or have the currently
|
3529
|
+
# active value. This method supports patch semantics.
|
3082
3530
|
# @param [String] enterprise_id
|
3083
3531
|
# The ID of the enterprise.
|
3084
3532
|
# @param [String] user_id
|
@@ -3197,9 +3645,10 @@ module Google
|
|
3197
3645
|
end
|
3198
3646
|
|
3199
3647
|
# Updates the details of an EMM-managed user.
|
3200
|
-
#
|
3201
|
-
# in the request body. Only the displayName
|
3202
|
-
# must either be unset or have the currently
|
3648
|
+
# Can be used with EMM-managed users only (not Google managed users). Pass the
|
3649
|
+
# new details in the Users resource in the request body. Only the displayName
|
3650
|
+
# field can be changed. Other fields must either be unset or have the currently
|
3651
|
+
# active value.
|
3203
3652
|
# @param [String] enterprise_id
|
3204
3653
|
# The ID of the enterprise.
|
3205
3654
|
# @param [String] user_id
|