| Index: generated/googleapis/lib/androidenterprise/v1.dart
|
| diff --git a/generated/googleapis/lib/androidenterprise/v1.dart b/generated/googleapis/lib/androidenterprise/v1.dart
|
| index fae7cb6100530eb2867fe77f899574536814c97f..0bf7b437b75c8a0902bfa63b975d85da4aa905da 100644
|
| --- a/generated/googleapis/lib/androidenterprise/v1.dart
|
| +++ b/generated/googleapis/lib/androidenterprise/v1.dart
|
| @@ -9,65 +9,76 @@ import 'dart:convert' as convert;
|
| import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
|
| import 'package:http/http.dart' as http;
|
|
|
| -export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
|
| - ApiRequestError, DetailedApiRequestError;
|
| +export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
|
| + show ApiRequestError, DetailedApiRequestError;
|
|
|
| const core.String USER_AGENT = 'dart-api-client androidenterprise/v1';
|
|
|
| -/** Manages the deployment of apps to Android for Work users. */
|
| +/// Manages the deployment of apps to Android for Work users.
|
| class AndroidenterpriseApi {
|
| - /** Manage corporate Android devices */
|
| - static const AndroidenterpriseScope = "https://www.googleapis.com/auth/androidenterprise";
|
| -
|
| + /// Manage corporate Android devices
|
| + static const AndroidenterpriseScope =
|
| + "https://www.googleapis.com/auth/androidenterprise";
|
|
|
| final commons.ApiRequester _requester;
|
|
|
| DevicesResourceApi get devices => new DevicesResourceApi(_requester);
|
| - EnterprisesResourceApi get enterprises => new EnterprisesResourceApi(_requester);
|
| - EntitlementsResourceApi get entitlements => new EntitlementsResourceApi(_requester);
|
| - GrouplicensesResourceApi get grouplicenses => new GrouplicensesResourceApi(_requester);
|
| - GrouplicenseusersResourceApi get grouplicenseusers => new GrouplicenseusersResourceApi(_requester);
|
| + EnterprisesResourceApi get enterprises =>
|
| + new EnterprisesResourceApi(_requester);
|
| + EntitlementsResourceApi get entitlements =>
|
| + new EntitlementsResourceApi(_requester);
|
| + GrouplicensesResourceApi get grouplicenses =>
|
| + new GrouplicensesResourceApi(_requester);
|
| + GrouplicenseusersResourceApi get grouplicenseusers =>
|
| + new GrouplicenseusersResourceApi(_requester);
|
| InstallsResourceApi get installs => new InstallsResourceApi(_requester);
|
| - ManagedconfigurationsfordeviceResourceApi get managedconfigurationsfordevice => new ManagedconfigurationsfordeviceResourceApi(_requester);
|
| - ManagedconfigurationsforuserResourceApi get managedconfigurationsforuser => new ManagedconfigurationsforuserResourceApi(_requester);
|
| - PermissionsResourceApi get permissions => new PermissionsResourceApi(_requester);
|
| + ManagedconfigurationsfordeviceResourceApi
|
| + get managedconfigurationsfordevice =>
|
| + new ManagedconfigurationsfordeviceResourceApi(_requester);
|
| + ManagedconfigurationsforuserResourceApi get managedconfigurationsforuser =>
|
| + new ManagedconfigurationsforuserResourceApi(_requester);
|
| + PermissionsResourceApi get permissions =>
|
| + new PermissionsResourceApi(_requester);
|
| ProductsResourceApi get products => new ProductsResourceApi(_requester);
|
| - ServiceaccountkeysResourceApi get serviceaccountkeys => new ServiceaccountkeysResourceApi(_requester);
|
| - StorelayoutclustersResourceApi get storelayoutclusters => new StorelayoutclustersResourceApi(_requester);
|
| - StorelayoutpagesResourceApi get storelayoutpages => new StorelayoutpagesResourceApi(_requester);
|
| + ServiceaccountkeysResourceApi get serviceaccountkeys =>
|
| + new ServiceaccountkeysResourceApi(_requester);
|
| + StorelayoutclustersResourceApi get storelayoutclusters =>
|
| + new StorelayoutclustersResourceApi(_requester);
|
| + StorelayoutpagesResourceApi get storelayoutpages =>
|
| + new StorelayoutpagesResourceApi(_requester);
|
| UsersResourceApi get users => new UsersResourceApi(_requester);
|
|
|
| - AndroidenterpriseApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "androidenterprise/v1/"}) :
|
| - _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
|
| + AndroidenterpriseApi(http.Client client,
|
| + {core.String rootUrl: "https://www.googleapis.com/",
|
| + core.String servicePath: "androidenterprise/v1/"})
|
| + : _requester =
|
| + new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
|
| }
|
|
|
| -
|
| class DevicesResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - DevicesResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Retrieves the details of a device.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [deviceId] - The ID of the device.
|
| - *
|
| - * Completes with a [Device].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Device> get(core.String enterpriseId, core.String userId, core.String deviceId) {
|
| + DevicesResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Retrieves the details of a device.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [deviceId] - The ID of the device.
|
| + ///
|
| + /// Completes with a [Device].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Device> get(
|
| + core.String enterpriseId, core.String userId, core.String deviceId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -85,42 +96,45 @@ class DevicesResourceApi {
|
| throw new core.ArgumentError("Parameter deviceId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escaper.ecapeVariable('$deviceId');
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/devices/' +
|
| + commons.Escaper.ecapeVariable('$deviceId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Device.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Retrieves whether a device's access to Google services is enabled or
|
| - * disabled. The device state takes effect only if enforcing EMM policies on
|
| - * Android devices is enabled in the Google Admin Console. Otherwise, the
|
| - * device state is ignored and all devices are allowed access to Google
|
| - * services. This is only supported for Google-managed users.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [deviceId] - The ID of the device.
|
| - *
|
| - * Completes with a [DeviceState].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<DeviceState> getState(core.String enterpriseId, core.String userId, core.String deviceId) {
|
| + /// Retrieves whether a device's access to Google services is enabled or
|
| + /// disabled. The device state takes effect only if enforcing EMM policies on
|
| + /// Android devices is enabled in the Google Admin Console. Otherwise, the
|
| + /// device state is ignored and all devices are allowed access to Google
|
| + /// services. This is only supported for Google-managed users.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [deviceId] - The ID of the device.
|
| + ///
|
| + /// Completes with a [DeviceState].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<DeviceState> getState(
|
| + core.String enterpriseId, core.String userId, core.String deviceId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -138,36 +152,40 @@ class DevicesResourceApi {
|
| throw new core.ArgumentError("Parameter deviceId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escaper.ecapeVariable('$deviceId') + '/state';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/devices/' +
|
| + commons.Escaper.ecapeVariable('$deviceId') +
|
| + '/state';
|
| +
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new DeviceState.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Retrieves the IDs of all of a user's devices.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * Completes with a [DevicesListResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<DevicesListResponse> list(core.String enterpriseId, core.String userId) {
|
| + /// Retrieves the IDs of all of a user's devices.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// Completes with a [DevicesListResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<DevicesListResponse> list(
|
| + core.String enterpriseId, core.String userId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -182,44 +200,46 @@ class DevicesResourceApi {
|
| throw new core.ArgumentError("Parameter userId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/devices';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/devices';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new DevicesListResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Sets whether a device's access to Google services is enabled or disabled.
|
| - * The device state takes effect only if enforcing EMM policies on Android
|
| - * devices is enabled in the Google Admin Console. Otherwise, the device state
|
| - * is ignored and all devices are allowed access to Google services. This is
|
| - * only supported for Google-managed users.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [deviceId] - The ID of the device.
|
| - *
|
| - * Completes with a [DeviceState].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<DeviceState> setState(DeviceState request, core.String enterpriseId, core.String userId, core.String deviceId) {
|
| + /// Sets whether a device's access to Google services is enabled or disabled.
|
| + /// The device state takes effect only if enforcing EMM policies on Android
|
| + /// devices is enabled in the Google Admin Console. Otherwise, the device
|
| + /// state is ignored and all devices are allowed access to Google services.
|
| + /// This is only supported for Google-managed users.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [deviceId] - The ID of the device.
|
| + ///
|
| + /// Completes with a [DeviceState].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<DeviceState> setState(DeviceState request,
|
| + core.String enterpriseId, core.String userId, core.String deviceId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -240,43 +260,43 @@ class DevicesResourceApi {
|
| throw new core.ArgumentError("Parameter deviceId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escaper.ecapeVariable('$deviceId') + '/state';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/devices/' +
|
| + commons.Escaper.ecapeVariable('$deviceId') +
|
| + '/state';
|
| +
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new DeviceState.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class EnterprisesResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - EnterprisesResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Acknowledges notifications that were received from
|
| - * Enterprises.PullNotificationSet to prevent subsequent calls from returning
|
| - * the same notifications.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [notificationSetId] - The notification set ID as returned by
|
| - * Enterprises.PullNotificationSet. This must be provided.
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + EnterprisesResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Acknowledges notifications that were received from
|
| + /// Enterprises.PullNotificationSet to prevent subsequent calls from
|
| + /// returning the same notifications.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [notificationSetId] - The notification set ID as returned by
|
| + /// Enterprises.PullNotificationSet. This must be provided.
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future acknowledgeNotificationSet({core.String notificationSetId}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -293,37 +313,35 @@ class EnterprisesResourceApi {
|
|
|
| _url = 'enterprises/acknowledgeNotificationSet';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
|
|
| - /**
|
| - * Completes the signup flow, by specifying the Completion token and
|
| - * Enterprise token. This request must not be called multiple times for a
|
| - * given Enterprise Token.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [completionToken] - The Completion token initially returned by
|
| - * GenerateSignupUrl.
|
| - *
|
| - * [enterpriseToken] - The Enterprise token appended to the Callback URL.
|
| - *
|
| - * Completes with a [Enterprise].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Enterprise> completeSignup({core.String completionToken, core.String enterpriseToken}) {
|
| + /// Completes the signup flow, by specifying the Completion token and
|
| + /// Enterprise token. This request must not be called multiple times for a
|
| + /// given Enterprise Token.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [completionToken] - The Completion token initially returned by
|
| + /// GenerateSignupUrl.
|
| + ///
|
| + /// [enterpriseToken] - The Enterprise token appended to the Callback URL.
|
| + ///
|
| + /// Completes with a [Enterprise].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Enterprise> completeSignup(
|
| + {core.String completionToken, core.String enterpriseToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -340,37 +358,35 @@ class EnterprisesResourceApi {
|
|
|
| _url = 'enterprises/completeSignup';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Enterprise.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Returns a unique token to access an embeddable UI. To generate a web UI,
|
| - * pass the generated token into the managed Google Play javascript API. Each
|
| - * token may only be used to start one UI session. See the javascript API
|
| - * documentation for further information.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * Completes with a [AdministratorWebToken].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<AdministratorWebToken> createWebToken(AdministratorWebTokenSpec request, core.String enterpriseId) {
|
| + /// Returns a unique token to access an embeddable UI. To generate a web UI,
|
| + /// pass the generated token into the managed Google Play javascript API.
|
| + /// Each token may only be used to start one UI session. See the javascript
|
| + /// API documentation for further information.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// Completes with a [AdministratorWebToken].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<AdministratorWebToken> createWebToken(
|
| + AdministratorWebTokenSpec request, core.String enterpriseId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -385,33 +401,33 @@ class EnterprisesResourceApi {
|
| throw new core.ArgumentError("Parameter enterpriseId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/createWebToken';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/createWebToken';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new AdministratorWebToken.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Deletes the binding between the EMM and enterprise. This is now deprecated.
|
| - * Use this method only to unenroll customers that were previously enrolled
|
| - * with the insert call, then enroll them again with the enroll call.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Deletes the binding between the EMM and enterprise. This is now
|
| + /// deprecated. Use this method only to unenroll customers that were
|
| + /// previously enrolled with the insert call, then enroll them again with the
|
| + /// enroll call.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future delete(core.String enterpriseId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -428,33 +444,30 @@ class EnterprisesResourceApi {
|
|
|
| _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
|
|
| - /**
|
| - * Enrolls an enterprise with the calling EMM.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [token] - The token provided by the enterprise to register the EMM.
|
| - *
|
| - * Completes with a [Enterprise].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Enrolls an enterprise with the calling EMM.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [token] - The token provided by the enterprise to register the EMM.
|
| + ///
|
| + /// Completes with a [Enterprise].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<Enterprise> enroll(Enterprise request, core.String token) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -473,39 +486,36 @@ class EnterprisesResourceApi {
|
|
|
| _url = 'enterprises/enroll';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Enterprise.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Generates a sign-up URL.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [callbackUrl] - The callback URL to which the Admin will be redirected
|
| - * after successfully creating an enterprise. Before redirecting there the
|
| - * system will add a single query parameter to this URL named
|
| - * "enterpriseToken" which will contain an opaque token to be used for the
|
| - * CompleteSignup request.
|
| - * Beware that this means that the URL will be parsed, the parameter added and
|
| - * then a new URL formatted, i.e. there may be some minor formatting changes
|
| - * and, more importantly, the URL must be well-formed so that it can be
|
| - * parsed.
|
| - *
|
| - * Completes with a [SignupInfo].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Generates a sign-up URL.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [callbackUrl] - The callback URL to which the Admin will be redirected
|
| + /// after successfully creating an enterprise. Before redirecting there the
|
| + /// system will add a single query parameter to this URL named
|
| + /// "enterpriseToken" which will contain an opaque token to be used for the
|
| + /// CompleteSignup request.
|
| + /// Beware that this means that the URL will be parsed, the parameter added
|
| + /// and then a new URL formatted, i.e. there may be some minor formatting
|
| + /// changes and, more importantly, the URL must be well-formed so that it can
|
| + /// be parsed.
|
| + ///
|
| + /// Completes with a [SignupInfo].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<SignupInfo> generateSignupUrl({core.String callbackUrl}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -520,31 +530,28 @@ class EnterprisesResourceApi {
|
|
|
| _url = 'enterprises/signupUrl';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new SignupInfo.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Retrieves the name and domain of an enterprise.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * Completes with a [Enterprise].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Retrieves the name and domain of an enterprise.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// Completes with a [Enterprise].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<Enterprise> get(core.String enterpriseId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -559,32 +566,30 @@ class EnterprisesResourceApi {
|
|
|
| _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Enterprise.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Returns the Android Device Policy config resource.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * Completes with a [AndroidDevicePolicyConfig].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<AndroidDevicePolicyConfig> getAndroidDevicePolicyConfig(core.String enterpriseId) {
|
| + /// Returns the Android Device Policy config resource.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// Completes with a [AndroidDevicePolicyConfig].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<AndroidDevicePolicyConfig> getAndroidDevicePolicyConfig(
|
| + core.String enterpriseId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -596,53 +601,55 @@ class EnterprisesResourceApi {
|
| throw new core.ArgumentError("Parameter enterpriseId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/androidDevicePolicyConfig';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new AndroidDevicePolicyConfig.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Returns a service account and credentials. The service account can be bound
|
| - * to the enterprise by calling setAccount. The service account is unique to
|
| - * this enterprise and EMM, and will be deleted if the enterprise is unbound.
|
| - * The credentials contain private key data and are not stored server-side.
|
| - *
|
| - * This method can only be called after calling Enterprises.Enroll or
|
| - * Enterprises.CompleteSignup, and before Enterprises.SetAccount; at other
|
| - * times it will return an error.
|
| - *
|
| - * Subsequent calls after the first will generate a new, unique set of
|
| - * credentials, and invalidate the previously generated credentials.
|
| - *
|
| - * Once the service account is bound to the enterprise, it can be managed
|
| - * using the serviceAccountKeys resource.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [keyType] - The type of credential to return with the service account.
|
| - * Required.
|
| - * Possible string values are:
|
| - * - "googleCredentials"
|
| - * - "pkcs12"
|
| - *
|
| - * Completes with a [ServiceAccount].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ServiceAccount> getServiceAccount(core.String enterpriseId, {core.String keyType}) {
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/androidDevicePolicyConfig';
|
| +
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new AndroidDevicePolicyConfig.fromJson(data));
|
| + }
|
| +
|
| + /// Returns a service account and credentials. The service account can be
|
| + /// bound to the enterprise by calling setAccount. The service account is
|
| + /// unique to this enterprise and EMM, and will be deleted if the enterprise
|
| + /// is unbound. The credentials contain private key data and are not stored
|
| + /// server-side.
|
| + ///
|
| + /// This method can only be called after calling Enterprises.Enroll or
|
| + /// Enterprises.CompleteSignup, and before Enterprises.SetAccount; at other
|
| + /// times it will return an error.
|
| + ///
|
| + /// Subsequent calls after the first will generate a new, unique set of
|
| + /// credentials, and invalidate the previously generated credentials.
|
| + ///
|
| + /// Once the service account is bound to the enterprise, it can be managed
|
| + /// using the serviceAccountKeys resource.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [keyType] - The type of credential to return with the service account.
|
| + /// Required.
|
| + /// Possible string values are:
|
| + /// - "googleCredentials"
|
| + /// - "pkcs12"
|
| + ///
|
| + /// Completes with a [ServiceAccount].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ServiceAccount> getServiceAccount(core.String enterpriseId,
|
| + {core.String keyType}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -657,34 +664,33 @@ class EnterprisesResourceApi {
|
| _queryParams["keyType"] = [keyType];
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/serviceAccount';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/serviceAccount';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ServiceAccount.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Returns the store layout for the enterprise. If the store layout has not
|
| - * been set, returns "basic" as the store layout type and no homepage.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * Completes with a [StoreLayout].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Returns the store layout for the enterprise. If the store layout has not
|
| + /// been set, returns "basic" as the store layout type and no homepage.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// Completes with a [StoreLayout].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<StoreLayout> getStoreLayout(core.String enterpriseId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -697,36 +703,35 @@ class EnterprisesResourceApi {
|
| throw new core.ArgumentError("Parameter enterpriseId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/storeLayout';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/storeLayout';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new StoreLayout.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Establishes the binding between the EMM and an enterprise. This is now
|
| - * deprecated; use enroll instead.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [token] - The token provided by the enterprise to register the EMM.
|
| - *
|
| - * Completes with a [Enterprise].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Establishes the binding between the EMM and an enterprise. This is now
|
| + /// deprecated; use enroll instead.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [token] - The token provided by the enterprise to register the EMM.
|
| + ///
|
| + /// Completes with a [Enterprise].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<Enterprise> insert(Enterprise request, core.String token) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -745,35 +750,32 @@ class EnterprisesResourceApi {
|
|
|
| _url = 'enterprises';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Enterprise.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Looks up an enterprise by domain name. This is only supported for
|
| - * enterprises created via the Google-initiated creation flow. Lookup of the
|
| - * id is not needed for enterprises created via the EMM-initiated flow since
|
| - * the EMM learns the enterprise ID in the callback specified in the
|
| - * Enterprises.generateSignupUrl call.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [domain] - The exact primary domain name of the enterprise to look up.
|
| - *
|
| - * Completes with a [EnterprisesListResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Looks up an enterprise by domain name. This is only supported for
|
| + /// enterprises created via the Google-initiated creation flow. Lookup of the
|
| + /// id is not needed for enterprises created via the EMM-initiated flow since
|
| + /// the EMM learns the enterprise ID in the callback specified in the
|
| + /// Enterprises.generateSignupUrl call.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [domain] - The exact primary domain name of the enterprise to look up.
|
| + ///
|
| + /// Completes with a [EnterprisesListResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<EnterprisesListResponse> list(core.String domain) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -789,56 +791,54 @@ class EnterprisesResourceApi {
|
|
|
| _url = 'enterprises';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new EnterprisesListResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Pulls and returns a notification set for the enterprises associated with
|
| - * the service account authenticated for the request. The notification set may
|
| - * be empty if no notification are pending.
|
| - * A notification set returned needs to be acknowledged within 20 seconds by
|
| - * calling Enterprises.AcknowledgeNotificationSet, unless the notification set
|
| - * is empty.
|
| - * Notifications that are not acknowledged within the 20 seconds will
|
| - * eventually be included again in the response to another PullNotificationSet
|
| - * request, and those that are never acknowledged will ultimately be deleted
|
| - * according to the Google Cloud Platform Pub/Sub system policy.
|
| - * Multiple requests might be performed concurrently to retrieve
|
| - * notifications, in which case the pending notifications (if any) will be
|
| - * split among each caller, if any are pending.
|
| - * If no notifications are present, an empty notification list is returned.
|
| - * Subsequent requests may return more notifications once they become
|
| - * available.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [requestMode] - The request mode for pulling notifications.
|
| - * Specifying waitForNotifications will cause the request to block and wait
|
| - * until one or more notifications are present, or return an empty
|
| - * notification list if no notifications are present after some time.
|
| - * Speciying returnImmediately will cause the request to immediately return
|
| - * the pending notifications, or an empty list if no notifications are
|
| - * present.
|
| - * If omitted, defaults to waitForNotifications.
|
| - * Possible string values are:
|
| - * - "returnImmediately"
|
| - * - "waitForNotifications"
|
| - *
|
| - * Completes with a [NotificationSet].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Pulls and returns a notification set for the enterprises associated with
|
| + /// the service account authenticated for the request. The notification set
|
| + /// may be empty if no notification are pending.
|
| + /// A notification set returned needs to be acknowledged within 20 seconds by
|
| + /// calling Enterprises.AcknowledgeNotificationSet, unless the notification
|
| + /// set is empty.
|
| + /// Notifications that are not acknowledged within the 20 seconds will
|
| + /// eventually be included again in the response to another
|
| + /// PullNotificationSet request, and those that are never acknowledged will
|
| + /// ultimately be deleted according to the Google Cloud Platform Pub/Sub
|
| + /// system policy.
|
| + /// Multiple requests might be performed concurrently to retrieve
|
| + /// notifications, in which case the pending notifications (if any) will be
|
| + /// split among each caller, if any are pending.
|
| + /// If no notifications are present, an empty notification list is returned.
|
| + /// Subsequent requests may return more notifications once they become
|
| + /// available.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [requestMode] - The request mode for pulling notifications.
|
| + /// Specifying waitForNotifications will cause the request to block and wait
|
| + /// until one or more notifications are present, or return an empty
|
| + /// notification list if no notifications are present after some time.
|
| + /// Speciying returnImmediately will cause the request to immediately return
|
| + /// the pending notifications, or an empty list if no notifications are
|
| + /// present.
|
| + /// If omitted, defaults to waitForNotifications.
|
| + /// Possible string values are:
|
| + /// - "returnImmediately"
|
| + /// - "waitForNotifications"
|
| + ///
|
| + /// Completes with a [NotificationSet].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<NotificationSet> pullNotificationSet({core.String requestMode}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -853,33 +853,31 @@ class EnterprisesResourceApi {
|
|
|
| _url = 'enterprises/pullNotificationSet';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new NotificationSet.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Sends a test push notification to validate the EMM integration with the
|
| - * Google Cloud Pub/Sub service for this enterprise.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * Completes with a [EnterprisesSendTestPushNotificationResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<EnterprisesSendTestPushNotificationResponse> sendTestPushNotification(core.String enterpriseId) {
|
| + /// Sends a test notification to validate the EMM integration with the Google
|
| + /// Cloud Pub/Sub service for this enterprise.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// Completes with a [EnterprisesSendTestPushNotificationResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<EnterprisesSendTestPushNotificationResponse>
|
| + sendTestPushNotification(core.String enterpriseId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -891,37 +889,38 @@ class EnterprisesResourceApi {
|
| throw new core.ArgumentError("Parameter enterpriseId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/sendTestPushNotification';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new EnterprisesSendTestPushNotificationResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Sets the account that will be used to authenticate to the API as the
|
| - * enterprise.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * Completes with a [EnterpriseAccount].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<EnterpriseAccount> setAccount(EnterpriseAccount request, core.String enterpriseId) {
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/sendTestPushNotification';
|
| +
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) =>
|
| + new EnterprisesSendTestPushNotificationResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Sets the account that will be used to authenticate to the API as the
|
| + /// enterprise.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// Completes with a [EnterpriseAccount].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<EnterpriseAccount> setAccount(
|
| + EnterpriseAccount request, core.String enterpriseId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -936,39 +935,39 @@ class EnterprisesResourceApi {
|
| throw new core.ArgumentError("Parameter enterpriseId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/account';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/account';
|
|
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new EnterpriseAccount.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Sets the Android Device Policy config resource. EMM may use this method to
|
| - * enable or disable Android Device Policy support for the specified
|
| - * enterprise. To learn more about managing devices and apps with Android
|
| - * Device Policy, see the Android Management API.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * Completes with a [AndroidDevicePolicyConfig].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<AndroidDevicePolicyConfig> setAndroidDevicePolicyConfig(AndroidDevicePolicyConfig request, core.String enterpriseId) {
|
| + /// Sets the Android Device Policy config resource. EMM may use this method
|
| + /// to enable or disable Android Device Policy support for the specified
|
| + /// enterprise. To learn more about managing devices and apps with Android
|
| + /// Device Policy, see the Android Management API.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// Completes with a [AndroidDevicePolicyConfig].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<AndroidDevicePolicyConfig> setAndroidDevicePolicyConfig(
|
| + AndroidDevicePolicyConfig request, core.String enterpriseId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -983,42 +982,43 @@ class EnterprisesResourceApi {
|
| throw new core.ArgumentError("Parameter enterpriseId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/androidDevicePolicyConfig';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new AndroidDevicePolicyConfig.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Sets the store layout for the enterprise. By default, storeLayoutType is
|
| - * set to "basic" and the basic store layout is enabled. The basic layout only
|
| - * contains apps approved by the admin, and that have been added to the
|
| - * available product set for a user (using the setAvailableProductSet call).
|
| - * Apps on the page are sorted in order of their product ID value. If you
|
| - * create a custom store layout (by setting storeLayoutType = "custom" and
|
| - * setting a homepage), the basic store layout is disabled.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * Completes with a [StoreLayout].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<StoreLayout> setStoreLayout(StoreLayout request, core.String enterpriseId) {
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/androidDevicePolicyConfig';
|
| +
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new AndroidDevicePolicyConfig.fromJson(data));
|
| + }
|
| +
|
| + /// Sets the store layout for the enterprise. By default, storeLayoutType is
|
| + /// set to "basic" and the basic store layout is enabled. The basic layout
|
| + /// only contains apps approved by the admin, and that have been added to the
|
| + /// available product set for a user (using the setAvailableProductSet
|
| + /// call). Apps on the page are sorted in order of their product ID value. If
|
| + /// you create a custom store layout (by setting storeLayoutType = "custom"
|
| + /// and setting a homepage), the basic store layout is disabled.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// Completes with a [StoreLayout].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<StoreLayout> setStoreLayout(
|
| + StoreLayout request, core.String enterpriseId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1033,31 +1033,30 @@ class EnterprisesResourceApi {
|
| throw new core.ArgumentError("Parameter enterpriseId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/storeLayout';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/storeLayout';
|
|
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new StoreLayout.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Unenrolls an enterprise from the calling EMM.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Unenrolls an enterprise from the calling EMM.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future unenroll(core.String enterpriseId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -1072,46 +1071,43 @@ class EnterprisesResourceApi {
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/unenroll';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/unenroll';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
| -
|
| }
|
|
|
| -
|
| class EntitlementsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - EntitlementsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Removes an entitlement to an app for a user.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [entitlementId] - The ID of the entitlement (a product ID), e.g.
|
| - * "app:com.google.android.gm".
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future delete(core.String enterpriseId, core.String userId, core.String entitlementId) {
|
| + EntitlementsResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Removes an entitlement to an app for a user.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [entitlementId] - The ID of the entitlement (a product ID), e.g.
|
| + /// "app:com.google.android.gm".
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future delete(
|
| + core.String enterpriseId, core.String userId, core.String entitlementId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1131,39 +1127,42 @@ class EntitlementsResourceApi {
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/entitlements/' + commons.Escaper.ecapeVariable('$entitlementId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/entitlements/' +
|
| + commons.Escaper.ecapeVariable('$entitlementId');
|
| +
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
|
|
| - /**
|
| - * Retrieves details of an entitlement.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [entitlementId] - The ID of the entitlement (a product ID), e.g.
|
| - * "app:com.google.android.gm".
|
| - *
|
| - * Completes with a [Entitlement].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Entitlement> get(core.String enterpriseId, core.String userId, core.String entitlementId) {
|
| + /// Retrieves details of an entitlement.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [entitlementId] - The ID of the entitlement (a product ID), e.g.
|
| + /// "app:com.google.android.gm".
|
| + ///
|
| + /// Completes with a [Entitlement].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Entitlement> get(
|
| + core.String enterpriseId, core.String userId, core.String entitlementId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1181,36 +1180,39 @@ class EntitlementsResourceApi {
|
| throw new core.ArgumentError("Parameter entitlementId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/entitlements/' + commons.Escaper.ecapeVariable('$entitlementId');
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/entitlements/' +
|
| + commons.Escaper.ecapeVariable('$entitlementId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Entitlement.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Lists all entitlements for the specified user. Only the ID is set.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * Completes with a [EntitlementsListResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<EntitlementsListResponse> list(core.String enterpriseId, core.String userId) {
|
| + /// Lists all entitlements for the specified user. Only the ID is set.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// Completes with a [EntitlementsListResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<EntitlementsListResponse> list(
|
| + core.String enterpriseId, core.String userId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1225,47 +1227,51 @@ class EntitlementsResourceApi {
|
| throw new core.ArgumentError("Parameter userId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/entitlements';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new EntitlementsListResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Adds or updates an entitlement to an app for a user. This method supports
|
| - * patch semantics.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [entitlementId] - The ID of the entitlement (a product ID), e.g.
|
| - * "app:com.google.android.gm".
|
| - *
|
| - * [install] - Set to true to also install the product on all the user's
|
| - * devices where possible. Failure to install on one or more devices will not
|
| - * prevent this operation from returning successfully, as long as the
|
| - * entitlement was successfully assigned to the user.
|
| - *
|
| - * Completes with a [Entitlement].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Entitlement> patch(Entitlement request, core.String enterpriseId, core.String userId, core.String entitlementId, {core.bool install}) {
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/entitlements';
|
| +
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new EntitlementsListResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Adds or updates an entitlement to an app for a user. This method supports
|
| + /// patch semantics.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [entitlementId] - The ID of the entitlement (a product ID), e.g.
|
| + /// "app:com.google.android.gm".
|
| + ///
|
| + /// [install] - Set to true to also install the product on all the user's
|
| + /// devices where possible. Failure to install on one or more devices will
|
| + /// not prevent this operation from returning successfully, as long as the
|
| + /// entitlement was successfully assigned to the user.
|
| + ///
|
| + /// Completes with a [Entitlement].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Entitlement> patch(Entitlement request, core.String enterpriseId,
|
| + core.String userId, core.String entitlementId,
|
| + {core.bool install}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1289,46 +1295,50 @@ class EntitlementsResourceApi {
|
| _queryParams["install"] = ["${install}"];
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/entitlements/' + commons.Escaper.ecapeVariable('$entitlementId');
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/entitlements/' +
|
| + commons.Escaper.ecapeVariable('$entitlementId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PATCH",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PATCH",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Entitlement.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Adds or updates an entitlement to an app for a user.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [entitlementId] - The ID of the entitlement (a product ID), e.g.
|
| - * "app:com.google.android.gm".
|
| - *
|
| - * [install] - Set to true to also install the product on all the user's
|
| - * devices where possible. Failure to install on one or more devices will not
|
| - * prevent this operation from returning successfully, as long as the
|
| - * entitlement was successfully assigned to the user.
|
| - *
|
| - * Completes with a [Entitlement].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Entitlement> update(Entitlement request, core.String enterpriseId, core.String userId, core.String entitlementId, {core.bool install}) {
|
| + /// Adds or updates an entitlement to an app for a user.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [entitlementId] - The ID of the entitlement (a product ID), e.g.
|
| + /// "app:com.google.android.gm".
|
| + ///
|
| + /// [install] - Set to true to also install the product on all the user's
|
| + /// devices where possible. Failure to install on one or more devices will
|
| + /// not prevent this operation from returning successfully, as long as the
|
| + /// entitlement was successfully assigned to the user.
|
| + ///
|
| + /// Completes with a [Entitlement].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Entitlement> update(Entitlement request,
|
| + core.String enterpriseId, core.String userId, core.String entitlementId,
|
| + {core.bool install}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1352,46 +1362,46 @@ class EntitlementsResourceApi {
|
| _queryParams["install"] = ["${install}"];
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/entitlements/' + commons.Escaper.ecapeVariable('$entitlementId');
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/entitlements/' +
|
| + commons.Escaper.ecapeVariable('$entitlementId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Entitlement.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class GrouplicensesResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - GrouplicensesResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Retrieves details of an enterprise's group license for a product.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [groupLicenseId] - The ID of the product the group license is for, e.g.
|
| - * "app:com.google.android.gm".
|
| - *
|
| - * Completes with a [GroupLicense].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<GroupLicense> get(core.String enterpriseId, core.String groupLicenseId) {
|
| + GrouplicensesResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Retrieves details of an enterprise's group license for a product.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [groupLicenseId] - The ID of the product the group license is for, e.g.
|
| + /// "app:com.google.android.gm".
|
| + ///
|
| + /// Completes with a [GroupLicense].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<GroupLicense> get(
|
| + core.String enterpriseId, core.String groupLicenseId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1406,33 +1416,34 @@ class GrouplicensesResourceApi {
|
| throw new core.ArgumentError("Parameter groupLicenseId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/groupLicenses/' + commons.Escaper.ecapeVariable('$groupLicenseId');
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/groupLicenses/' +
|
| + commons.Escaper.ecapeVariable('$groupLicenseId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new GroupLicense.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Retrieves IDs of all products for which the enterprise has a group license.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * Completes with a [GroupLicensesListResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Retrieves IDs of all products for which the enterprise has a group
|
| + /// license.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// Completes with a [GroupLicensesListResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<GroupLicensesListResponse> list(core.String enterpriseId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -1445,47 +1456,46 @@ class GrouplicensesResourceApi {
|
| throw new core.ArgumentError("Parameter enterpriseId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/groupLicenses';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/groupLicenses';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new GroupLicensesListResponse.fromJson(data));
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new GroupLicensesListResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class GrouplicenseusersResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - GrouplicenseusersResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Retrieves the IDs of the users who have been granted entitlements under the
|
| - * license.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [groupLicenseId] - The ID of the product the group license is for, e.g.
|
| - * "app:com.google.android.gm".
|
| - *
|
| - * Completes with a [GroupLicenseUsersListResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<GroupLicenseUsersListResponse> list(core.String enterpriseId, core.String groupLicenseId) {
|
| + GrouplicenseusersResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Retrieves the IDs of the users who have been granted entitlements under
|
| + /// the license.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [groupLicenseId] - The ID of the product the group license is for, e.g.
|
| + /// "app:com.google.android.gm".
|
| + ///
|
| + /// Completes with a [GroupLicenseUsersListResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<GroupLicenseUsersListResponse> list(
|
| + core.String enterpriseId, core.String groupLicenseId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1500,49 +1510,49 @@ class GrouplicenseusersResourceApi {
|
| throw new core.ArgumentError("Parameter groupLicenseId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/groupLicenses/' + commons.Escaper.ecapeVariable('$groupLicenseId') + '/users';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/groupLicenses/' +
|
| + commons.Escaper.ecapeVariable('$groupLicenseId') +
|
| + '/users';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new GroupLicenseUsersListResponse.fromJson(data));
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new GroupLicenseUsersListResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class InstallsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - InstallsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Requests to remove an app from a device. A call to get or list will still
|
| - * show the app as installed on the device until it is actually removed.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [deviceId] - The Android ID of the device.
|
| - *
|
| - * [installId] - The ID of the product represented by the install, e.g.
|
| - * "app:com.google.android.gm".
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future delete(core.String enterpriseId, core.String userId, core.String deviceId, core.String installId) {
|
| + InstallsResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Requests to remove an app from a device. A call to get or list will still
|
| + /// show the app as installed on the device until it is actually removed.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [deviceId] - The Android ID of the device.
|
| + ///
|
| + /// [installId] - The ID of the product represented by the install, e.g.
|
| + /// "app:com.google.android.gm".
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future delete(core.String enterpriseId, core.String userId,
|
| + core.String deviceId, core.String installId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1565,41 +1575,46 @@ class InstallsResourceApi {
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escaper.ecapeVariable('$deviceId') + '/installs/' + commons.Escaper.ecapeVariable('$installId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/devices/' +
|
| + commons.Escaper.ecapeVariable('$deviceId') +
|
| + '/installs/' +
|
| + commons.Escaper.ecapeVariable('$installId');
|
| +
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
|
|
| - /**
|
| - * Retrieves details of an installation of an app on a device.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [deviceId] - The Android ID of the device.
|
| - *
|
| - * [installId] - The ID of the product represented by the install, e.g.
|
| - * "app:com.google.android.gm".
|
| - *
|
| - * Completes with a [Install].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Install> get(core.String enterpriseId, core.String userId, core.String deviceId, core.String installId) {
|
| + /// Retrieves details of an installation of an app on a device.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [deviceId] - The Android ID of the device.
|
| + ///
|
| + /// [installId] - The ID of the product represented by the install, e.g.
|
| + /// "app:com.google.android.gm".
|
| + ///
|
| + /// Completes with a [Install].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Install> get(core.String enterpriseId, core.String userId,
|
| + core.String deviceId, core.String installId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1620,38 +1635,43 @@ class InstallsResourceApi {
|
| throw new core.ArgumentError("Parameter installId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escaper.ecapeVariable('$deviceId') + '/installs/' + commons.Escaper.ecapeVariable('$installId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/devices/' +
|
| + commons.Escaper.ecapeVariable('$deviceId') +
|
| + '/installs/' +
|
| + commons.Escaper.ecapeVariable('$installId');
|
| +
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Install.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Retrieves the details of all apps installed on the specified device.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [deviceId] - The Android ID of the device.
|
| - *
|
| - * Completes with a [InstallsListResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<InstallsListResponse> list(core.String enterpriseId, core.String userId, core.String deviceId) {
|
| + /// Retrieves the details of all apps installed on the specified device.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [deviceId] - The Android ID of the device.
|
| + ///
|
| + /// Completes with a [InstallsListResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<InstallsListResponse> list(
|
| + core.String enterpriseId, core.String userId, core.String deviceId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1669,45 +1689,49 @@ class InstallsResourceApi {
|
| throw new core.ArgumentError("Parameter deviceId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escaper.ecapeVariable('$deviceId') + '/installs';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/devices/' +
|
| + commons.Escaper.ecapeVariable('$deviceId') +
|
| + '/installs';
|
| +
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new InstallsListResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Requests to install the latest version of an app to a device. If the app is
|
| - * already installed, then it is updated to the latest version if necessary.
|
| - * This method supports patch semantics.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [deviceId] - The Android ID of the device.
|
| - *
|
| - * [installId] - The ID of the product represented by the install, e.g.
|
| - * "app:com.google.android.gm".
|
| - *
|
| - * Completes with a [Install].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Install> patch(Install request, core.String enterpriseId, core.String userId, core.String deviceId, core.String installId) {
|
| + /// Requests to install the latest version of an app to a device. If the app
|
| + /// is already installed, then it is updated to the latest version if
|
| + /// necessary. This method supports patch semantics.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [deviceId] - The Android ID of the device.
|
| + ///
|
| + /// [installId] - The ID of the product represented by the install, e.g.
|
| + /// "app:com.google.android.gm".
|
| + ///
|
| + /// Completes with a [Install].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Install> patch(Install request, core.String enterpriseId,
|
| + core.String userId, core.String deviceId, core.String installId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1731,44 +1755,50 @@ class InstallsResourceApi {
|
| throw new core.ArgumentError("Parameter installId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escaper.ecapeVariable('$deviceId') + '/installs/' + commons.Escaper.ecapeVariable('$installId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "PATCH",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/devices/' +
|
| + commons.Escaper.ecapeVariable('$deviceId') +
|
| + '/installs/' +
|
| + commons.Escaper.ecapeVariable('$installId');
|
| +
|
| + var _response = _requester.request(_url, "PATCH",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Install.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Requests to install the latest version of an app to a device. If the app is
|
| - * already installed, then it is updated to the latest version if necessary.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [deviceId] - The Android ID of the device.
|
| - *
|
| - * [installId] - The ID of the product represented by the install, e.g.
|
| - * "app:com.google.android.gm".
|
| - *
|
| - * Completes with a [Install].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Install> update(Install request, core.String enterpriseId, core.String userId, core.String deviceId, core.String installId) {
|
| + /// Requests to install the latest version of an app to a device. If the app
|
| + /// is already installed, then it is updated to the latest version if
|
| + /// necessary.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [deviceId] - The Android ID of the device.
|
| + ///
|
| + /// [installId] - The ID of the product represented by the install, e.g.
|
| + /// "app:com.google.android.gm".
|
| + ///
|
| + /// Completes with a [Install].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Install> update(Install request, core.String enterpriseId,
|
| + core.String userId, core.String deviceId, core.String installId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1792,49 +1822,52 @@ class InstallsResourceApi {
|
| throw new core.ArgumentError("Parameter installId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escaper.ecapeVariable('$deviceId') + '/installs/' + commons.Escaper.ecapeVariable('$installId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/devices/' +
|
| + commons.Escaper.ecapeVariable('$deviceId') +
|
| + '/installs/' +
|
| + commons.Escaper.ecapeVariable('$installId');
|
| +
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Install.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class ManagedconfigurationsfordeviceResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ManagedconfigurationsfordeviceResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Removes a per-device managed configuration for an app for the specified
|
| - * device.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [deviceId] - The Android ID of the device.
|
| - *
|
| - * [managedConfigurationForDeviceId] - The ID of the managed configuration (a
|
| - * product ID), e.g. "app:com.google.android.gm".
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future delete(core.String enterpriseId, core.String userId, core.String deviceId, core.String managedConfigurationForDeviceId) {
|
| + ManagedconfigurationsfordeviceResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Removes a per-device managed configuration for an app for the specified
|
| + /// device.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [deviceId] - The Android ID of the device.
|
| + ///
|
| + /// [managedConfigurationForDeviceId] - The ID of the managed configuration
|
| + /// (a product ID), e.g. "app:com.google.android.gm".
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future delete(core.String enterpriseId, core.String userId,
|
| + core.String deviceId, core.String managedConfigurationForDeviceId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1852,46 +1885,55 @@ class ManagedconfigurationsfordeviceResourceApi {
|
| throw new core.ArgumentError("Parameter deviceId is required.");
|
| }
|
| if (managedConfigurationForDeviceId == null) {
|
| - throw new core.ArgumentError("Parameter managedConfigurationForDeviceId is required.");
|
| + throw new core.ArgumentError(
|
| + "Parameter managedConfigurationForDeviceId is required.");
|
| }
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escaper.ecapeVariable('$deviceId') + '/managedConfigurationsForDevice/' + commons.Escaper.ecapeVariable('$managedConfigurationForDeviceId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/devices/' +
|
| + commons.Escaper.ecapeVariable('$deviceId') +
|
| + '/managedConfigurationsForDevice/' +
|
| + commons.Escaper.ecapeVariable('$managedConfigurationForDeviceId');
|
| +
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
|
|
| - /**
|
| - * Retrieves details of a per-device managed configuration.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [deviceId] - The Android ID of the device.
|
| - *
|
| - * [managedConfigurationForDeviceId] - The ID of the managed configuration (a
|
| - * product ID), e.g. "app:com.google.android.gm".
|
| - *
|
| - * Completes with a [ManagedConfiguration].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ManagedConfiguration> get(core.String enterpriseId, core.String userId, core.String deviceId, core.String managedConfigurationForDeviceId) {
|
| + /// Retrieves details of a per-device managed configuration.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [deviceId] - The Android ID of the device.
|
| + ///
|
| + /// [managedConfigurationForDeviceId] - The ID of the managed configuration
|
| + /// (a product ID), e.g. "app:com.google.android.gm".
|
| + ///
|
| + /// Completes with a [ManagedConfiguration].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ManagedConfiguration> get(
|
| + core.String enterpriseId,
|
| + core.String userId,
|
| + core.String deviceId,
|
| + core.String managedConfigurationForDeviceId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1909,42 +1951,48 @@ class ManagedconfigurationsfordeviceResourceApi {
|
| throw new core.ArgumentError("Parameter deviceId is required.");
|
| }
|
| if (managedConfigurationForDeviceId == null) {
|
| - throw new core.ArgumentError("Parameter managedConfigurationForDeviceId is required.");
|
| - }
|
| -
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escaper.ecapeVariable('$deviceId') + '/managedConfigurationsForDevice/' + commons.Escaper.ecapeVariable('$managedConfigurationForDeviceId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + throw new core.ArgumentError(
|
| + "Parameter managedConfigurationForDeviceId is required.");
|
| + }
|
| +
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/devices/' +
|
| + commons.Escaper.ecapeVariable('$deviceId') +
|
| + '/managedConfigurationsForDevice/' +
|
| + commons.Escaper.ecapeVariable('$managedConfigurationForDeviceId');
|
| +
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ManagedConfiguration.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Lists all the per-device managed configurations for the specified device.
|
| - * Only the ID is set.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [deviceId] - The Android ID of the device.
|
| - *
|
| - * Completes with a [ManagedConfigurationsForDeviceListResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ManagedConfigurationsForDeviceListResponse> list(core.String enterpriseId, core.String userId, core.String deviceId) {
|
| + /// Lists all the per-device managed configurations for the specified device.
|
| + /// Only the ID is set.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [deviceId] - The Android ID of the device.
|
| + ///
|
| + /// Completes with a [ManagedConfigurationsForDeviceListResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ManagedConfigurationsForDeviceListResponse> list(
|
| + core.String enterpriseId, core.String userId, core.String deviceId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1962,44 +2010,53 @@ class ManagedconfigurationsfordeviceResourceApi {
|
| throw new core.ArgumentError("Parameter deviceId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escaper.ecapeVariable('$deviceId') + '/managedConfigurationsForDevice';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new ManagedConfigurationsForDeviceListResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Adds or updates a per-device managed configuration for an app for the
|
| - * specified device. This method supports patch semantics.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [deviceId] - The Android ID of the device.
|
| - *
|
| - * [managedConfigurationForDeviceId] - The ID of the managed configuration (a
|
| - * product ID), e.g. "app:com.google.android.gm".
|
| - *
|
| - * Completes with a [ManagedConfiguration].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ManagedConfiguration> patch(ManagedConfiguration request, core.String enterpriseId, core.String userId, core.String deviceId, core.String managedConfigurationForDeviceId) {
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/devices/' +
|
| + commons.Escaper.ecapeVariable('$deviceId') +
|
| + '/managedConfigurationsForDevice';
|
| +
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) =>
|
| + new ManagedConfigurationsForDeviceListResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Adds or updates a per-device managed configuration for an app for the
|
| + /// specified device. This method supports patch semantics.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [deviceId] - The Android ID of the device.
|
| + ///
|
| + /// [managedConfigurationForDeviceId] - The ID of the managed configuration
|
| + /// (a product ID), e.g. "app:com.google.android.gm".
|
| + ///
|
| + /// Completes with a [ManagedConfiguration].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ManagedConfiguration> patch(
|
| + ManagedConfiguration request,
|
| + core.String enterpriseId,
|
| + core.String userId,
|
| + core.String deviceId,
|
| + core.String managedConfigurationForDeviceId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2020,47 +2077,57 @@ class ManagedconfigurationsfordeviceResourceApi {
|
| throw new core.ArgumentError("Parameter deviceId is required.");
|
| }
|
| if (managedConfigurationForDeviceId == null) {
|
| - throw new core.ArgumentError("Parameter managedConfigurationForDeviceId is required.");
|
| - }
|
| -
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escaper.ecapeVariable('$deviceId') + '/managedConfigurationsForDevice/' + commons.Escaper.ecapeVariable('$managedConfigurationForDeviceId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "PATCH",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + throw new core.ArgumentError(
|
| + "Parameter managedConfigurationForDeviceId is required.");
|
| + }
|
| +
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/devices/' +
|
| + commons.Escaper.ecapeVariable('$deviceId') +
|
| + '/managedConfigurationsForDevice/' +
|
| + commons.Escaper.ecapeVariable('$managedConfigurationForDeviceId');
|
| +
|
| + var _response = _requester.request(_url, "PATCH",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ManagedConfiguration.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Adds or updates a per-device managed configuration for an app for the
|
| - * specified device.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [deviceId] - The Android ID of the device.
|
| - *
|
| - * [managedConfigurationForDeviceId] - The ID of the managed configuration (a
|
| - * product ID), e.g. "app:com.google.android.gm".
|
| - *
|
| - * Completes with a [ManagedConfiguration].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ManagedConfiguration> update(ManagedConfiguration request, core.String enterpriseId, core.String userId, core.String deviceId, core.String managedConfigurationForDeviceId) {
|
| + /// Adds or updates a per-device managed configuration for an app for the
|
| + /// specified device.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [deviceId] - The Android ID of the device.
|
| + ///
|
| + /// [managedConfigurationForDeviceId] - The ID of the managed configuration
|
| + /// (a product ID), e.g. "app:com.google.android.gm".
|
| + ///
|
| + /// Completes with a [ManagedConfiguration].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ManagedConfiguration> update(
|
| + ManagedConfiguration request,
|
| + core.String enterpriseId,
|
| + core.String userId,
|
| + core.String deviceId,
|
| + core.String managedConfigurationForDeviceId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2081,49 +2148,54 @@ class ManagedconfigurationsfordeviceResourceApi {
|
| throw new core.ArgumentError("Parameter deviceId is required.");
|
| }
|
| if (managedConfigurationForDeviceId == null) {
|
| - throw new core.ArgumentError("Parameter managedConfigurationForDeviceId is required.");
|
| - }
|
| -
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escaper.ecapeVariable('$deviceId') + '/managedConfigurationsForDevice/' + commons.Escaper.ecapeVariable('$managedConfigurationForDeviceId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + throw new core.ArgumentError(
|
| + "Parameter managedConfigurationForDeviceId is required.");
|
| + }
|
| +
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/devices/' +
|
| + commons.Escaper.ecapeVariable('$deviceId') +
|
| + '/managedConfigurationsForDevice/' +
|
| + commons.Escaper.ecapeVariable('$managedConfigurationForDeviceId');
|
| +
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ManagedConfiguration.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class ManagedconfigurationsforuserResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ManagedconfigurationsforuserResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Removes a per-user managed configuration for an app for the specified user.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [managedConfigurationForUserId] - The ID of the managed configuration (a
|
| - * product ID), e.g. "app:com.google.android.gm".
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future delete(core.String enterpriseId, core.String userId, core.String managedConfigurationForUserId) {
|
| + ManagedconfigurationsforuserResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Removes a per-user managed configuration for an app for the specified
|
| + /// user.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [managedConfigurationForUserId] - The ID of the managed configuration (a
|
| + /// product ID), e.g. "app:com.google.android.gm".
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future delete(core.String enterpriseId, core.String userId,
|
| + core.String managedConfigurationForUserId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2138,45 +2210,49 @@ class ManagedconfigurationsforuserResourceApi {
|
| throw new core.ArgumentError("Parameter userId is required.");
|
| }
|
| if (managedConfigurationForUserId == null) {
|
| - throw new core.ArgumentError("Parameter managedConfigurationForUserId is required.");
|
| + throw new core.ArgumentError(
|
| + "Parameter managedConfigurationForUserId is required.");
|
| }
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/managedConfigurationsForUser/' + commons.Escaper.ecapeVariable('$managedConfigurationForUserId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/managedConfigurationsForUser/' +
|
| + commons.Escaper.ecapeVariable('$managedConfigurationForUserId');
|
| +
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
|
|
| - /**
|
| - * Retrieves details of a per-user managed configuration for an app for the
|
| - * specified user.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [managedConfigurationForUserId] - The ID of the managed configuration (a
|
| - * product ID), e.g. "app:com.google.android.gm".
|
| - *
|
| - * Completes with a [ManagedConfiguration].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ManagedConfiguration> get(core.String enterpriseId, core.String userId, core.String managedConfigurationForUserId) {
|
| + /// Retrieves details of a per-user managed configuration for an app for the
|
| + /// specified user.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [managedConfigurationForUserId] - The ID of the managed configuration (a
|
| + /// product ID), e.g. "app:com.google.android.gm".
|
| + ///
|
| + /// Completes with a [ManagedConfiguration].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ManagedConfiguration> get(core.String enterpriseId,
|
| + core.String userId, core.String managedConfigurationForUserId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2191,40 +2267,44 @@ class ManagedconfigurationsforuserResourceApi {
|
| throw new core.ArgumentError("Parameter userId is required.");
|
| }
|
| if (managedConfigurationForUserId == null) {
|
| - throw new core.ArgumentError("Parameter managedConfigurationForUserId is required.");
|
| - }
|
| -
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/managedConfigurationsForUser/' + commons.Escaper.ecapeVariable('$managedConfigurationForUserId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + throw new core.ArgumentError(
|
| + "Parameter managedConfigurationForUserId is required.");
|
| + }
|
| +
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/managedConfigurationsForUser/' +
|
| + commons.Escaper.ecapeVariable('$managedConfigurationForUserId');
|
| +
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ManagedConfiguration.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Lists all the per-user managed configurations for the specified user. Only
|
| - * the ID is set.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * Completes with a [ManagedConfigurationsForUserListResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ManagedConfigurationsForUserListResponse> list(core.String enterpriseId, core.String userId) {
|
| + /// Lists all the per-user managed configurations for the specified user.
|
| + /// Only the ID is set.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// Completes with a [ManagedConfigurationsForUserListResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ManagedConfigurationsForUserListResponse> list(
|
| + core.String enterpriseId, core.String userId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2239,42 +2319,48 @@ class ManagedconfigurationsforuserResourceApi {
|
| throw new core.ArgumentError("Parameter userId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/managedConfigurationsForUser';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new ManagedConfigurationsForUserListResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Adds or updates a per-user managed configuration for an app for the
|
| - * specified user. This method supports patch semantics.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [managedConfigurationForUserId] - The ID of the managed configuration (a
|
| - * product ID), e.g. "app:com.google.android.gm".
|
| - *
|
| - * Completes with a [ManagedConfiguration].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ManagedConfiguration> patch(ManagedConfiguration request, core.String enterpriseId, core.String userId, core.String managedConfigurationForUserId) {
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/managedConfigurationsForUser';
|
| +
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then(
|
| + (data) => new ManagedConfigurationsForUserListResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Adds or updates a per-user managed configuration for an app for the
|
| + /// specified user. This method supports patch semantics.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [managedConfigurationForUserId] - The ID of the managed configuration (a
|
| + /// product ID), e.g. "app:com.google.android.gm".
|
| + ///
|
| + /// Completes with a [ManagedConfiguration].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ManagedConfiguration> patch(
|
| + ManagedConfiguration request,
|
| + core.String enterpriseId,
|
| + core.String userId,
|
| + core.String managedConfigurationForUserId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2292,45 +2378,52 @@ class ManagedconfigurationsforuserResourceApi {
|
| throw new core.ArgumentError("Parameter userId is required.");
|
| }
|
| if (managedConfigurationForUserId == null) {
|
| - throw new core.ArgumentError("Parameter managedConfigurationForUserId is required.");
|
| - }
|
| -
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/managedConfigurationsForUser/' + commons.Escaper.ecapeVariable('$managedConfigurationForUserId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "PATCH",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + throw new core.ArgumentError(
|
| + "Parameter managedConfigurationForUserId is required.");
|
| + }
|
| +
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/managedConfigurationsForUser/' +
|
| + commons.Escaper.ecapeVariable('$managedConfigurationForUserId');
|
| +
|
| + var _response = _requester.request(_url, "PATCH",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ManagedConfiguration.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Adds or updates a per-user managed configuration for an app for the
|
| - * specified user.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * [managedConfigurationForUserId] - The ID of the managed configuration (a
|
| - * product ID), e.g. "app:com.google.android.gm".
|
| - *
|
| - * Completes with a [ManagedConfiguration].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ManagedConfiguration> update(ManagedConfiguration request, core.String enterpriseId, core.String userId, core.String managedConfigurationForUserId) {
|
| + /// Adds or updates a per-user managed configuration for an app for the
|
| + /// specified user.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// [managedConfigurationForUserId] - The ID of the managed configuration (a
|
| + /// product ID), e.g. "app:com.google.android.gm".
|
| + ///
|
| + /// Completes with a [ManagedConfiguration].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ManagedConfiguration> update(
|
| + ManagedConfiguration request,
|
| + core.String enterpriseId,
|
| + core.String userId,
|
| + core.String managedConfigurationForUserId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2348,50 +2441,51 @@ class ManagedconfigurationsforuserResourceApi {
|
| throw new core.ArgumentError("Parameter userId is required.");
|
| }
|
| if (managedConfigurationForUserId == null) {
|
| - throw new core.ArgumentError("Parameter managedConfigurationForUserId is required.");
|
| - }
|
| -
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/managedConfigurationsForUser/' + commons.Escaper.ecapeVariable('$managedConfigurationForUserId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + throw new core.ArgumentError(
|
| + "Parameter managedConfigurationForUserId is required.");
|
| + }
|
| +
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/managedConfigurationsForUser/' +
|
| + commons.Escaper.ecapeVariable('$managedConfigurationForUserId');
|
| +
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ManagedConfiguration.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class PermissionsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - PermissionsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Retrieves details of an Android app permission for display to an enterprise
|
| - * admin.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [permissionId] - The ID of the permission.
|
| - *
|
| - * [language] - The BCP47 tag for the user's preferred language (e.g. "en-US",
|
| - * "de")
|
| - *
|
| - * Completes with a [Permission].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Permission> get(core.String permissionId, {core.String language}) {
|
| + PermissionsResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Retrieves details of an Android app permission for display to an
|
| + /// enterprise admin.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [permissionId] - The ID of the permission.
|
| + ///
|
| + /// [language] - The BCP47 tag for the user's preferred language (e.g.
|
| + /// "en-US", "de")
|
| + ///
|
| + /// Completes with a [Permission].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Permission> get(core.String permissionId,
|
| + {core.String language}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2408,48 +2502,44 @@ class PermissionsResourceApi {
|
|
|
| _url = 'permissions/' + commons.Escaper.ecapeVariable('$permissionId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Permission.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class ProductsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ProductsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Approves the specified product and the relevant app permissions, if any.
|
| - * The maximum number of products that you can approve per enterprise customer
|
| - * is 1,000.
|
| - *
|
| - * To learn how to use managed Google Play to design and create a store layout
|
| - * to display approved products to your users, see Store Layout Design.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [productId] - The ID of the product.
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future approve(ProductsApproveRequest request, core.String enterpriseId, core.String productId) {
|
| + ProductsResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Approves the specified product and the relevant app permissions, if any.
|
| + /// The maximum number of products that you can approve per enterprise
|
| + /// customer is 1,000.
|
| + ///
|
| + /// To learn how to use managed Google Play to design and create a store
|
| + /// layout to display approved products to your users, see Store Layout
|
| + /// Design.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [productId] - The ID of the product.
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future approve(ProductsApproveRequest request, core.String enterpriseId,
|
| + core.String productId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2469,48 +2559,51 @@ class ProductsResourceApi {
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/products/' + commons.Escaper.ecapeVariable('$productId') + '/approve';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/products/' +
|
| + commons.Escaper.ecapeVariable('$productId') +
|
| + '/approve';
|
| +
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
|
|
| - /**
|
| - * Generates a URL that can be rendered in an iframe to display the
|
| - * permissions (if any) of a product. An enterprise admin must view these
|
| - * permissions and accept them on behalf of their organization in order to
|
| - * approve that product.
|
| - *
|
| - * Admins should accept the displayed permissions by interacting with a
|
| - * separate UI element in the EMM console, which in turn should trigger the
|
| - * use of this URL as the approvalUrlInfo.approvalUrl property in a
|
| - * Products.approve call to approve the product. This URL can only be used to
|
| - * display permissions for up to 1 day.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [productId] - The ID of the product.
|
| - *
|
| - * [languageCode] - The BCP 47 language code used for permission names and
|
| - * descriptions in the returned iframe, for instance "en-US".
|
| - *
|
| - * Completes with a [ProductsGenerateApprovalUrlResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ProductsGenerateApprovalUrlResponse> generateApprovalUrl(core.String enterpriseId, core.String productId, {core.String languageCode}) {
|
| + /// Generates a URL that can be rendered in an iframe to display the
|
| + /// permissions (if any) of a product. An enterprise admin must view these
|
| + /// permissions and accept them on behalf of their organization in order to
|
| + /// approve that product.
|
| + ///
|
| + /// Admins should accept the displayed permissions by interacting with a
|
| + /// separate UI element in the EMM console, which in turn should trigger the
|
| + /// use of this URL as the approvalUrlInfo.approvalUrl property in a
|
| + /// Products.approve call to approve the product. This URL can only be used
|
| + /// to display permissions for up to 1 day.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [productId] - The ID of the product.
|
| + ///
|
| + /// [languageCode] - The BCP 47 language code used for permission names and
|
| + /// descriptions in the returned iframe, for instance "en-US".
|
| + ///
|
| + /// Completes with a [ProductsGenerateApprovalUrlResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ProductsGenerateApprovalUrlResponse> generateApprovalUrl(
|
| + core.String enterpriseId, core.String productId,
|
| + {core.String languageCode}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2528,39 +2621,42 @@ class ProductsResourceApi {
|
| _queryParams["languageCode"] = [languageCode];
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/products/' + commons.Escaper.ecapeVariable('$productId') + '/generateApprovalUrl';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new ProductsGenerateApprovalUrlResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Retrieves details of a product for display to an enterprise admin.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [productId] - The ID of the product, e.g. "app:com.google.android.gm".
|
| - *
|
| - * [language] - The BCP47 tag for the user's preferred language (e.g. "en-US",
|
| - * "de").
|
| - *
|
| - * Completes with a [Product].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Product> get(core.String enterpriseId, core.String productId, {core.String language}) {
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/products/' +
|
| + commons.Escaper.ecapeVariable('$productId') +
|
| + '/generateApprovalUrl';
|
| +
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new ProductsGenerateApprovalUrlResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Retrieves details of a product for display to an enterprise admin.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [productId] - The ID of the product, e.g. "app:com.google.android.gm".
|
| + ///
|
| + /// [language] - The BCP47 tag for the user's preferred language (e.g.
|
| + /// "en-US", "de").
|
| + ///
|
| + /// Completes with a [Product].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Product> get(core.String enterpriseId, core.String productId,
|
| + {core.String language}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2578,44 +2674,46 @@ class ProductsResourceApi {
|
| _queryParams["language"] = [language];
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/products/' + commons.Escaper.ecapeVariable('$productId');
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/products/' +
|
| + commons.Escaper.ecapeVariable('$productId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Product.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Retrieves the schema that defines the configurable properties for this
|
| - * product. All products have a schema, but this schema may be empty if no
|
| - * managed configurations have been defined. This schema can be used to
|
| - * populate a UI that allows an admin to configure the product. To apply a
|
| - * managed configuration based on the schema obtained using this API, see
|
| - * Managed Configurations through Play.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [productId] - The ID of the product.
|
| - *
|
| - * [language] - The BCP47 tag for the user's preferred language (e.g. "en-US",
|
| - * "de").
|
| - *
|
| - * Completes with a [AppRestrictionsSchema].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<AppRestrictionsSchema> getAppRestrictionsSchema(core.String enterpriseId, core.String productId, {core.String language}) {
|
| + /// Retrieves the schema that defines the configurable properties for this
|
| + /// product. All products have a schema, but this schema may be empty if no
|
| + /// managed configurations have been defined. This schema can be used to
|
| + /// populate a UI that allows an admin to configure the product. To apply a
|
| + /// managed configuration based on the schema obtained using this API, see
|
| + /// Managed Configurations through Play.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [productId] - The ID of the product.
|
| + ///
|
| + /// [language] - The BCP47 tag for the user's preferred language (e.g.
|
| + /// "en-US", "de").
|
| + ///
|
| + /// Completes with a [AppRestrictionsSchema].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<AppRestrictionsSchema> getAppRestrictionsSchema(
|
| + core.String enterpriseId, core.String productId,
|
| + {core.String language}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2633,36 +2731,38 @@ class ProductsResourceApi {
|
| _queryParams["language"] = [language];
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/products/' + commons.Escaper.ecapeVariable('$productId') + '/appRestrictionsSchema';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/products/' +
|
| + commons.Escaper.ecapeVariable('$productId') +
|
| + '/appRestrictionsSchema';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new AppRestrictionsSchema.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Retrieves the Android app permissions required by this app.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [productId] - The ID of the product.
|
| - *
|
| - * Completes with a [ProductPermissions].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ProductPermissions> getPermissions(core.String enterpriseId, core.String productId) {
|
| + /// Retrieves the Android app permissions required by this app.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [productId] - The ID of the product.
|
| + ///
|
| + /// Completes with a [ProductPermissions].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ProductPermissions> getPermissions(
|
| + core.String enterpriseId, core.String productId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2677,57 +2777,63 @@ class ProductsResourceApi {
|
| throw new core.ArgumentError("Parameter productId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/products/' + commons.Escaper.ecapeVariable('$productId') + '/permissions';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/products/' +
|
| + commons.Escaper.ecapeVariable('$productId') +
|
| + '/permissions';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ProductPermissions.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Finds approved products that match a query, or all approved products if
|
| - * there is no query.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [approved] - Specifies whether to search among all products (false) or
|
| - * among only products that have been approved (true). Only "true" is
|
| - * supported, and should be specified.
|
| - *
|
| - * [language] - The BCP47 tag for the user's preferred language (e.g. "en-US",
|
| - * "de"). Results are returned in the language best matching the preferred
|
| - * language.
|
| - *
|
| - * [maxResults] - Specifies the maximum number of products that can be
|
| - * returned per request. If not specified, uses a default value of 100, which
|
| - * is also the maximum retrievable within a single response.
|
| - *
|
| - * [query] - The search query as typed in the Google Play store search box. If
|
| - * omitted, all approved apps will be returned (using the pagination
|
| - * parameters), including apps that are not available in the store (e.g.
|
| - * unpublished apps).
|
| - *
|
| - * [token] - A pagination token is contained in a request''s response when
|
| - * there are more products. The token can be used in a subsequent request to
|
| - * obtain more products, and so forth. This parameter cannot be used in the
|
| - * initial request.
|
| - *
|
| - * Completes with a [ProductsListResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ProductsListResponse> list(core.String enterpriseId, {core.bool approved, core.String language, core.int maxResults, core.String query, core.String token}) {
|
| + /// Finds approved products that match a query, or all approved products if
|
| + /// there is no query.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [approved] - Specifies whether to search among all products (false) or
|
| + /// among only products that have been approved (true). Only "true" is
|
| + /// supported, and should be specified.
|
| + ///
|
| + /// [language] - The BCP47 tag for the user's preferred language (e.g.
|
| + /// "en-US", "de"). Results are returned in the language best matching the
|
| + /// preferred language.
|
| + ///
|
| + /// [maxResults] - Specifies the maximum number of products that can be
|
| + /// returned per request. If not specified, uses a default value of 100,
|
| + /// which is also the maximum retrievable within a single response.
|
| + ///
|
| + /// [query] - The search query as typed in the Google Play store search box.
|
| + /// If omitted, all approved apps will be returned (using the pagination
|
| + /// parameters), including apps that are not available in the store (e.g.
|
| + /// unpublished apps).
|
| + ///
|
| + /// [token] - A pagination token is contained in a request''s response when
|
| + /// there are more products. The token can be used in a subsequent request to
|
| + /// obtain more products, and so forth. This parameter cannot be used in the
|
| + /// initial request.
|
| + ///
|
| + /// Completes with a [ProductsListResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ProductsListResponse> list(core.String enterpriseId,
|
| + {core.bool approved,
|
| + core.String language,
|
| + core.int maxResults,
|
| + core.String query,
|
| + core.String token}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2754,33 +2860,33 @@ class ProductsResourceApi {
|
| _queryParams["token"] = [token];
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/products';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/products';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ProductsListResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Unapproves the specified product (and the relevant app permissions, if any)
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [productId] - The ID of the product.
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Unapproves the specified product (and the relevant app permissions, if
|
| + /// any)
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [productId] - The ID of the product.
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future unapprove(core.String enterpriseId, core.String productId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -2798,45 +2904,45 @@ class ProductsResourceApi {
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/products/' + commons.Escaper.ecapeVariable('$productId') + '/unapprove';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/products/' +
|
| + commons.Escaper.ecapeVariable('$productId') +
|
| + '/unapprove';
|
| +
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
| -
|
| }
|
|
|
| -
|
| class ServiceaccountkeysResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ServiceaccountkeysResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Removes and invalidates the specified credentials for the service account
|
| - * associated with this enterprise. The calling service account must have been
|
| - * retrieved by calling Enterprises.GetServiceAccount and must have been set
|
| - * as the enterprise service account by calling Enterprises.SetAccount.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [keyId] - The ID of the key.
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + ServiceaccountkeysResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Removes and invalidates the specified credentials for the service account
|
| + /// associated with this enterprise. The calling service account must have
|
| + /// been retrieved by calling Enterprises.GetServiceAccount and must have
|
| + /// been set as the enterprise service account by calling
|
| + /// Enterprises.SetAccount.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [keyId] - The ID of the key.
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future delete(core.String enterpriseId, core.String keyId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -2854,42 +2960,43 @@ class ServiceaccountkeysResourceApi {
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/serviceAccountKeys/' + commons.Escaper.ecapeVariable('$keyId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/serviceAccountKeys/' +
|
| + commons.Escaper.ecapeVariable('$keyId');
|
| +
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
|
|
| - /**
|
| - * Generates new credentials for the service account associated with this
|
| - * enterprise. The calling service account must have been retrieved by calling
|
| - * Enterprises.GetServiceAccount and must have been set as the enterprise
|
| - * service account by calling Enterprises.SetAccount.
|
| - *
|
| - * Only the type of the key should be populated in the resource to be
|
| - * inserted.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * Completes with a [ServiceAccountKey].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ServiceAccountKey> insert(ServiceAccountKey request, core.String enterpriseId) {
|
| + /// Generates new credentials for the service account associated with this
|
| + /// enterprise. The calling service account must have been retrieved by
|
| + /// calling Enterprises.GetServiceAccount and must have been set as the
|
| + /// enterprise service account by calling Enterprises.SetAccount.
|
| + ///
|
| + /// Only the type of the key should be populated in the resource to be
|
| + /// inserted.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// Completes with a [ServiceAccountKey].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ServiceAccountKey> insert(
|
| + ServiceAccountKey request, core.String enterpriseId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2904,37 +3011,36 @@ class ServiceaccountkeysResourceApi {
|
| throw new core.ArgumentError("Parameter enterpriseId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/serviceAccountKeys';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/serviceAccountKeys';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ServiceAccountKey.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Lists all active credentials for the service account associated with this
|
| - * enterprise. Only the ID and key type are returned. The calling service
|
| - * account must have been retrieved by calling Enterprises.GetServiceAccount
|
| - * and must have been set as the enterprise service account by calling
|
| - * Enterprises.SetAccount.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * Completes with a [ServiceAccountKeysListResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Lists all active credentials for the service account associated with this
|
| + /// enterprise. Only the ID and key type are returned. The calling service
|
| + /// account must have been retrieved by calling Enterprises.GetServiceAccount
|
| + /// and must have been set as the enterprise service account by calling
|
| + /// Enterprises.SetAccount.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// Completes with a [ServiceAccountKeysListResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<ServiceAccountKeysListResponse> list(core.String enterpriseId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -2947,45 +3053,44 @@ class ServiceaccountkeysResourceApi {
|
| throw new core.ArgumentError("Parameter enterpriseId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/serviceAccountKeys';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/serviceAccountKeys';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new ServiceAccountKeysListResponse.fromJson(data));
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new ServiceAccountKeysListResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class StorelayoutclustersResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - StorelayoutclustersResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Deletes a cluster.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [pageId] - The ID of the page.
|
| - *
|
| - * [clusterId] - The ID of the cluster.
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future delete(core.String enterpriseId, core.String pageId, core.String clusterId) {
|
| + StorelayoutclustersResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Deletes a cluster.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [pageId] - The ID of the page.
|
| + ///
|
| + /// [clusterId] - The ID of the cluster.
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future delete(
|
| + core.String enterpriseId, core.String pageId, core.String clusterId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3005,38 +3110,41 @@ class StorelayoutclustersResourceApi {
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/storeLayout/pages/' + commons.Escaper.ecapeVariable('$pageId') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/storeLayout/pages/' +
|
| + commons.Escaper.ecapeVariable('$pageId') +
|
| + '/clusters/' +
|
| + commons.Escaper.ecapeVariable('$clusterId');
|
| +
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
|
|
| - /**
|
| - * Retrieves details of a cluster.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [pageId] - The ID of the page.
|
| - *
|
| - * [clusterId] - The ID of the cluster.
|
| - *
|
| - * Completes with a [StoreCluster].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<StoreCluster> get(core.String enterpriseId, core.String pageId, core.String clusterId) {
|
| + /// Retrieves details of a cluster.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [pageId] - The ID of the page.
|
| + ///
|
| + /// [clusterId] - The ID of the cluster.
|
| + ///
|
| + /// Completes with a [StoreCluster].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<StoreCluster> get(
|
| + core.String enterpriseId, core.String pageId, core.String clusterId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3054,38 +3162,41 @@ class StorelayoutclustersResourceApi {
|
| throw new core.ArgumentError("Parameter clusterId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/storeLayout/pages/' + commons.Escaper.ecapeVariable('$pageId') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId');
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/storeLayout/pages/' +
|
| + commons.Escaper.ecapeVariable('$pageId') +
|
| + '/clusters/' +
|
| + commons.Escaper.ecapeVariable('$clusterId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new StoreCluster.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Inserts a new cluster in a page.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [pageId] - The ID of the page.
|
| - *
|
| - * Completes with a [StoreCluster].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<StoreCluster> insert(StoreCluster request, core.String enterpriseId, core.String pageId) {
|
| + /// Inserts a new cluster in a page.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [pageId] - The ID of the page.
|
| + ///
|
| + /// Completes with a [StoreCluster].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<StoreCluster> insert(
|
| + StoreCluster request, core.String enterpriseId, core.String pageId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3103,36 +3214,38 @@ class StorelayoutclustersResourceApi {
|
| throw new core.ArgumentError("Parameter pageId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/storeLayout/pages/' + commons.Escaper.ecapeVariable('$pageId') + '/clusters';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/storeLayout/pages/' +
|
| + commons.Escaper.ecapeVariable('$pageId') +
|
| + '/clusters';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new StoreCluster.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Retrieves the details of all clusters on the specified page.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [pageId] - The ID of the page.
|
| - *
|
| - * Completes with a [StoreLayoutClustersListResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<StoreLayoutClustersListResponse> list(core.String enterpriseId, core.String pageId) {
|
| + /// Retrieves the details of all clusters on the specified page.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [pageId] - The ID of the page.
|
| + ///
|
| + /// Completes with a [StoreLayoutClustersListResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<StoreLayoutClustersListResponse> list(
|
| + core.String enterpriseId, core.String pageId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3147,40 +3260,43 @@ class StorelayoutclustersResourceApi {
|
| throw new core.ArgumentError("Parameter pageId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/storeLayout/pages/' + commons.Escaper.ecapeVariable('$pageId') + '/clusters';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new StoreLayoutClustersListResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Updates a cluster. This method supports patch semantics.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [pageId] - The ID of the page.
|
| - *
|
| - * [clusterId] - The ID of the cluster.
|
| - *
|
| - * Completes with a [StoreCluster].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<StoreCluster> patch(StoreCluster request, core.String enterpriseId, core.String pageId, core.String clusterId) {
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/storeLayout/pages/' +
|
| + commons.Escaper.ecapeVariable('$pageId') +
|
| + '/clusters';
|
| +
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new StoreLayoutClustersListResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Updates a cluster. This method supports patch semantics.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [pageId] - The ID of the page.
|
| + ///
|
| + /// [clusterId] - The ID of the cluster.
|
| + ///
|
| + /// Completes with a [StoreCluster].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<StoreCluster> patch(StoreCluster request,
|
| + core.String enterpriseId, core.String pageId, core.String clusterId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3201,40 +3317,43 @@ class StorelayoutclustersResourceApi {
|
| throw new core.ArgumentError("Parameter clusterId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/storeLayout/pages/' + commons.Escaper.ecapeVariable('$pageId') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId');
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/storeLayout/pages/' +
|
| + commons.Escaper.ecapeVariable('$pageId') +
|
| + '/clusters/' +
|
| + commons.Escaper.ecapeVariable('$clusterId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PATCH",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PATCH",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new StoreCluster.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates a cluster.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [pageId] - The ID of the page.
|
| - *
|
| - * [clusterId] - The ID of the cluster.
|
| - *
|
| - * Completes with a [StoreCluster].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<StoreCluster> update(StoreCluster request, core.String enterpriseId, core.String pageId, core.String clusterId) {
|
| + /// Updates a cluster.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [pageId] - The ID of the page.
|
| + ///
|
| + /// [clusterId] - The ID of the cluster.
|
| + ///
|
| + /// Completes with a [StoreCluster].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<StoreCluster> update(StoreCluster request,
|
| + core.String enterpriseId, core.String pageId, core.String clusterId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3255,42 +3374,42 @@ class StorelayoutclustersResourceApi {
|
| throw new core.ArgumentError("Parameter clusterId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/storeLayout/pages/' + commons.Escaper.ecapeVariable('$pageId') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId');
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/storeLayout/pages/' +
|
| + commons.Escaper.ecapeVariable('$pageId') +
|
| + '/clusters/' +
|
| + commons.Escaper.ecapeVariable('$clusterId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new StoreCluster.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class StorelayoutpagesResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - StorelayoutpagesResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Deletes a store page.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [pageId] - The ID of the page.
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + StorelayoutpagesResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Deletes a store page.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [pageId] - The ID of the page.
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future delete(core.String enterpriseId, core.String pageId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -3308,35 +3427,35 @@ class StorelayoutpagesResourceApi {
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/storeLayout/pages/' + commons.Escaper.ecapeVariable('$pageId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/storeLayout/pages/' +
|
| + commons.Escaper.ecapeVariable('$pageId');
|
| +
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
|
|
| - /**
|
| - * Retrieves details of a store page.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [pageId] - The ID of the page.
|
| - *
|
| - * Completes with a [StorePage].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Retrieves details of a store page.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [pageId] - The ID of the page.
|
| + ///
|
| + /// Completes with a [StorePage].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<StorePage> get(core.String enterpriseId, core.String pageId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -3352,35 +3471,35 @@ class StorelayoutpagesResourceApi {
|
| throw new core.ArgumentError("Parameter pageId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/storeLayout/pages/' + commons.Escaper.ecapeVariable('$pageId');
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/storeLayout/pages/' +
|
| + commons.Escaper.ecapeVariable('$pageId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new StorePage.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Inserts a new store page.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * Completes with a [StorePage].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Inserts a new store page.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// Completes with a [StorePage].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<StorePage> insert(StorePage request, core.String enterpriseId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -3396,33 +3515,32 @@ class StorelayoutpagesResourceApi {
|
| throw new core.ArgumentError("Parameter enterpriseId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/storeLayout/pages';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/storeLayout/pages';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new StorePage.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Retrieves the details of all pages in the store.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * Completes with a [StoreLayoutPagesListResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Retrieves the details of all pages in the store.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// Completes with a [StoreLayoutPagesListResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<StoreLayoutPagesListResponse> list(core.String enterpriseId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -3435,38 +3553,40 @@ class StorelayoutpagesResourceApi {
|
| throw new core.ArgumentError("Parameter enterpriseId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/storeLayout/pages';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new StoreLayoutPagesListResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Updates the content of a store page. This method supports patch semantics.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [pageId] - The ID of the page.
|
| - *
|
| - * Completes with a [StorePage].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<StorePage> patch(StorePage request, core.String enterpriseId, core.String pageId) {
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/storeLayout/pages';
|
| +
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new StoreLayoutPagesListResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Updates the content of a store page. This method supports patch
|
| + /// semantics.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [pageId] - The ID of the page.
|
| + ///
|
| + /// Completes with a [StorePage].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<StorePage> patch(
|
| + StorePage request, core.String enterpriseId, core.String pageId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3484,38 +3604,39 @@ class StorelayoutpagesResourceApi {
|
| throw new core.ArgumentError("Parameter pageId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/storeLayout/pages/' + commons.Escaper.ecapeVariable('$pageId');
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/storeLayout/pages/' +
|
| + commons.Escaper.ecapeVariable('$pageId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PATCH",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PATCH",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new StorePage.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates the content of a store page.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [pageId] - The ID of the page.
|
| - *
|
| - * Completes with a [StorePage].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<StorePage> update(StorePage request, core.String enterpriseId, core.String pageId) {
|
| + /// Updates the content of a store page.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [pageId] - The ID of the page.
|
| + ///
|
| + /// Completes with a [StorePage].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<StorePage> update(
|
| + StorePage request, core.String enterpriseId, core.String pageId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3533,42 +3654,39 @@ class StorelayoutpagesResourceApi {
|
| throw new core.ArgumentError("Parameter pageId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/storeLayout/pages/' + commons.Escaper.ecapeVariable('$pageId');
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/storeLayout/pages/' +
|
| + commons.Escaper.ecapeVariable('$pageId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new StorePage.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class UsersResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - UsersResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Deleted an EMM-managed user.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + UsersResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Deleted an EMM-managed user.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future delete(core.String enterpriseId, core.String userId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -3586,40 +3704,41 @@ class UsersResourceApi {
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId');
|
| +
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
|
|
| - /**
|
| - * Generates an authentication token which the device policy client can use to
|
| - * provision the given EMM-managed user account on a device. The generated
|
| - * token is single-use and expires after a few minutes.
|
| - *
|
| - * This call only works with EMM-managed accounts.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * Completes with a [AuthenticationToken].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<AuthenticationToken> generateAuthenticationToken(core.String enterpriseId, core.String userId) {
|
| + /// Generates an authentication token which the device policy client can use
|
| + /// to provision the given EMM-managed user account on a device. The
|
| + /// generated token is single-use and expires after a few minutes.
|
| + ///
|
| + /// This call only works with EMM-managed accounts.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// Completes with a [AuthenticationToken].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<AuthenticationToken> generateAuthenticationToken(
|
| + core.String enterpriseId, core.String userId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3634,40 +3753,42 @@ class UsersResourceApi {
|
| throw new core.ArgumentError("Parameter userId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/authenticationToken';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/authenticationToken';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new AuthenticationToken.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Generates a token (activation code) to allow this user to configure their
|
| - * managed account in the Android Setup Wizard. Revokes any previously
|
| - * generated token.
|
| - *
|
| - * This call only works with Google managed accounts.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * Completes with a [UserToken].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<UserToken> generateToken(core.String enterpriseId, core.String userId) {
|
| + /// Generates a token (activation code) to allow this user to configure their
|
| + /// managed account in the Android Setup Wizard. Revokes any previously
|
| + /// generated token.
|
| + ///
|
| + /// This call only works with Google managed accounts.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// Completes with a [UserToken].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<UserToken> generateToken(
|
| + core.String enterpriseId, core.String userId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3682,35 +3803,36 @@ class UsersResourceApi {
|
| throw new core.ArgumentError("Parameter userId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/token';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/token';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new UserToken.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Retrieves a user's details.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * Completes with a [User].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Retrieves a user's details.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// Completes with a [User].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<User> get(core.String enterpriseId, core.String userId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -3726,36 +3848,37 @@ class UsersResourceApi {
|
| throw new core.ArgumentError("Parameter userId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId');
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new User.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Retrieves the set of products a user is entitled to access.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * Completes with a [ProductSet].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ProductSet> getAvailableProductSet(core.String enterpriseId, core.String userId) {
|
| + /// Retrieves the set of products a user is entitled to access.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// Completes with a [ProductSet].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ProductSet> getAvailableProductSet(
|
| + core.String enterpriseId, core.String userId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3770,41 +3893,42 @@ class UsersResourceApi {
|
| throw new core.ArgumentError("Parameter userId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/availableProductSet';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/availableProductSet';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ProductSet.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Creates a new EMM-managed user.
|
| - *
|
| - * The Users resource passed in the body of the request should include an
|
| - * accountIdentifier and an accountType.
|
| - * If a corresponding user already exists with the same account identifier,
|
| - * the user will be updated with the resource. In this case only the
|
| - * displayName field can be changed.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * Completes with a [User].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Creates a new EMM-managed user.
|
| + ///
|
| + /// The Users resource passed in the body of the request should include an
|
| + /// accountIdentifier and an accountType.
|
| + /// If a corresponding user already exists with the same account identifier,
|
| + /// the user will be updated with the resource. In this case only the
|
| + /// displayName field can be changed.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// Completes with a [User].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<User> insert(User request, core.String enterpriseId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -3820,38 +3944,39 @@ class UsersResourceApi {
|
| throw new core.ArgumentError("Parameter enterpriseId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new User.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Looks up a user by primary email address. This is only supported for
|
| - * Google-managed users. Lookup of the id is not needed for EMM-managed users
|
| - * because the id is already returned in the result of the Users.insert call.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [email] - The exact primary email address of the user to look up.
|
| - *
|
| - * Completes with a [UsersListResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<UsersListResponse> list(core.String enterpriseId, core.String email) {
|
| + /// Looks up a user by primary email address. This is only supported for
|
| + /// Google-managed users. Lookup of the id is not needed for EMM-managed
|
| + /// users because the id is already returned in the result of the
|
| + /// Users.insert call.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [email] - The exact primary email address of the user to look up.
|
| + ///
|
| + /// Completes with a [UsersListResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<UsersListResponse> list(
|
| + core.String enterpriseId, core.String email) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3867,43 +3992,43 @@ class UsersResourceApi {
|
| }
|
| _queryParams["email"] = [email];
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new UsersListResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates the details of an EMM-managed user.
|
| - *
|
| - * Can be used with EMM-managed users only (not Google managed users). Pass
|
| - * the new details in the Users resource in the request body. Only the
|
| - * displayName field can be changed. Other fields must either be unset or have
|
| - * the currently active value. This method supports patch semantics.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * Completes with a [User].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<User> patch(User request, core.String enterpriseId, core.String userId) {
|
| + /// Updates the details of an EMM-managed user.
|
| + ///
|
| + /// Can be used with EMM-managed users only (not Google managed users). Pass
|
| + /// the new details in the Users resource in the request body. Only the
|
| + /// displayName field can be changed. Other fields must either be unset or
|
| + /// have the currently active value. This method supports patch semantics.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// Completes with a [User].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<User> patch(
|
| + User request, core.String enterpriseId, core.String userId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3921,33 +4046,33 @@ class UsersResourceApi {
|
| throw new core.ArgumentError("Parameter userId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId');
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PATCH",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PATCH",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new User.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Revokes a previously generated token (activation code) for the user.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Revokes a previously generated token (activation code) for the user.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future revokeToken(core.String enterpriseId, core.String userId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -3965,41 +4090,43 @@ class UsersResourceApi {
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/token';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/token';
|
| +
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
|
|
| - /**
|
| - * Modifies the set of products that a user is entitled to access (referred to
|
| - * as whitelisted products). Only products that are approved or products that
|
| - * were previously approved (products with revoked approval) can be
|
| - * whitelisted.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * Completes with a [ProductSet].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ProductSet> setAvailableProductSet(ProductSet request, core.String enterpriseId, core.String userId) {
|
| + /// Modifies the set of products that a user is entitled to access (referred
|
| + /// to as whitelisted products). Only products that are approved or products
|
| + /// that were previously approved (products with revoked approval) can be
|
| + /// whitelisted.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// Completes with a [ProductSet].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ProductSet> setAvailableProductSet(
|
| + ProductSet request, core.String enterpriseId, core.String userId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -4017,43 +4144,45 @@ class UsersResourceApi {
|
| throw new core.ArgumentError("Parameter userId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId') + '/availableProductSet';
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId') +
|
| + '/availableProductSet';
|
|
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ProductSet.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates the details of an EMM-managed user.
|
| - *
|
| - * Can be used with EMM-managed users only (not Google managed users). Pass
|
| - * the new details in the Users resource in the request body. Only the
|
| - * displayName field can be changed. Other fields must either be unset or have
|
| - * the currently active value.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [enterpriseId] - The ID of the enterprise.
|
| - *
|
| - * [userId] - The ID of the user.
|
| - *
|
| - * Completes with a [User].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<User> update(User request, core.String enterpriseId, core.String userId) {
|
| + /// Updates the details of an EMM-managed user.
|
| + ///
|
| + /// Can be used with EMM-managed users only (not Google managed users). Pass
|
| + /// the new details in the Users resource in the request body. Only the
|
| + /// displayName field can be changed. Other fields must either be unset or
|
| + /// have the currently active value.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [enterpriseId] - The ID of the enterprise.
|
| + ///
|
| + /// [userId] - The ID of the user.
|
| + ///
|
| + /// Completes with a [User].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<User> update(
|
| + User request, core.String enterpriseId, core.String userId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -4071,28 +4200,25 @@ class UsersResourceApi {
|
| throw new core.ArgumentError("Parameter userId is required.");
|
| }
|
|
|
| - _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/users/' + commons.Escaper.ecapeVariable('$userId');
|
| + _url = 'enterprises/' +
|
| + commons.Escaper.ecapeVariable('$enterpriseId') +
|
| + '/users/' +
|
| + commons.Escaper.ecapeVariable('$userId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new User.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| -
|
| -/**
|
| - * This represents an enterprise admin who can manage the enterprise in the
|
| - * managed Google Play store.
|
| - */
|
| +/// This represents an enterprise admin who can manage the enterprise in the
|
| +/// managed Google Play store.
|
| class Administrator {
|
| - /** The admin's email address. */
|
| + /// The admin's email address.
|
| core.String email;
|
|
|
| Administrator();
|
| @@ -4104,7 +4230,8 @@ class Administrator {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (email != null) {
|
| _json["email"] = email;
|
| }
|
| @@ -4112,16 +4239,13 @@ class Administrator {
|
| }
|
| }
|
|
|
| -/** A token authorizing an admin to access an iframe. */
|
| +/// A token authorizing an admin to access an iframe.
|
| class AdministratorWebToken {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#administratorWebToken".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#administratorWebToken".
|
| core.String kind;
|
| - /**
|
| - * An opaque token to be passed to the Play front-end to generate an iframe.
|
| - */
|
| +
|
| + /// An opaque token to be passed to the Play front-end to generate an iframe.
|
| core.String token;
|
|
|
| AdministratorWebToken();
|
| @@ -4136,7 +4260,8 @@ class AdministratorWebToken {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| @@ -4147,28 +4272,22 @@ class AdministratorWebToken {
|
| }
|
| }
|
|
|
| -/**
|
| - * Specification for a token used to generate iframes. The token specifies what
|
| - * data the admin is allowed to modify and the URI the iframe is allowed to
|
| - * communiate with.
|
| - */
|
| +/// Specification for a token used to generate iframes. The token specifies
|
| +/// what data the admin is allowed to modify and the URI the iframe is allowed
|
| +/// to communiate with.
|
| class AdministratorWebTokenSpec {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#administratorWebTokenSpec".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#administratorWebTokenSpec".
|
| core.String kind;
|
| - /**
|
| - * The URI of the parent frame hosting the iframe. To prevent XSS, the iframe
|
| - * may not be hosted at other URIs. This URI must be https.
|
| - */
|
| +
|
| + /// The URI of the parent frame hosting the iframe. To prevent XSS, the
|
| + /// iframe may not be hosted at other URIs. This URI must be https.
|
| core.String parent;
|
| - /**
|
| - * The list of permissions the admin is granted within the iframe. The admin
|
| - * will only be allowed to view an iframe if they have all of the permissions
|
| - * associated with it. The only valid value is "approveApps" that will allow
|
| - * the admin to access the iframe in "approve" mode.
|
| - */
|
| +
|
| + /// The list of permissions the admin is granted within the iframe. The admin
|
| + /// will only be allowed to view an iframe if they have all of the
|
| + /// permissions associated with it. The only valid value is "approveApps"
|
| + /// that will allow the admin to access the iframe in "approve" mode.
|
| core.List<core.String> permission;
|
|
|
| AdministratorWebTokenSpec();
|
| @@ -4186,7 +4305,8 @@ class AdministratorWebTokenSpec {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| @@ -4200,18 +4320,16 @@ class AdministratorWebTokenSpec {
|
| }
|
| }
|
|
|
| -/** The Android Device Policy configuration of an enterprise. */
|
| +/// The Android Device Policy configuration of an enterprise.
|
| class AndroidDevicePolicyConfig {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#androidDevicePolicyConfig".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#androidDevicePolicyConfig".
|
| core.String kind;
|
| - /**
|
| - * The state of Android Device Policy. "enabled" indicates that Android Device
|
| - * Policy is enabled for the enterprise and the EMM is allowed to manage
|
| - * devices with Android Device Policy, while "disabled" means that it cannot.
|
| - */
|
| +
|
| + /// The state of Android Device Policy. "enabled" indicates that Android
|
| + /// Device Policy is enabled for the enterprise and the EMM is allowed to
|
| + /// manage devices with Android Device Policy, while "disabled" means that it
|
| + /// cannot.
|
| core.String state;
|
|
|
| AndroidDevicePolicyConfig();
|
| @@ -4226,7 +4344,8 @@ class AndroidDevicePolicyConfig {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| @@ -4237,17 +4356,14 @@ class AndroidDevicePolicyConfig {
|
| }
|
| }
|
|
|
| -/**
|
| - * Represents the list of app restrictions available to be pre-configured for
|
| - * the product.
|
| - */
|
| +/// Represents the list of app restrictions available to be pre-configured for
|
| +/// the product.
|
| class AppRestrictionsSchema {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#appRestrictionsSchema".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#appRestrictionsSchema".
|
| core.String kind;
|
| - /** The set of restrictions that make up this schema. */
|
| +
|
| + /// The set of restrictions that make up this schema.
|
| core.List<AppRestrictionsSchemaRestriction> restrictions;
|
|
|
| AppRestrictionsSchema();
|
| @@ -4257,32 +4373,32 @@ class AppRestrictionsSchema {
|
| kind = _json["kind"];
|
| }
|
| if (_json.containsKey("restrictions")) {
|
| - restrictions = _json["restrictions"].map((value) => new AppRestrictionsSchemaRestriction.fromJson(value)).toList();
|
| + restrictions = _json["restrictions"]
|
| + .map((value) => new AppRestrictionsSchemaRestriction.fromJson(value))
|
| + .toList();
|
| }
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| if (restrictions != null) {
|
| - _json["restrictions"] = restrictions.map((value) => (value).toJson()).toList();
|
| + _json["restrictions"] =
|
| + restrictions.map((value) => (value).toJson()).toList();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/**
|
| - * An event generated when a new app version is uploaded to Google Play and its
|
| - * app restrictions schema changed. To fetch the app restrictions schema for an
|
| - * app, use Products.getAppRestrictionsSchema on the EMM API.
|
| - */
|
| +/// An event generated when a new app version is uploaded to Google Play and
|
| +/// its app restrictions schema changed. To fetch the app restrictions schema
|
| +/// for an app, use Products.getAppRestrictionsSchema on the EMM API.
|
| class AppRestrictionsSchemaChangeEvent {
|
| - /**
|
| - * The id of the product (e.g. "app:com.google.android.gm") for which the app
|
| - * restriction schema changed. This field will always be present.
|
| - */
|
| + /// The id of the product (e.g. "app:com.google.android.gm") for which the
|
| + /// app restriction schema changed. This field will always be present.
|
| core.String productId;
|
|
|
| AppRestrictionsSchemaChangeEvent();
|
| @@ -4294,7 +4410,8 @@ class AppRestrictionsSchemaChangeEvent {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (productId != null) {
|
| _json["productId"] = productId;
|
| }
|
| @@ -4302,54 +4419,49 @@ class AppRestrictionsSchemaChangeEvent {
|
| }
|
| }
|
|
|
| -/**
|
| - * A restriction in the App Restriction Schema represents a piece of
|
| - * configuration that may be pre-applied.
|
| - */
|
| +/// A restriction in the App Restriction Schema represents a piece of
|
| +/// configuration that may be pre-applied.
|
| class AppRestrictionsSchemaRestriction {
|
| - /**
|
| - * The default value of the restriction. bundle and bundleArray restrictions
|
| - * never have a default value.
|
| - */
|
| + /// The default value of the restriction. bundle and bundleArray restrictions
|
| + /// never have a default value.
|
| AppRestrictionsSchemaRestrictionRestrictionValue defaultValue;
|
| - /**
|
| - * A longer description of the restriction, giving more detail of what it
|
| - * affects.
|
| - */
|
| +
|
| + /// A longer description of the restriction, giving more detail of what it
|
| + /// affects.
|
| core.String description;
|
| - /**
|
| - * For choice or multiselect restrictions, the list of possible entries'
|
| - * human-readable names.
|
| - */
|
| +
|
| + /// For choice or multiselect restrictions, the list of possible entries'
|
| + /// human-readable names.
|
| core.List<core.String> entry;
|
| - /**
|
| - * For choice or multiselect restrictions, the list of possible entries'
|
| - * machine-readable values. These values should be used in the configuration,
|
| - * either as a single string value for a choice restriction or in a
|
| - * stringArray for a multiselect restriction.
|
| - */
|
| +
|
| + /// For choice or multiselect restrictions, the list of possible entries'
|
| + /// machine-readable values. These values should be used in the
|
| + /// configuration, either as a single string value for a choice restriction
|
| + /// or in a stringArray for a multiselect restriction.
|
| core.List<core.String> entryValue;
|
| - /**
|
| - * The unique key that the product uses to identify the restriction, e.g.
|
| - * "com.google.android.gm.fieldname".
|
| - */
|
| +
|
| + /// The unique key that the product uses to identify the restriction, e.g.
|
| + /// "com.google.android.gm.fieldname".
|
| core.String key;
|
| - /**
|
| - * For bundle or bundleArray restrictions, the list of nested restrictions. A
|
| - * bundle restriction is always nested within a bundleArray restriction, and a
|
| - * bundleArray restriction is at most two levels deep.
|
| - */
|
| +
|
| + /// For bundle or bundleArray restrictions, the list of nested restrictions.
|
| + /// A bundle restriction is always nested within a bundleArray restriction,
|
| + /// and a bundleArray restriction is at most two levels deep.
|
| core.List<AppRestrictionsSchemaRestriction> nestedRestriction;
|
| - /** The type of the restriction. */
|
| +
|
| + /// The type of the restriction.
|
| core.String restrictionType;
|
| - /** The name of the restriction. */
|
| +
|
| + /// The name of the restriction.
|
| core.String title;
|
|
|
| AppRestrictionsSchemaRestriction();
|
|
|
| AppRestrictionsSchemaRestriction.fromJson(core.Map _json) {
|
| if (_json.containsKey("defaultValue")) {
|
| - defaultValue = new AppRestrictionsSchemaRestrictionRestrictionValue.fromJson(_json["defaultValue"]);
|
| + defaultValue =
|
| + new AppRestrictionsSchemaRestrictionRestrictionValue.fromJson(
|
| + _json["defaultValue"]);
|
| }
|
| if (_json.containsKey("description")) {
|
| description = _json["description"];
|
| @@ -4364,7 +4476,9 @@ class AppRestrictionsSchemaRestriction {
|
| key = _json["key"];
|
| }
|
| if (_json.containsKey("nestedRestriction")) {
|
| - nestedRestriction = _json["nestedRestriction"].map((value) => new AppRestrictionsSchemaRestriction.fromJson(value)).toList();
|
| + nestedRestriction = _json["nestedRestriction"]
|
| + .map((value) => new AppRestrictionsSchemaRestriction.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("restrictionType")) {
|
| restrictionType = _json["restrictionType"];
|
| @@ -4375,7 +4489,8 @@ class AppRestrictionsSchemaRestriction {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (defaultValue != null) {
|
| _json["defaultValue"] = (defaultValue).toJson();
|
| }
|
| @@ -4392,7 +4507,8 @@ class AppRestrictionsSchemaRestriction {
|
| _json["key"] = key;
|
| }
|
| if (nestedRestriction != null) {
|
| - _json["nestedRestriction"] = nestedRestriction.map((value) => (value).toJson()).toList();
|
| + _json["nestedRestriction"] =
|
| + nestedRestriction.map((value) => (value).toJson()).toList();
|
| }
|
| if (restrictionType != null) {
|
| _json["restrictionType"] = restrictionType;
|
| @@ -4404,23 +4520,23 @@ class AppRestrictionsSchemaRestriction {
|
| }
|
| }
|
|
|
| -/** A typed value for the restriction. */
|
| +/// A typed value for the restriction.
|
| class AppRestrictionsSchemaRestrictionRestrictionValue {
|
| - /** The type of the value being provided. */
|
| + /// The type of the value being provided.
|
| core.String type;
|
| - /** The boolean value - this will only be present if type is bool. */
|
| +
|
| + /// The boolean value - this will only be present if type is bool.
|
| core.bool valueBool;
|
| - /** The integer value - this will only be present if type is integer. */
|
| +
|
| + /// The integer value - this will only be present if type is integer.
|
| core.int valueInteger;
|
| - /**
|
| - * The list of string values - this will only be present if type is
|
| - * multiselect.
|
| - */
|
| +
|
| + /// The list of string values - this will only be present if type is
|
| + /// multiselect.
|
| core.List<core.String> valueMultiselect;
|
| - /**
|
| - * The string value - this will be present for types string, choice and
|
| - * hidden.
|
| - */
|
| +
|
| + /// The string value - this will be present for types string, choice and
|
| + /// hidden.
|
| core.String valueString;
|
|
|
| AppRestrictionsSchemaRestrictionRestrictionValue();
|
| @@ -4444,7 +4560,8 @@ class AppRestrictionsSchemaRestrictionRestrictionValue {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (type != null) {
|
| _json["type"] = type;
|
| }
|
| @@ -4464,17 +4581,13 @@ class AppRestrictionsSchemaRestrictionRestrictionValue {
|
| }
|
| }
|
|
|
| -/**
|
| - * An event generated when a new version of an app is uploaded to Google Play.
|
| - * Notifications are sent for new public versions only: alpha, beta, or canary
|
| - * versions do not generate this event. To fetch up-to-date version history for
|
| - * an app, use Products.Get on the EMM API.
|
| - */
|
| +/// An event generated when a new version of an app is uploaded to Google Play.
|
| +/// Notifications are sent for new public versions only: alpha, beta, or canary
|
| +/// versions do not generate this event. To fetch up-to-date version history
|
| +/// for an app, use Products.Get on the EMM API.
|
| class AppUpdateEvent {
|
| - /**
|
| - * The id of the product (e.g. "app:com.google.android.gm") that was updated.
|
| - * This field will always be present.
|
| - */
|
| + /// The id of the product (e.g. "app:com.google.android.gm") that was
|
| + /// updated. This field will always be present.
|
| core.String productId;
|
|
|
| AppUpdateEvent();
|
| @@ -4486,7 +4599,8 @@ class AppUpdateEvent {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (productId != null) {
|
| _json["productId"] = productId;
|
| }
|
| @@ -4494,15 +4608,14 @@ class AppUpdateEvent {
|
| }
|
| }
|
|
|
| -/** This represents a single version of the app. */
|
| +/// This represents a single version of the app.
|
| class AppVersion {
|
| - /** Unique increasing identifier for the app version. */
|
| + /// Unique increasing identifier for the app version.
|
| core.int versionCode;
|
| - /**
|
| - * The string used in the Play store by the app developer to identify the
|
| - * version. The string is not necessarily unique or localized (for example,
|
| - * the string could be "1.4").
|
| - */
|
| +
|
| + /// The string used in the Play store by the app developer to identify the
|
| + /// version. The string is not necessarily unique or localized (for example,
|
| + /// the string could be "1.4").
|
| core.String versionString;
|
|
|
| AppVersion();
|
| @@ -4517,7 +4630,8 @@ class AppVersion {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (versionCode != null) {
|
| _json["versionCode"] = versionCode;
|
| }
|
| @@ -4528,17 +4642,14 @@ class AppVersion {
|
| }
|
| }
|
|
|
| -/** Information on an approval URL. */
|
| +/// Information on an approval URL.
|
| class ApprovalUrlInfo {
|
| - /**
|
| - * A URL that displays a product's permissions and that can also be used to
|
| - * approve the product with the Products.approve call.
|
| - */
|
| + /// A URL that displays a product's permissions and that can also be used to
|
| + /// approve the product with the Products.approve call.
|
| core.String approvalUrl;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#approvalUrlInfo".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#approvalUrlInfo".
|
| core.String kind;
|
|
|
| ApprovalUrlInfo();
|
| @@ -4553,7 +4664,8 @@ class ApprovalUrlInfo {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (approvalUrl != null) {
|
| _json["approvalUrl"] = approvalUrl;
|
| }
|
| @@ -4564,21 +4676,16 @@ class ApprovalUrlInfo {
|
| }
|
| }
|
|
|
| -/**
|
| - * An AuthenticationToken is used by the EMM's device policy client on a device
|
| - * to provision the given EMM-managed user on that device.
|
| - */
|
| +/// An AuthenticationToken is used by the EMM's device policy client on a
|
| +/// device to provision the given EMM-managed user on that device.
|
| class AuthenticationToken {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#authenticationToken".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#authenticationToken".
|
| core.String kind;
|
| - /**
|
| - * The authentication token to be passed to the device policy client on the
|
| - * device where it can be used to provision the account for which this token
|
| - * was generated.
|
| - */
|
| +
|
| + /// The authentication token to be passed to the device policy client on the
|
| + /// device where it can be used to provision the account for which this token
|
| + /// was generated.
|
| core.String token;
|
|
|
| AuthenticationToken();
|
| @@ -4593,7 +4700,8 @@ class AuthenticationToken {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| @@ -4604,39 +4712,33 @@ class AuthenticationToken {
|
| }
|
| }
|
|
|
| -/**
|
| - * A Devices resource represents a mobile device managed by the EMM and
|
| - * belonging to a specific enterprise user.
|
| - *
|
| - * This collection cannot be modified via the API. It is automatically populated
|
| - * as devices are set up to be managed.
|
| - */
|
| +/// A Devices resource represents a mobile device managed by the EMM and
|
| +/// belonging to a specific enterprise user.
|
| +///
|
| +/// This collection cannot be modified via the API. It is automatically
|
| +/// populated as devices are set up to be managed.
|
| class Device {
|
| - /**
|
| - * The Google Play Services Android ID for the device encoded as a lowercase
|
| - * hex string. For example, "123456789abcdef0".
|
| - */
|
| + /// The Google Play Services Android ID for the device encoded as a lowercase
|
| + /// hex string. For example, "123456789abcdef0".
|
| core.String androidId;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#device".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#device".
|
| core.String kind;
|
| - /**
|
| - * Identifies the extent to which the device is controlled by a managed Google
|
| - * Play EMM in various deployment configurations.
|
| - *
|
| - * Possible values include:
|
| - * - "managedDevice", a device that has the EMM's device policy controller
|
| - * (DPC) as the device owner.
|
| - * - "managedProfile", a device that has a profile managed by the DPC (DPC is
|
| - * profile owner) in addition to a separate, personal profile that is
|
| - * unavailable to the DPC.
|
| - * - "containerApp", no longer used (deprecated).
|
| - * - "unmanagedProfile", a device that has been allowed (by the domain's
|
| - * admin, using the Admin Console to enable the privilege) to use managed
|
| - * Google Play, but the profile is itself not owned by a DPC.
|
| - */
|
| +
|
| + /// Identifies the extent to which the device is controlled by a managed
|
| + /// Google Play EMM in various deployment configurations.
|
| + ///
|
| + /// Possible values include:
|
| + /// - "managedDevice", a device that has the EMM's device policy controller
|
| + /// (DPC) as the device owner.
|
| + /// - "managedProfile", a device that has a profile managed by the DPC (DPC
|
| + /// is profile owner) in addition to a separate, personal profile that is
|
| + /// unavailable to the DPC.
|
| + /// - "containerApp", no longer used (deprecated).
|
| + /// - "unmanagedProfile", a device that has been allowed (by the domain's
|
| + /// admin, using the Admin Console to enable the privilege) to use managed
|
| + /// Google Play, but the profile is itself not owned by a DPC.
|
| core.String managementType;
|
|
|
| Device();
|
| @@ -4654,7 +4756,8 @@ class Device {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (androidId != null) {
|
| _json["androidId"] = androidId;
|
| }
|
| @@ -4668,22 +4771,17 @@ class Device {
|
| }
|
| }
|
|
|
| -/**
|
| - * The state of a user's device, as accessed by the getState and setState
|
| - * methods on device resources.
|
| - */
|
| +/// The state of a user's device, as accessed by the getState and setState
|
| +/// methods on device resources.
|
| class DeviceState {
|
| - /**
|
| - * The state of the Google account on the device. "enabled" indicates that the
|
| - * Google account on the device can be used to access Google services
|
| - * (including Google Play), while "disabled" means that it cannot. A new
|
| - * device is initially in the "disabled" state.
|
| - */
|
| + /// The state of the Google account on the device. "enabled" indicates that
|
| + /// the Google account on the device can be used to access Google services
|
| + /// (including Google Play), while "disabled" means that it cannot. A new
|
| + /// device is initially in the "disabled" state.
|
| core.String accountState;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#deviceState".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#deviceState".
|
| core.String kind;
|
|
|
| DeviceState();
|
| @@ -4698,7 +4796,8 @@ class DeviceState {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (accountState != null) {
|
| _json["accountState"] = accountState;
|
| }
|
| @@ -4709,21 +4808,21 @@ class DeviceState {
|
| }
|
| }
|
|
|
| -/** The device resources for the user. */
|
| +/// The device resources for the user.
|
| class DevicesListResponse {
|
| - /** A managed device. */
|
| + /// A managed device.
|
| core.List<Device> device;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#devicesListResponse".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#devicesListResponse".
|
| core.String kind;
|
|
|
| DevicesListResponse();
|
|
|
| DevicesListResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("device")) {
|
| - device = _json["device"].map((value) => new Device.fromJson(value)).toList();
|
| + device =
|
| + _json["device"].map((value) => new Device.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -4731,7 +4830,8 @@ class DevicesListResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (device != null) {
|
| _json["device"] = device.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -4742,43 +4842,44 @@ class DevicesListResponse {
|
| }
|
| }
|
|
|
| -/**
|
| - * An Enterprises resource represents the binding between an EMM and a specific
|
| - * organization. That binding can be instantiated in one of two different ways
|
| - * using this API as follows:
|
| - * - For Google managed domain customers, the process involves using
|
| - * Enterprises.enroll and Enterprises.setAccount (in conjunction with artifacts
|
| - * obtained from the Admin console and the Google API Console) and submitted to
|
| - * the EMM through a more-or-less manual process.
|
| - * - For managed Google Play Accounts customers, the process involves using
|
| - * Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction
|
| - * with the managed Google Play sign-up UI (Google-provided mechanism) to create
|
| - * the binding without manual steps. As an EMM, you can support either or both
|
| - * approaches in your EMM console. See Create an Enterprise for details.
|
| - */
|
| +/// An Enterprises resource represents the binding between an EMM and a
|
| +/// specific organization. That binding can be instantiated in one of two
|
| +/// different ways using this API as follows:
|
| +/// - For Google managed domain customers, the process involves using
|
| +/// Enterprises.enroll and Enterprises.setAccount (in conjunction with
|
| +/// artifacts obtained from the Admin console and the Google API Console) and
|
| +/// submitted to the EMM through a more-or-less manual process.
|
| +/// - For managed Google Play Accounts customers, the process involves using
|
| +/// Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction
|
| +/// with the managed Google Play sign-up UI (Google-provided mechanism) to
|
| +/// create the binding without manual steps. As an EMM, you can support either
|
| +/// or both approaches in your EMM console. See Create an Enterprise for
|
| +/// details.
|
| class Enterprise {
|
| - /**
|
| - * Admins of the enterprise. This is only supported for enterprises created
|
| - * via the EMM-initiated flow.
|
| - */
|
| + /// Admins of the enterprise. This is only supported for enterprises created
|
| + /// via the EMM-initiated flow.
|
| core.List<Administrator> administrator;
|
| - /** The unique ID for the enterprise. */
|
| +
|
| + /// The unique ID for the enterprise.
|
| core.String id;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#enterprise".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#enterprise".
|
| core.String kind;
|
| - /** The name of the enterprise, for example, "Example, Inc". */
|
| +
|
| + /// The name of the enterprise, for example, "Example, Inc".
|
| core.String name;
|
| - /** The enterprise's primary domain, such as "example.com". */
|
| +
|
| + /// The enterprise's primary domain, such as "example.com".
|
| core.String primaryDomain;
|
|
|
| Enterprise();
|
|
|
| Enterprise.fromJson(core.Map _json) {
|
| if (_json.containsKey("administrator")) {
|
| - administrator = _json["administrator"].map((value) => new Administrator.fromJson(value)).toList();
|
| + administrator = _json["administrator"]
|
| + .map((value) => new Administrator.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| @@ -4795,9 +4896,11 @@ class Enterprise {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (administrator != null) {
|
| - _json["administrator"] = administrator.map((value) => (value).toJson()).toList();
|
| + _json["administrator"] =
|
| + administrator.map((value) => (value).toJson()).toList();
|
| }
|
| if (id != null) {
|
| _json["id"] = id;
|
| @@ -4815,17 +4918,14 @@ class Enterprise {
|
| }
|
| }
|
|
|
| -/**
|
| - * A service account that can be used to authenticate as the enterprise to API
|
| - * calls that require such authentication.
|
| - */
|
| +/// A service account that can be used to authenticate as the enterprise to API
|
| +/// calls that require such authentication.
|
| class EnterpriseAccount {
|
| - /** The email address of the service account. */
|
| + /// The email address of the service account.
|
| core.String accountEmail;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#enterpriseAccount".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#enterpriseAccount".
|
| core.String kind;
|
|
|
| EnterpriseAccount();
|
| @@ -4840,7 +4940,8 @@ class EnterpriseAccount {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (accountEmail != null) {
|
| _json["accountEmail"] = accountEmail;
|
| }
|
| @@ -4851,21 +4952,22 @@ class EnterpriseAccount {
|
| }
|
| }
|
|
|
| -/** The matching enterprise resources. */
|
| +/// The matching enterprise resources.
|
| class EnterprisesListResponse {
|
| - /** An enterprise. */
|
| + /// An enterprise.
|
| core.List<Enterprise> enterprise;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#enterprisesListResponse".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#enterprisesListResponse".
|
| core.String kind;
|
|
|
| EnterprisesListResponse();
|
|
|
| EnterprisesListResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("enterprise")) {
|
| - enterprise = _json["enterprise"].map((value) => new Enterprise.fromJson(value)).toList();
|
| + enterprise = _json["enterprise"]
|
| + .map((value) => new Enterprise.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -4873,9 +4975,11 @@ class EnterprisesListResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (enterprise != null) {
|
| - _json["enterprise"] = enterprise.map((value) => (value).toJson()).toList();
|
| + _json["enterprise"] =
|
| + enterprise.map((value) => (value).toJson()).toList();
|
| }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| @@ -4885,12 +4989,11 @@ class EnterprisesListResponse {
|
| }
|
|
|
| class EnterprisesSendTestPushNotificationResponse {
|
| - /** The message ID of the test push notification that was sent. */
|
| + /// The message ID of the test push notification that was sent.
|
| core.String messageId;
|
| - /**
|
| - * The name of the Cloud Pub/Sub topic to which notifications for this
|
| - * enterprise's enrolled account will be sent.
|
| - */
|
| +
|
| + /// The name of the Cloud Pub/Sub topic to which notifications for this
|
| + /// enterprise's enrolled account will be sent.
|
| core.String topicName;
|
|
|
| EnterprisesSendTestPushNotificationResponse();
|
| @@ -4905,7 +5008,8 @@ class EnterprisesSendTestPushNotificationResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (messageId != null) {
|
| _json["messageId"] = messageId;
|
| }
|
| @@ -4916,48 +5020,42 @@ class EnterprisesSendTestPushNotificationResponse {
|
| }
|
| }
|
|
|
| -/**
|
| - * The presence of an Entitlements resource indicates that a user has the right
|
| - * to use a particular app. Entitlements are user specific, not device specific.
|
| - * This allows a user with an entitlement to an app to install the app on all
|
| - * their devices. It's also possible for a user to hold an entitlement to an app
|
| - * without installing the app on any device.
|
| - *
|
| - * The API can be used to create an entitlement. As an option, you can also use
|
| - * the API to trigger the installation of an app on all a user's managed devices
|
| - * at the same time the entitlement is created.
|
| - *
|
| - * If the app is free, creating the entitlement also creates a group license for
|
| - * that app. For paid apps, creating the entitlement consumes one license, and
|
| - * that license remains consumed until the entitlement is removed. If the
|
| - * enterprise hasn't purchased enough licenses, then no entitlement is created
|
| - * and the installation fails. An entitlement is also not created for an app if
|
| - * the app requires permissions that the enterprise hasn't accepted.
|
| - *
|
| - * If an entitlement is deleted, the app may be uninstalled from a user's
|
| - * device. As a best practice, uninstall the app by calling Installs.delete()
|
| - * before deleting the entitlement.
|
| - *
|
| - * Entitlements for apps that a user pays for on an unmanaged profile have
|
| - * "userPurchase" as the entitlement reason. These entitlements cannot be
|
| - * removed via the API.
|
| - */
|
| +/// The presence of an Entitlements resource indicates that a user has the
|
| +/// right to use a particular app. Entitlements are user specific, not device
|
| +/// specific. This allows a user with an entitlement to an app to install the
|
| +/// app on all their devices. It's also possible for a user to hold an
|
| +/// entitlement to an app without installing the app on any device.
|
| +///
|
| +/// The API can be used to create an entitlement. As an option, you can also
|
| +/// use the API to trigger the installation of an app on all a user's managed
|
| +/// devices at the same time the entitlement is created.
|
| +///
|
| +/// If the app is free, creating the entitlement also creates a group license
|
| +/// for that app. For paid apps, creating the entitlement consumes one license,
|
| +/// and that license remains consumed until the entitlement is removed. If the
|
| +/// enterprise hasn't purchased enough licenses, then no entitlement is created
|
| +/// and the installation fails. An entitlement is also not created for an app
|
| +/// if the app requires permissions that the enterprise hasn't accepted.
|
| +///
|
| +/// If an entitlement is deleted, the app may be uninstalled from a user's
|
| +/// device. As a best practice, uninstall the app by calling Installs.delete()
|
| +/// before deleting the entitlement.
|
| +///
|
| +/// Entitlements for apps that a user pays for on an unmanaged profile have
|
| +/// "userPurchase" as the entitlement reason. These entitlements cannot be
|
| +/// removed via the API.
|
| class Entitlement {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#entitlement".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#entitlement".
|
| core.String kind;
|
| - /**
|
| - * The ID of the product that the entitlement is for. For example,
|
| - * "app:com.google.android.gm".
|
| - */
|
| +
|
| + /// The ID of the product that the entitlement is for. For example,
|
| + /// "app:com.google.android.gm".
|
| core.String productId;
|
| - /**
|
| - * The reason for the entitlement. For example, "free" for free apps. This
|
| - * property is temporary: it will be replaced by the acquisition kind field of
|
| - * group licenses.
|
| - */
|
| +
|
| + /// The reason for the entitlement. For example, "free" for free apps. This
|
| + /// property is temporary: it will be replaced by the acquisition kind field
|
| + /// of group licenses.
|
| core.String reason;
|
|
|
| Entitlement();
|
| @@ -4975,7 +5073,8 @@ class Entitlement {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| @@ -4989,25 +5088,24 @@ class Entitlement {
|
| }
|
| }
|
|
|
| -/** The entitlement resources for the user. */
|
| +/// The entitlement resources for the user.
|
| class EntitlementsListResponse {
|
| - /**
|
| - * An entitlement of a user to a product (e.g. an app). For example, a free
|
| - * app that they have installed, or a paid app that they have been allocated a
|
| - * license to.
|
| - */
|
| + /// An entitlement of a user to a product (e.g. an app). For example, a free
|
| + /// app that they have installed, or a paid app that they have been allocated
|
| + /// a license to.
|
| core.List<Entitlement> entitlement;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#entitlementsListResponse".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#entitlementsListResponse".
|
| core.String kind;
|
|
|
| EntitlementsListResponse();
|
|
|
| EntitlementsListResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("entitlement")) {
|
| - entitlement = _json["entitlement"].map((value) => new Entitlement.fromJson(value)).toList();
|
| + entitlement = _json["entitlement"]
|
| + .map((value) => new Entitlement.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -5015,9 +5113,11 @@ class EntitlementsListResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (entitlement != null) {
|
| - _json["entitlement"] = entitlement.map((value) => (value).toJson()).toList();
|
| + _json["entitlement"] =
|
| + entitlement.map((value) => (value).toJson()).toList();
|
| }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| @@ -5026,77 +5126,65 @@ class EntitlementsListResponse {
|
| }
|
| }
|
|
|
| -/**
|
| - * A group license object indicates a product that an enterprise admin has
|
| - * approved for use in the enterprise. The product may be free or paid. For free
|
| - * products, a group license object is created in these cases: if the enterprise
|
| - * admin approves a product in Google Play, if the product is added to a
|
| - * collection, or if an entitlement for the product is created for a user via
|
| - * the API. For paid products, a group license object is only created as part of
|
| - * the first bulk purchase of that product in Google Play by the enterprise
|
| - * admin.
|
| - *
|
| - * The API can be used to query group licenses; the available information
|
| - * includes the total number of licenses purchased (for paid products) and the
|
| - * total number of licenses that have been provisioned, that is, the total
|
| - * number of user entitlements in existence for the product.
|
| - *
|
| - * Group license objects are never deleted. If, for example, a free app is added
|
| - * to a collection and then removed, the group license will remain, allowing the
|
| - * enterprise admin to keep track of any remaining entitlements. An enterprise
|
| - * admin may indicate they are no longer interested in the group license by
|
| - * marking it as unapproved in Google Play.
|
| - */
|
| +/// Group license objects allow you to keep track of licenses (called
|
| +/// entitlements) for both free and paid apps. For a free app, a group license
|
| +/// is created when an enterprise admin first approves the product in Google
|
| +/// Play or when the first entitlement for the product is created for a user
|
| +/// via the API. For a paid app, a group license object is only created when an
|
| +/// enterprise admin purchases the product in Google Play for the first time.
|
| +///
|
| +/// Use the API to query group licenses. A Grouplicenses resource includes the
|
| +/// total number of licenses purchased (paid apps only) and the total number of
|
| +/// licenses currently in use. Iyn other words, the total number of
|
| +/// Entitlements that exist for the product.
|
| +///
|
| +/// Only one group license object is created per product and group license
|
| +/// objects are never deleted. If a product is unapproved, its group license
|
| +/// remains. This allows enterprise admins to keep track of any remaining
|
| +/// entitlements for the product.
|
| class GroupLicense {
|
| - /**
|
| - * How this group license was acquired. "bulkPurchase" means that this
|
| - * Grouplicenses resource was created because the enterprise purchased
|
| - * licenses for this product; otherwise, the value is "free" (for free
|
| - * products).
|
| - */
|
| + /// How this group license was acquired. "bulkPurchase" means that this
|
| + /// Grouplicenses resource was created because the enterprise purchased
|
| + /// licenses for this product; otherwise, the value is "free" (for free
|
| + /// products).
|
| core.String acquisitionKind;
|
| - /**
|
| - * Whether the product to which this group license relates is currently
|
| - * approved by the enterprise. Products are approved when a group license is
|
| - * first created, but this approval may be revoked by an enterprise admin via
|
| - * Google Play. Unapproved products will not be visible to end users in
|
| - * collections, and new entitlements to them should not normally be created.
|
| - */
|
| +
|
| + /// Whether the product to which this group license relates is currently
|
| + /// approved by the enterprise. Products are approved when a group license is
|
| + /// first created, but this approval may be revoked by an enterprise admin
|
| + /// via Google Play. Unapproved products will not be visible to end users in
|
| + /// collections, and new entitlements to them should not normally be created.
|
| core.String approval;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#groupLicense".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#groupLicense".
|
| core.String kind;
|
| - /**
|
| - * The total number of provisioned licenses for this product. Returned by read
|
| - * operations, but ignored in write operations.
|
| - */
|
| +
|
| + /// The total number of provisioned licenses for this product. Returned by
|
| + /// read operations, but ignored in write operations.
|
| core.int numProvisioned;
|
| - /**
|
| - * The number of purchased licenses (possibly in multiple purchases). If this
|
| - * field is omitted, then there is no limit on the number of licenses that can
|
| - * be provisioned (for example, if the acquisition kind is "free").
|
| - */
|
| +
|
| + /// The number of purchased licenses (possibly in multiple purchases). If
|
| + /// this field is omitted, then there is no limit on the number of licenses
|
| + /// that can be provisioned (for example, if the acquisition kind is "free").
|
| core.int numPurchased;
|
| - /**
|
| - * The permission approval status of the product. This field is only set if
|
| - * the product is approved. Possible states are:
|
| - * - "currentApproved", the current set of permissions is approved, but
|
| - * additional permissions will require the administrator to reapprove the
|
| - * product (If the product was approved without specifying the approved
|
| - * permissions setting, then this is the default behavior.),
|
| - * - "needsReapproval", the product has unapproved permissions. No additional
|
| - * product licenses can be assigned until the product is reapproved,
|
| - * - "allCurrentAndFutureApproved", the current permissions are approved and
|
| - * any future permission updates will be automatically approved without
|
| - * administrator review.
|
| - */
|
| +
|
| + /// The permission approval status of the product. This field is only set if
|
| + /// the product is approved. Possible states are:
|
| + /// - "currentApproved", the current set of permissions is approved, but
|
| + /// additional permissions will require the administrator to reapprove the
|
| + /// product (If the product was approved without specifying the approved
|
| + /// permissions setting, then this is the default behavior.),
|
| + /// - "needsReapproval", the product has unapproved permissions. No
|
| + /// additional product licenses can be assigned until the product is
|
| + /// reapproved,
|
| + /// - "allCurrentAndFutureApproved", the current permissions are approved and
|
| + /// any future permission updates will be automatically approved without
|
| + /// administrator review.
|
| core.String permissions;
|
| - /**
|
| - * The ID of the product that the license is for. For example,
|
| - * "app:com.google.android.gm".
|
| - */
|
| +
|
| + /// The ID of the product that the license is for. For example,
|
| + /// "app:com.google.android.gm".
|
| core.String productId;
|
|
|
| GroupLicense();
|
| @@ -5126,7 +5214,8 @@ class GroupLicense {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (acquisitionKind != null) {
|
| _json["acquisitionKind"] = acquisitionKind;
|
| }
|
| @@ -5152,14 +5241,13 @@ class GroupLicense {
|
| }
|
| }
|
|
|
| -/** The user resources for the group license. */
|
| +/// The user resources for the group license.
|
| class GroupLicenseUsersListResponse {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#groupLicenseUsersListResponse".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#groupLicenseUsersListResponse".
|
| core.String kind;
|
| - /** A user of an enterprise. */
|
| +
|
| + /// A user of an enterprise.
|
| core.List<User> user;
|
|
|
| GroupLicenseUsersListResponse();
|
| @@ -5174,7 +5262,8 @@ class GroupLicenseUsersListResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| @@ -5185,21 +5274,22 @@ class GroupLicenseUsersListResponse {
|
| }
|
| }
|
|
|
| -/** The grouplicense resources for the enterprise. */
|
| +/// The grouplicense resources for the enterprise.
|
| class GroupLicensesListResponse {
|
| - /** A group license for a product approved for use in the enterprise. */
|
| + /// A group license for a product approved for use in the enterprise.
|
| core.List<GroupLicense> groupLicense;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#groupLicensesListResponse".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#groupLicensesListResponse".
|
| core.String kind;
|
|
|
| GroupLicensesListResponse();
|
|
|
| GroupLicensesListResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("groupLicense")) {
|
| - groupLicense = _json["groupLicense"].map((value) => new GroupLicense.fromJson(value)).toList();
|
| + groupLicense = _json["groupLicense"]
|
| + .map((value) => new GroupLicense.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -5207,9 +5297,11 @@ class GroupLicensesListResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (groupLicense != null) {
|
| - _json["groupLicense"] = groupLicense.map((value) => (value).toJson()).toList();
|
| + _json["groupLicense"] =
|
| + groupLicense.map((value) => (value).toJson()).toList();
|
| }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| @@ -5218,54 +5310,48 @@ class GroupLicensesListResponse {
|
| }
|
| }
|
|
|
| -/**
|
| - * The existence of an Installs resource indicates that an app is installed on a
|
| - * particular device (or that an install is pending).
|
| - *
|
| - * The API can be used to create an install resource using the update method.
|
| - * This triggers the actual install of the app on the device. If the user does
|
| - * not already have an entitlement for the app, then an attempt is made to
|
| - * create one. If this fails (for example, because the app is not free and there
|
| - * is no available license), then the creation of the install fails.
|
| - *
|
| - * The API can also be used to update an installed app. If the update method is
|
| - * used on an existing install, then the app will be updated to the latest
|
| - * available version.
|
| - *
|
| - * Note that it is not possible to force the installation of a specific version
|
| - * of an app: the version code is read-only.
|
| - *
|
| - * If a user installs an app themselves (as permitted by the enterprise), then
|
| - * again an install resource and possibly an entitlement resource are
|
| - * automatically created.
|
| - *
|
| - * The API can also be used to delete an install resource, which triggers the
|
| - * removal of the app from the device. Note that deleting an install does not
|
| - * automatically remove the corresponding entitlement, even if there are no
|
| - * remaining installs. The install resource will also be deleted if the user
|
| - * uninstalls the app themselves.
|
| - */
|
| +/// The existence of an Installs resource indicates that an app is installed on
|
| +/// a particular device (or that an install is pending).
|
| +///
|
| +/// The API can be used to create an install resource using the update method.
|
| +/// This triggers the actual install of the app on the device. If the user does
|
| +/// not already have an entitlement for the app, then an attempt is made to
|
| +/// create one. If this fails (for example, because the app is not free and
|
| +/// there is no available license), then the creation of the install fails.
|
| +///
|
| +/// The API can also be used to update an installed app. If the update method
|
| +/// is used on an existing install, then the app will be updated to the latest
|
| +/// available version.
|
| +///
|
| +/// Note that it is not possible to force the installation of a specific
|
| +/// version of an app: the version code is read-only.
|
| +///
|
| +/// If a user installs an app themselves (as permitted by the enterprise), then
|
| +/// again an install resource and possibly an entitlement resource are
|
| +/// automatically created.
|
| +///
|
| +/// The API can also be used to delete an install resource, which triggers the
|
| +/// removal of the app from the device. Note that deleting an install does not
|
| +/// automatically remove the corresponding entitlement, even if there are no
|
| +/// remaining installs. The install resource will also be deleted if the user
|
| +/// uninstalls the app themselves.
|
| class Install {
|
| - /**
|
| - * Install state. The state "installPending" means that an install request has
|
| - * recently been made and download to the device is in progress. The state
|
| - * "installed" means that the app has been installed. This field is read-only.
|
| - */
|
| + /// Install state. The state "installPending" means that an install request
|
| + /// has recently been made and download to the device is in progress. The
|
| + /// state "installed" means that the app has been installed. This field is
|
| + /// read-only.
|
| core.String installState;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#install".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#install".
|
| core.String kind;
|
| - /**
|
| - * The ID of the product that the install is for. For example,
|
| - * "app:com.google.android.gm".
|
| - */
|
| +
|
| + /// The ID of the product that the install is for. For example,
|
| + /// "app:com.google.android.gm".
|
| core.String productId;
|
| - /**
|
| - * The version of the installed product. Guaranteed to be set only if the
|
| - * install state is "installed".
|
| - */
|
| +
|
| + /// The version of the installed product. Guaranteed to be set only if the
|
| + /// install state is "installed".
|
| core.int versionCode;
|
|
|
| Install();
|
| @@ -5286,7 +5372,8 @@ class Install {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (installState != null) {
|
| _json["installState"] = installState;
|
| }
|
| @@ -5303,22 +5390,23 @@ class Install {
|
| }
|
| }
|
|
|
| -/** An event generated when an app installation failed on a device */
|
| +/// An event generated when an app installation failed on a device
|
| class InstallFailureEvent {
|
| - /** The Android ID of the device. This field will always be present. */
|
| + /// The Android ID of the device. This field will always be present.
|
| core.String deviceId;
|
| - /** Additional details on the failure if applicable. */
|
| +
|
| + /// Additional details on the failure if applicable.
|
| core.String failureDetails;
|
| - /**
|
| - * The reason for the installation failure. This field will always be present.
|
| - */
|
| +
|
| + /// The reason for the installation failure. This field will always be
|
| + /// present.
|
| core.String failureReason;
|
| - /**
|
| - * The id of the product (e.g. "app:com.google.android.gm") for which the
|
| - * install failure event occured. This field will always be present.
|
| - */
|
| +
|
| + /// The id of the product (e.g. "app:com.google.android.gm") for which the
|
| + /// install failure event occured. This field will always be present.
|
| core.String productId;
|
| - /** The ID of the user. This field will always be present. */
|
| +
|
| + /// The ID of the user. This field will always be present.
|
| core.String userId;
|
|
|
| InstallFailureEvent();
|
| @@ -5342,7 +5430,8 @@ class InstallFailureEvent {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (deviceId != null) {
|
| _json["deviceId"] = deviceId;
|
| }
|
| @@ -5362,24 +5451,22 @@ class InstallFailureEvent {
|
| }
|
| }
|
|
|
| -/** The install resources for the device. */
|
| +/// The install resources for the device.
|
| class InstallsListResponse {
|
| - /**
|
| - * An installation of an app for a user on a specific device. The existence of
|
| - * an install implies that the user must have an entitlement to the app.
|
| - */
|
| + /// An installation of an app for a user on a specific device. The existence
|
| + /// of an install implies that the user must have an entitlement to the app.
|
| core.List<Install> install;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#installsListResponse".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#installsListResponse".
|
| core.String kind;
|
|
|
| InstallsListResponse();
|
|
|
| InstallsListResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("install")) {
|
| - install = _json["install"].map((value) => new Install.fromJson(value)).toList();
|
| + install =
|
| + _json["install"].map((value) => new Install.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -5387,7 +5474,8 @@ class InstallsListResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (install != null) {
|
| _json["install"] = install.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -5398,11 +5486,12 @@ class InstallsListResponse {
|
| }
|
| }
|
|
|
| -/** A localized string with its locale. */
|
| +/// A localized string with its locale.
|
| class LocalizedText {
|
| - /** The BCP47 tag for a locale. (e.g. "en-US", "de"). */
|
| + /// The BCP47 tag for a locale. (e.g. "en-US", "de").
|
| core.String locale;
|
| - /** The text localized in the associated locale. */
|
| +
|
| + /// The text localized in the associated locale.
|
| core.String text;
|
|
|
| LocalizedText();
|
| @@ -5417,7 +5506,8 @@ class LocalizedText {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (locale != null) {
|
| _json["locale"] = locale;
|
| }
|
| @@ -5428,23 +5518,19 @@ class LocalizedText {
|
| }
|
| }
|
|
|
| -/**
|
| - * A managed configuration resource contains the set of managed properties that
|
| - * have been configured for an Android app. The app's developer would have
|
| - * defined configurable properties in the managed configurations schema.
|
| - */
|
| +/// A managed configuration resource contains the set of managed properties
|
| +/// that have been configured for an Android app. The app's developer would
|
| +/// have defined configurable properties in the managed configurations schema.
|
| class ManagedConfiguration {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#managedConfiguration".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#managedConfiguration".
|
| core.String kind;
|
| - /** The set of managed properties for this configuration. */
|
| +
|
| + /// The set of managed properties for this configuration.
|
| core.List<ManagedProperty> managedProperty;
|
| - /**
|
| - * The ID of the product that the managed configuration is for, e.g.
|
| - * "app:com.google.android.gm".
|
| - */
|
| +
|
| + /// The ID of the product that the managed configuration is for, e.g.
|
| + /// "app:com.google.android.gm".
|
| core.String productId;
|
|
|
| ManagedConfiguration();
|
| @@ -5454,7 +5540,9 @@ class ManagedConfiguration {
|
| kind = _json["kind"];
|
| }
|
| if (_json.containsKey("managedProperty")) {
|
| - managedProperty = _json["managedProperty"].map((value) => new ManagedProperty.fromJson(value)).toList();
|
| + managedProperty = _json["managedProperty"]
|
| + .map((value) => new ManagedProperty.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("productId")) {
|
| productId = _json["productId"];
|
| @@ -5462,12 +5550,14 @@ class ManagedConfiguration {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| if (managedProperty != null) {
|
| - _json["managedProperty"] = managedProperty.map((value) => (value).toJson()).toList();
|
| + _json["managedProperty"] =
|
| + managedProperty.map((value) => (value).toJson()).toList();
|
| }
|
| if (productId != null) {
|
| _json["productId"] = productId;
|
| @@ -5476,14 +5566,13 @@ class ManagedConfiguration {
|
| }
|
| }
|
|
|
| -/** The managed configuration resources for the device. */
|
| +/// The managed configuration resources for the device.
|
| class ManagedConfigurationsForDeviceListResponse {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#managedConfigurationsForDeviceListResponse".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#managedConfigurationsForDeviceListResponse".
|
| core.String kind;
|
| - /** A managed configuration for an app on a specific device. */
|
| +
|
| + /// A managed configuration for an app on a specific device.
|
| core.List<ManagedConfiguration> managedConfigurationForDevice;
|
|
|
| ManagedConfigurationsForDeviceListResponse();
|
| @@ -5493,30 +5582,34 @@ class ManagedConfigurationsForDeviceListResponse {
|
| kind = _json["kind"];
|
| }
|
| if (_json.containsKey("managedConfigurationForDevice")) {
|
| - managedConfigurationForDevice = _json["managedConfigurationForDevice"].map((value) => new ManagedConfiguration.fromJson(value)).toList();
|
| + managedConfigurationForDevice = _json["managedConfigurationForDevice"]
|
| + .map((value) => new ManagedConfiguration.fromJson(value))
|
| + .toList();
|
| }
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| if (managedConfigurationForDevice != null) {
|
| - _json["managedConfigurationForDevice"] = managedConfigurationForDevice.map((value) => (value).toJson()).toList();
|
| + _json["managedConfigurationForDevice"] = managedConfigurationForDevice
|
| + .map((value) => (value).toJson())
|
| + .toList();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/** The managed configuration resources for the user. */
|
| +/// The managed configuration resources for the user.
|
| class ManagedConfigurationsForUserListResponse {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#managedConfigurationsForUserListResponse".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#managedConfigurationsForUserListResponse".
|
| core.String kind;
|
| - /** A managed configuration for an app for a specific user. */
|
| +
|
| + /// A managed configuration for an app for a specific user.
|
| core.List<ManagedConfiguration> managedConfigurationForUser;
|
|
|
| ManagedConfigurationsForUserListResponse();
|
| @@ -5526,60 +5619,56 @@ class ManagedConfigurationsForUserListResponse {
|
| kind = _json["kind"];
|
| }
|
| if (_json.containsKey("managedConfigurationForUser")) {
|
| - managedConfigurationForUser = _json["managedConfigurationForUser"].map((value) => new ManagedConfiguration.fromJson(value)).toList();
|
| + managedConfigurationForUser = _json["managedConfigurationForUser"]
|
| + .map((value) => new ManagedConfiguration.fromJson(value))
|
| + .toList();
|
| }
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| if (managedConfigurationForUser != null) {
|
| - _json["managedConfigurationForUser"] = managedConfigurationForUser.map((value) => (value).toJson()).toList();
|
| + _json["managedConfigurationForUser"] =
|
| + managedConfigurationForUser.map((value) => (value).toJson()).toList();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/**
|
| - * A managed property of a managed configuration. The property must match one of
|
| - * the properties in the app restrictions schema of the product. Exactly one of
|
| - * the value fields must be populated, and it must match the property's type in
|
| - * the app restrictions schema.
|
| - */
|
| +/// A managed property of a managed configuration. The property must match one
|
| +/// of the properties in the app restrictions schema of the product. Exactly
|
| +/// one of the value fields must be populated, and it must match the property's
|
| +/// type in the app restrictions schema.
|
| class ManagedProperty {
|
| - /** The unique key that identifies the property. */
|
| + /// The unique key that identifies the property.
|
| core.String key;
|
| - /**
|
| - * The boolean value - this will only be present if type of the property is
|
| - * bool.
|
| - */
|
| +
|
| + /// The boolean value - this will only be present if type of the property is
|
| + /// bool.
|
| core.bool valueBool;
|
| - /**
|
| - * The bundle of managed properties - this will only be present if type of the
|
| - * property is bundle.
|
| - */
|
| +
|
| + /// The bundle of managed properties - this will only be present if type of
|
| + /// the property is bundle.
|
| ManagedPropertyBundle valueBundle;
|
| - /**
|
| - * The list of bundles of properties - this will only be present if type of
|
| - * the property is bundle_array.
|
| - */
|
| +
|
| + /// The list of bundles of properties - this will only be present if type of
|
| + /// the property is bundle_array.
|
| core.List<ManagedPropertyBundle> valueBundleArray;
|
| - /**
|
| - * The integer value - this will only be present if type of the property is
|
| - * integer.
|
| - */
|
| +
|
| + /// The integer value - this will only be present if type of the property is
|
| + /// integer.
|
| core.int valueInteger;
|
| - /**
|
| - * The string value - this will only be present if type of the property is
|
| - * string, choice or hidden.
|
| - */
|
| +
|
| + /// The string value - this will only be present if type of the property is
|
| + /// string, choice or hidden.
|
| core.String valueString;
|
| - /**
|
| - * The list of string values - this will only be present if type of the
|
| - * property is multiselect.
|
| - */
|
| +
|
| + /// The list of string values - this will only be present if type of the
|
| + /// property is multiselect.
|
| core.List<core.String> valueStringArray;
|
|
|
| ManagedProperty();
|
| @@ -5595,7 +5684,9 @@ class ManagedProperty {
|
| valueBundle = new ManagedPropertyBundle.fromJson(_json["valueBundle"]);
|
| }
|
| if (_json.containsKey("valueBundleArray")) {
|
| - valueBundleArray = _json["valueBundleArray"].map((value) => new ManagedPropertyBundle.fromJson(value)).toList();
|
| + valueBundleArray = _json["valueBundleArray"]
|
| + .map((value) => new ManagedPropertyBundle.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("valueInteger")) {
|
| valueInteger = _json["valueInteger"];
|
| @@ -5609,7 +5700,8 @@ class ManagedProperty {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (key != null) {
|
| _json["key"] = key;
|
| }
|
| @@ -5620,7 +5712,8 @@ class ManagedProperty {
|
| _json["valueBundle"] = (valueBundle).toJson();
|
| }
|
| if (valueBundleArray != null) {
|
| - _json["valueBundleArray"] = valueBundleArray.map((value) => (value).toJson()).toList();
|
| + _json["valueBundleArray"] =
|
| + valueBundleArray.map((value) => (value).toJson()).toList();
|
| }
|
| if (valueInteger != null) {
|
| _json["valueInteger"] = valueInteger;
|
| @@ -5635,42 +5728,46 @@ class ManagedProperty {
|
| }
|
| }
|
|
|
| -/** A bundle of managed properties. */
|
| +/// A bundle of managed properties.
|
| class ManagedPropertyBundle {
|
| - /** The list of managed properties. */
|
| + /// The list of managed properties.
|
| core.List<ManagedProperty> managedProperty;
|
|
|
| ManagedPropertyBundle();
|
|
|
| ManagedPropertyBundle.fromJson(core.Map _json) {
|
| if (_json.containsKey("managedProperty")) {
|
| - managedProperty = _json["managedProperty"].map((value) => new ManagedProperty.fromJson(value)).toList();
|
| + managedProperty = _json["managedProperty"]
|
| + .map((value) => new ManagedProperty.fromJson(value))
|
| + .toList();
|
| }
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (managedProperty != null) {
|
| - _json["managedProperty"] = managedProperty.map((value) => (value).toJson()).toList();
|
| + _json["managedProperty"] =
|
| + managedProperty.map((value) => (value).toJson()).toList();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/** An event generated when a new device is ready to be managed. */
|
| +/// An event generated when a new device is ready to be managed.
|
| class NewDeviceEvent {
|
| - /** The Android ID of the device. This field will always be present. */
|
| + /// The Android ID of the device. This field will always be present.
|
| core.String deviceId;
|
| - /**
|
| - * Identifies the extent to which the device is controlled by an Android EMM
|
| - * in various deployment configurations.
|
| - *
|
| - * Possible values include:
|
| - * - "managedDevice", a device where the DPC is set as device owner,
|
| - * - "managedProfile", a device where the DPC is set as profile owner.
|
| - */
|
| +
|
| + /// Identifies the extent to which the device is controlled by an Android EMM
|
| + /// in various deployment configurations.
|
| + ///
|
| + /// Possible values include:
|
| + /// - "managedDevice", a device where the DPC is set as device owner,
|
| + /// - "managedProfile", a device where the DPC is set as profile owner.
|
| core.String managementType;
|
| - /** The ID of the user. This field will always be present. */
|
| +
|
| + /// The ID of the user. This field will always be present.
|
| core.String userId;
|
|
|
| NewDeviceEvent();
|
| @@ -5688,7 +5785,8 @@ class NewDeviceEvent {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (deviceId != null) {
|
| _json["deviceId"] = deviceId;
|
| }
|
| @@ -5702,23 +5800,20 @@ class NewDeviceEvent {
|
| }
|
| }
|
|
|
| -/** An event generated when new permissions are added to an app. */
|
| +/// An event generated when new permissions are added to an app.
|
| class NewPermissionsEvent {
|
| - /**
|
| - * The set of permissions that the enterprise admin has already approved for
|
| - * this application. Use Permissions.Get on the EMM API to retrieve details
|
| - * about these permissions.
|
| - */
|
| + /// The set of permissions that the enterprise admin has already approved for
|
| + /// this application. Use Permissions.Get on the EMM API to retrieve details
|
| + /// about these permissions.
|
| core.List<core.String> approvedPermissions;
|
| - /**
|
| - * The id of the product (e.g. "app:com.google.android.gm") for which new
|
| - * permissions were added. This field will always be present.
|
| - */
|
| +
|
| + /// The id of the product (e.g. "app:com.google.android.gm") for which new
|
| + /// permissions were added. This field will always be present.
|
| core.String productId;
|
| - /**
|
| - * The set of permissions that the app is currently requesting. Use
|
| - * Permissions.Get on the EMM API to retrieve details about these permissions.
|
| - */
|
| +
|
| + /// The set of permissions that the app is currently requesting. Use
|
| + /// Permissions.Get on the EMM API to retrieve details about these
|
| + /// permissions.
|
| core.List<core.String> requestedPermissions;
|
|
|
| NewPermissionsEvent();
|
| @@ -5736,7 +5831,8 @@ class NewPermissionsEvent {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (approvedPermissions != null) {
|
| _json["approvedPermissions"] = approvedPermissions;
|
| }
|
| @@ -5750,40 +5846,47 @@ class NewPermissionsEvent {
|
| }
|
| }
|
|
|
| -/** A notification of one event relating to an enterprise. */
|
| +/// A notification of one event relating to an enterprise.
|
| class Notification {
|
| - /** Notifications about new app restrictions schema changes. */
|
| + /// Notifications about new app restrictions schema changes.
|
| AppRestrictionsSchemaChangeEvent appRestrictionsSchemaChangeEvent;
|
| - /** Notifications about app updates. */
|
| +
|
| + /// Notifications about app updates.
|
| AppUpdateEvent appUpdateEvent;
|
| - /**
|
| - * The ID of the enterprise for which the notification is sent. This will
|
| - * always be present.
|
| - */
|
| +
|
| + /// The ID of the enterprise for which the notification is sent. This will
|
| + /// always be present.
|
| core.String enterpriseId;
|
| - /** Notifications about an app installation failure. */
|
| +
|
| + /// Notifications about an app installation failure.
|
| InstallFailureEvent installFailureEvent;
|
| - /** Notifications about new devices. */
|
| +
|
| + /// Notifications about new devices.
|
| NewDeviceEvent newDeviceEvent;
|
| - /** Notifications about new app permissions. */
|
| +
|
| + /// Notifications about new app permissions.
|
| NewPermissionsEvent newPermissionsEvent;
|
| - /** Type of the notification. */
|
| +
|
| + /// Type of the notification.
|
| core.String notificationType;
|
| - /** Notifications about changes to a product's approval status. */
|
| +
|
| + /// Notifications about changes to a product's approval status.
|
| ProductApprovalEvent productApprovalEvent;
|
| - /** Notifications about product availability changes. */
|
| +
|
| + /// Notifications about product availability changes.
|
| ProductAvailabilityChangeEvent productAvailabilityChangeEvent;
|
| - /**
|
| - * The time when the notification was published in milliseconds since
|
| - * 1970-01-01T00:00:00Z. This will always be present.
|
| - */
|
| +
|
| + /// The time when the notification was published in milliseconds since
|
| + /// 1970-01-01T00:00:00Z. This will always be present.
|
| core.String timestampMillis;
|
|
|
| Notification();
|
|
|
| Notification.fromJson(core.Map _json) {
|
| if (_json.containsKey("appRestrictionsSchemaChangeEvent")) {
|
| - appRestrictionsSchemaChangeEvent = new AppRestrictionsSchemaChangeEvent.fromJson(_json["appRestrictionsSchemaChangeEvent"]);
|
| + appRestrictionsSchemaChangeEvent =
|
| + new AppRestrictionsSchemaChangeEvent.fromJson(
|
| + _json["appRestrictionsSchemaChangeEvent"]);
|
| }
|
| if (_json.containsKey("appUpdateEvent")) {
|
| appUpdateEvent = new AppUpdateEvent.fromJson(_json["appUpdateEvent"]);
|
| @@ -5792,22 +5895,27 @@ class Notification {
|
| enterpriseId = _json["enterpriseId"];
|
| }
|
| if (_json.containsKey("installFailureEvent")) {
|
| - installFailureEvent = new InstallFailureEvent.fromJson(_json["installFailureEvent"]);
|
| + installFailureEvent =
|
| + new InstallFailureEvent.fromJson(_json["installFailureEvent"]);
|
| }
|
| if (_json.containsKey("newDeviceEvent")) {
|
| newDeviceEvent = new NewDeviceEvent.fromJson(_json["newDeviceEvent"]);
|
| }
|
| if (_json.containsKey("newPermissionsEvent")) {
|
| - newPermissionsEvent = new NewPermissionsEvent.fromJson(_json["newPermissionsEvent"]);
|
| + newPermissionsEvent =
|
| + new NewPermissionsEvent.fromJson(_json["newPermissionsEvent"]);
|
| }
|
| if (_json.containsKey("notificationType")) {
|
| notificationType = _json["notificationType"];
|
| }
|
| if (_json.containsKey("productApprovalEvent")) {
|
| - productApprovalEvent = new ProductApprovalEvent.fromJson(_json["productApprovalEvent"]);
|
| + productApprovalEvent =
|
| + new ProductApprovalEvent.fromJson(_json["productApprovalEvent"]);
|
| }
|
| if (_json.containsKey("productAvailabilityChangeEvent")) {
|
| - productAvailabilityChangeEvent = new ProductAvailabilityChangeEvent.fromJson(_json["productAvailabilityChangeEvent"]);
|
| + productAvailabilityChangeEvent =
|
| + new ProductAvailabilityChangeEvent.fromJson(
|
| + _json["productAvailabilityChangeEvent"]);
|
| }
|
| if (_json.containsKey("timestampMillis")) {
|
| timestampMillis = _json["timestampMillis"];
|
| @@ -5815,9 +5923,11 @@ class Notification {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (appRestrictionsSchemaChangeEvent != null) {
|
| - _json["appRestrictionsSchemaChangeEvent"] = (appRestrictionsSchemaChangeEvent).toJson();
|
| + _json["appRestrictionsSchemaChangeEvent"] =
|
| + (appRestrictionsSchemaChangeEvent).toJson();
|
| }
|
| if (appUpdateEvent != null) {
|
| _json["appUpdateEvent"] = (appUpdateEvent).toJson();
|
| @@ -5841,7 +5951,8 @@ class Notification {
|
| _json["productApprovalEvent"] = (productApprovalEvent).toJson();
|
| }
|
| if (productAvailabilityChangeEvent != null) {
|
| - _json["productAvailabilityChangeEvent"] = (productAvailabilityChangeEvent).toJson();
|
| + _json["productAvailabilityChangeEvent"] =
|
| + (productAvailabilityChangeEvent).toJson();
|
| }
|
| if (timestampMillis != null) {
|
| _json["timestampMillis"] = timestampMillis;
|
| @@ -5850,24 +5961,20 @@ class Notification {
|
| }
|
| }
|
|
|
| -/**
|
| - * A resource returned by the PullNotificationSet API, which contains a
|
| - * collection of notifications for enterprises associated with the service
|
| - * account authenticated for the request.
|
| - */
|
| +/// A resource returned by the PullNotificationSet API, which contains a
|
| +/// collection of notifications for enterprises associated with the service
|
| +/// account authenticated for the request.
|
| class NotificationSet {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#notificationSet".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#notificationSet".
|
| core.String kind;
|
| - /** The notifications received, or empty if no notifications are present. */
|
| +
|
| + /// The notifications received, or empty if no notifications are present.
|
| core.List<Notification> notification;
|
| - /**
|
| - * The notification set ID, required to mark the notification as received with
|
| - * the Enterprises.AcknowledgeNotification API. This will be omitted if no
|
| - * notifications are present.
|
| - */
|
| +
|
| + /// The notification set ID, required to mark the notification as received
|
| + /// with the Enterprises.AcknowledgeNotification API. This will be omitted if
|
| + /// no notifications are present.
|
| core.String notificationSetId;
|
|
|
| NotificationSet();
|
| @@ -5877,7 +5984,9 @@ class NotificationSet {
|
| kind = _json["kind"];
|
| }
|
| if (_json.containsKey("notification")) {
|
| - notification = _json["notification"].map((value) => new Notification.fromJson(value)).toList();
|
| + notification = _json["notification"]
|
| + .map((value) => new Notification.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("notificationSetId")) {
|
| notificationSetId = _json["notificationSetId"];
|
| @@ -5885,12 +5994,14 @@ class NotificationSet {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| if (notification != null) {
|
| - _json["notification"] = notification.map((value) => (value).toJson()).toList();
|
| + _json["notification"] =
|
| + notification.map((value) => (value).toJson()).toList();
|
| }
|
| if (notificationSetId != null) {
|
| _json["notificationSetId"] = notificationSetId;
|
| @@ -5919,7 +6030,8 @@ class PageInfo {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (resultPerPage != null) {
|
| _json["resultPerPage"] = resultPerPage;
|
| }
|
| @@ -5933,30 +6045,27 @@ class PageInfo {
|
| }
|
| }
|
|
|
| -/**
|
| - * A Permissions resource represents some extra capability, to be granted to an
|
| - * Android app, which requires explicit consent. An enterprise admin must
|
| - * consent to these permissions on behalf of their users before an entitlement
|
| - * for the app can be created.
|
| - *
|
| - * The permissions collection is read-only. The information provided for each
|
| - * permission (localized name and description) is intended to be used in the MDM
|
| - * user interface when obtaining consent from the enterprise.
|
| - */
|
| +/// A Permissions resource represents some extra capability, to be granted to
|
| +/// an Android app, which requires explicit consent. An enterprise admin must
|
| +/// consent to these permissions on behalf of their users before an entitlement
|
| +/// for the app can be created.
|
| +///
|
| +/// The permissions collection is read-only. The information provided for each
|
| +/// permission (localized name and description) is intended to be used in the
|
| +/// MDM user interface when obtaining consent from the enterprise.
|
| class Permission {
|
| - /**
|
| - * A longer description of the Permissions resource, giving more details of
|
| - * what it affects.
|
| - */
|
| + /// A longer description of the Permissions resource, giving more details of
|
| + /// what it affects.
|
| core.String description;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#permission".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#permission".
|
| core.String kind;
|
| - /** The name of the permission. */
|
| +
|
| + /// The name of the permission.
|
| core.String name;
|
| - /** An opaque string uniquely identifying the permission. */
|
| +
|
| + /// An opaque string uniquely identifying the permission.
|
| core.String permissionId;
|
|
|
| Permission();
|
| @@ -5977,7 +6086,8 @@ class Permission {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (description != null) {
|
| _json["description"] = description;
|
| }
|
| @@ -5994,78 +6104,74 @@ class Permission {
|
| }
|
| }
|
|
|
| -/**
|
| - * A Products resource represents an app in the Google Play store that is
|
| - * available to at least some users in the enterprise. (Some apps are restricted
|
| - * to a single enterprise, and no information about them is made available
|
| - * outside that enterprise.)
|
| - *
|
| - * The information provided for each product (localized name, icon, link to the
|
| - * full Google Play details page) is intended to allow a basic representation of
|
| - * the product within an EMM user interface.
|
| - */
|
| +/// A Products resource represents an app in the Google Play store that is
|
| +/// available to at least some users in the enterprise. (Some apps are
|
| +/// restricted to a single enterprise, and no information about them is made
|
| +/// available outside that enterprise.)
|
| +///
|
| +/// The information provided for each product (localized name, icon, link to
|
| +/// the full Google Play details page) is intended to allow a basic
|
| +/// representation of the product within an EMM user interface.
|
| class Product {
|
| - /**
|
| - * App versions currently available for this product. The returned list
|
| - * contains only public versions. Alpha and beta versions are not included.
|
| - */
|
| + /// App versions currently available for this product.
|
| core.List<AppVersion> appVersion;
|
| - /**
|
| - * The name of the author of the product (for example, the app developer).
|
| - */
|
| +
|
| + /// The name of the author of the product (for example, the app developer).
|
| core.String authorName;
|
| - /** A link to the (consumer) Google Play details page for the product. */
|
| +
|
| + /// A link to the (consumer) Google Play details page for the product.
|
| core.String detailsUrl;
|
| - /**
|
| - * How and to whom the package is made available. The value publicGoogleHosted
|
| - * means that the package is available through the Play store and not
|
| - * restricted to a specific enterprise. The value privateGoogleHosted means
|
| - * that the package is a private app (restricted to an enterprise) but hosted
|
| - * by Google. The value privateSelfHosted means that the package is a private
|
| - * app (restricted to an enterprise) and is privately hosted.
|
| - */
|
| +
|
| + /// How and to whom the package is made available. The value
|
| + /// publicGoogleHosted means that the package is available through the Play
|
| + /// store and not restricted to a specific enterprise. The value
|
| + /// privateGoogleHosted means that the package is a private app (restricted
|
| + /// to an enterprise) but hosted by Google. The value privateSelfHosted means
|
| + /// that the package is a private app (restricted to an enterprise) and is
|
| + /// privately hosted.
|
| core.String distributionChannel;
|
| - /**
|
| - * A link to an image that can be used as an icon for the product. This image
|
| - * is suitable for use at up to 512px x 512px.
|
| - */
|
| +
|
| + /// A link to an image that can be used as an icon for the product. This
|
| + /// image is suitable for use at up to 512px x 512px.
|
| core.String iconUrl;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#product".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#product".
|
| core.String kind;
|
| - /**
|
| - * A string of the form app:<package name>. For example,
|
| - * app:com.google.android.gm represents the Gmail app.
|
| - */
|
| +
|
| + /// A string of the form app:<package name>. For example,
|
| + /// app:com.google.android.gm represents the Gmail app.
|
| core.String productId;
|
| - /**
|
| - * Whether this product is free, free with in-app purchases, or paid. If the
|
| - * pricing is unknown, this means the product is not generally available
|
| - * anymore (even though it might still be available to people who own it).
|
| - */
|
| +
|
| + /// Whether this product is free, free with in-app purchases, or paid. If the
|
| + /// pricing is unknown, this means the product is not generally available
|
| + /// anymore (even though it might still be available to people who own it).
|
| core.String productPricing;
|
| - /** Deprecated. */
|
| +
|
| + /// Deprecated.
|
| core.bool requiresContainerApp;
|
| - /**
|
| - * A link to a smaller image that can be used as an icon for the product. This
|
| - * image is suitable for use at up to 128px x 128px.
|
| - */
|
| +
|
| + /// The certificate used to sign this product.
|
| + ProductSigningCertificate signingCertificate;
|
| +
|
| + /// A link to a smaller image that can be used as an icon for the product.
|
| + /// This image is suitable for use at up to 128px x 128px.
|
| core.String smallIconUrl;
|
| - /** The name of the product. */
|
| +
|
| + /// The name of the product.
|
| core.String title;
|
| - /**
|
| - * A link to the managed Google Play details page for the product, for use by
|
| - * an Enterprise admin.
|
| - */
|
| +
|
| + /// A link to the managed Google Play details page for the product, for use
|
| + /// by an Enterprise admin.
|
| core.String workDetailsUrl;
|
|
|
| Product();
|
|
|
| Product.fromJson(core.Map _json) {
|
| if (_json.containsKey("appVersion")) {
|
| - appVersion = _json["appVersion"].map((value) => new AppVersion.fromJson(value)).toList();
|
| + appVersion = _json["appVersion"]
|
| + .map((value) => new AppVersion.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("authorName")) {
|
| authorName = _json["authorName"];
|
| @@ -6091,6 +6197,10 @@ class Product {
|
| if (_json.containsKey("requiresContainerApp")) {
|
| requiresContainerApp = _json["requiresContainerApp"];
|
| }
|
| + if (_json.containsKey("signingCertificate")) {
|
| + signingCertificate =
|
| + new ProductSigningCertificate.fromJson(_json["signingCertificate"]);
|
| + }
|
| if (_json.containsKey("smallIconUrl")) {
|
| smallIconUrl = _json["smallIconUrl"];
|
| }
|
| @@ -6103,9 +6213,11 @@ class Product {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (appVersion != null) {
|
| - _json["appVersion"] = appVersion.map((value) => (value).toJson()).toList();
|
| + _json["appVersion"] =
|
| + appVersion.map((value) => (value).toJson()).toList();
|
| }
|
| if (authorName != null) {
|
| _json["authorName"] = authorName;
|
| @@ -6131,6 +6243,9 @@ class Product {
|
| if (requiresContainerApp != null) {
|
| _json["requiresContainerApp"] = requiresContainerApp;
|
| }
|
| + if (signingCertificate != null) {
|
| + _json["signingCertificate"] = (signingCertificate).toJson();
|
| + }
|
| if (smallIconUrl != null) {
|
| _json["smallIconUrl"] = smallIconUrl;
|
| }
|
| @@ -6144,17 +6259,14 @@ class Product {
|
| }
|
| }
|
|
|
| -/** An event generated when a product's approval status is changed. */
|
| +/// An event generated when a product's approval status is changed.
|
| class ProductApprovalEvent {
|
| - /**
|
| - * Whether the product was approved or unapproved. This field will always be
|
| - * present.
|
| - */
|
| + /// Whether the product was approved or unapproved. This field will always be
|
| + /// present.
|
| core.String approved;
|
| - /**
|
| - * The id of the product (e.g. "app:com.google.android.gm") for which the
|
| - * approval status has changed. This field will always be present.
|
| - */
|
| +
|
| + /// The id of the product (e.g. "app:com.google.android.gm") for which the
|
| + /// approval status has changed. This field will always be present.
|
| core.String productId;
|
|
|
| ProductApprovalEvent();
|
| @@ -6169,7 +6281,8 @@ class ProductApprovalEvent {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (approved != null) {
|
| _json["approved"] = approved;
|
| }
|
| @@ -6180,14 +6293,13 @@ class ProductApprovalEvent {
|
| }
|
| }
|
|
|
| -/** An event generated whenever a product's availability changes. */
|
| +/// An event generated whenever a product's availability changes.
|
| class ProductAvailabilityChangeEvent {
|
| - /** The new state of the product. This field will always be present. */
|
| + /// The new state of the product. This field will always be present.
|
| core.String availabilityStatus;
|
| - /**
|
| - * The id of the product (e.g. "app:com.google.android.gm") for which the
|
| - * product availability changed. This field will always be present.
|
| - */
|
| +
|
| + /// The id of the product (e.g. "app:com.google.android.gm") for which the
|
| + /// product availability changed. This field will always be present.
|
| core.String productId;
|
|
|
| ProductAvailabilityChangeEvent();
|
| @@ -6202,7 +6314,8 @@ class ProductAvailabilityChangeEvent {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (availabilityStatus != null) {
|
| _json["availabilityStatus"] = availabilityStatus;
|
| }
|
| @@ -6213,18 +6326,17 @@ class ProductAvailabilityChangeEvent {
|
| }
|
| }
|
|
|
| -/**
|
| - * A product permissions resource represents the set of permissions required by
|
| - * a specific app and whether or not they have been accepted by an enterprise
|
| - * admin.
|
| - *
|
| - * The API can be used to read the set of permissions, and also to update the
|
| - * set to indicate that permissions have been accepted.
|
| - */
|
| +/// A product permissions resource represents the set of permissions required
|
| +/// by a specific app and whether or not they have been accepted by an
|
| +/// enterprise admin.
|
| +///
|
| +/// The API can be used to read the set of permissions, and also to update the
|
| +/// set to indicate that permissions have been accepted.
|
| class ProductPermission {
|
| - /** An opaque string uniquely identifying the permission. */
|
| + /// An opaque string uniquely identifying the permission.
|
| core.String permissionId;
|
| - /** Whether the permission has been accepted or not. */
|
| +
|
| + /// Whether the permission has been accepted or not.
|
| core.String state;
|
|
|
| ProductPermission();
|
| @@ -6239,7 +6351,8 @@ class ProductPermission {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (permissionId != null) {
|
| _json["permissionId"] = permissionId;
|
| }
|
| @@ -6250,22 +6363,18 @@ class ProductPermission {
|
| }
|
| }
|
|
|
| -/**
|
| - * Information about the permissions required by a specific app and whether they
|
| - * have been accepted by the enterprise.
|
| - */
|
| +/// Information about the permissions required by a specific app and whether
|
| +/// they have been accepted by the enterprise.
|
| class ProductPermissions {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#productPermissions".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#productPermissions".
|
| core.String kind;
|
| - /** The permissions required by the app. */
|
| +
|
| + /// The permissions required by the app.
|
| core.List<ProductPermission> permission;
|
| - /**
|
| - * The ID of the app that the permissions relate to, e.g.
|
| - * "app:com.google.android.gm".
|
| - */
|
| +
|
| + /// The ID of the app that the permissions relate to, e.g.
|
| + /// "app:com.google.android.gm".
|
| core.String productId;
|
|
|
| ProductPermissions();
|
| @@ -6275,7 +6384,9 @@ class ProductPermissions {
|
| kind = _json["kind"];
|
| }
|
| if (_json.containsKey("permission")) {
|
| - permission = _json["permission"].map((value) => new ProductPermission.fromJson(value)).toList();
|
| + permission = _json["permission"]
|
| + .map((value) => new ProductPermission.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("productId")) {
|
| productId = _json["productId"];
|
| @@ -6283,12 +6394,14 @@ class ProductPermissions {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| if (permission != null) {
|
| - _json["permission"] = permission.map((value) => (value).toJson()).toList();
|
| + _json["permission"] =
|
| + permission.map((value) => (value).toJson()).toList();
|
| }
|
| if (productId != null) {
|
| _json["productId"] = productId;
|
| @@ -6297,28 +6410,27 @@ class ProductPermissions {
|
| }
|
| }
|
|
|
| -/** A set of products. */
|
| +/// A set of products.
|
| class ProductSet {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#productSet".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#productSet".
|
| core.String kind;
|
| - /** The list of product IDs making up the set of products. */
|
| +
|
| + /// The list of product IDs making up the set of products.
|
| core.List<core.String> productId;
|
| - /**
|
| - * The interpretation of this product set. "unknown" should never be sent and
|
| - * is ignored if received. "whitelist" means that the user is entitled to
|
| - * access the product set. "includeAll" means that all products are
|
| - * accessible, including products that are approved, products with revoked
|
| - * approval, and products that have never been approved. "allApproved" means
|
| - * that the user is entitled to access all products that are approved for the
|
| - * enterprise. If the value is "allApproved" or "includeAll", the productId
|
| - * field is ignored. If no value is provided, it is interpreted as "whitelist"
|
| - * for backwards compatibility. Further "allApproved" or "includeAll" does not
|
| - * enable automatic visibility of "alpha" or "beta" tracks for Android app.
|
| - * Use ProductVisibility to enable "alpha" or "beta" tracks per user.
|
| - */
|
| +
|
| + /// The interpretation of this product set. "unknown" should never be sent
|
| + /// and is ignored if received. "whitelist" means that the user is entitled
|
| + /// to access the product set. "includeAll" means that all products are
|
| + /// accessible, including products that are approved, products with revoked
|
| + /// approval, and products that have never been approved. "allApproved" means
|
| + /// that the user is entitled to access all products that are approved for
|
| + /// the enterprise. If the value is "allApproved" or "includeAll", the
|
| + /// productId field is ignored. If no value is provided, it is interpreted as
|
| + /// "whitelist" for backwards compatibility. Further "allApproved" or
|
| + /// "includeAll" does not enable automatic visibility of "alpha" or "beta"
|
| + /// tracks for Android app. Use ProductVisibility to enable "alpha" or "beta"
|
| + /// tracks per user.
|
| core.String productSetBehavior;
|
|
|
| ProductSet();
|
| @@ -6336,7 +6448,8 @@ class ProductSet {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| @@ -6350,23 +6463,54 @@ class ProductSet {
|
| }
|
| }
|
|
|
| +class ProductSigningCertificate {
|
| + /// The base64 urlsafe encoded SHA1 hash of the certificate. (This field is
|
| + /// deprecated in favor of SHA2-256. It should not be used and may be removed
|
| + /// at any time.)
|
| + core.String certificateHashSha1;
|
| +
|
| + /// The base64 urlsafe encoded SHA2-256 hash of the certificate.
|
| + core.String certificateHashSha256;
|
| +
|
| + ProductSigningCertificate();
|
| +
|
| + ProductSigningCertificate.fromJson(core.Map _json) {
|
| + if (_json.containsKey("certificateHashSha1")) {
|
| + certificateHashSha1 = _json["certificateHashSha1"];
|
| + }
|
| + if (_json.containsKey("certificateHashSha256")) {
|
| + certificateHashSha256 = _json["certificateHashSha256"];
|
| + }
|
| + }
|
| +
|
| + core.Map<core.String, core.Object> toJson() {
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| + if (certificateHashSha1 != null) {
|
| + _json["certificateHashSha1"] = certificateHashSha1;
|
| + }
|
| + if (certificateHashSha256 != null) {
|
| + _json["certificateHashSha256"] = certificateHashSha256;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| class ProductsApproveRequest {
|
| - /**
|
| - * The approval URL that was shown to the user. Only the permissions shown to
|
| - * the user with that URL will be accepted, which may not be the product's
|
| - * entire set of permissions. For example, the URL may only display new
|
| - * permissions from an update after the product was approved, or not include
|
| - * new permissions if the product was updated since the URL was generated.
|
| - */
|
| + /// The approval URL that was shown to the user. Only the permissions shown
|
| + /// to the user with that URL will be accepted, which may not be the
|
| + /// product's entire set of permissions. For example, the URL may only
|
| + /// display new permissions from an update after the product was approved, or
|
| + /// not include new permissions if the product was updated since the URL was
|
| + /// generated.
|
| ApprovalUrlInfo approvalUrlInfo;
|
| - /**
|
| - * Sets how new permission requests for the product are handled.
|
| - * "allPermissions" automatically approves all current and future permissions
|
| - * for the product. "currentPermissionsOnly" approves the current set of
|
| - * permissions for the product, but any future permissions added through
|
| - * updates will require manual reapproval. If not specified, only the current
|
| - * set of permissions will be approved.
|
| - */
|
| +
|
| + /// Sets how new permission requests for the product are handled.
|
| + /// "allPermissions" automatically approves all current and future
|
| + /// permissions for the product. "currentPermissionsOnly" approves the
|
| + /// current set of permissions for the product, but any future permissions
|
| + /// added through updates will require manual reapproval. If not specified,
|
| + /// only the current set of permissions will be approved.
|
| core.String approvedPermissions;
|
|
|
| ProductsApproveRequest();
|
| @@ -6381,7 +6525,8 @@ class ProductsApproveRequest {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (approvalUrlInfo != null) {
|
| _json["approvalUrlInfo"] = (approvalUrlInfo).toJson();
|
| }
|
| @@ -6393,16 +6538,14 @@ class ProductsApproveRequest {
|
| }
|
|
|
| class ProductsGenerateApprovalUrlResponse {
|
| - /**
|
| - * A URL that can be rendered in an iframe to display the permissions (if any)
|
| - * of a product. This URL can be used to approve the product only once and
|
| - * only within 24 hours of being generated, using the Products.approve call.
|
| - * If the product is currently unapproved and has no permissions, this URL
|
| - * will point to an empty page. If the product is currently approved, a URL
|
| - * will only be generated if that product has added permissions since it was
|
| - * last approved, and the URL will only display those new permissions that
|
| - * have not yet been accepted.
|
| - */
|
| + /// A URL that can be rendered in an iframe to display the permissions (if
|
| + /// any) of a product. This URL can be used to approve the product only once
|
| + /// and only within 24 hours of being generated, using the Products.approve
|
| + /// call. If the product is currently unapproved and has no permissions, this
|
| + /// URL will point to an empty page. If the product is currently approved, a
|
| + /// URL will only be generated if that product has added permissions since it
|
| + /// was last approved, and the URL will only display those new permissions
|
| + /// that have not yet been accepted.
|
| core.String url;
|
|
|
| ProductsGenerateApprovalUrlResponse();
|
| @@ -6414,7 +6557,8 @@ class ProductsGenerateApprovalUrlResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (url != null) {
|
| _json["url"] = url;
|
| }
|
| @@ -6422,21 +6566,20 @@ class ProductsGenerateApprovalUrlResponse {
|
| }
|
| }
|
|
|
| -/** The matching products. */
|
| +/// The matching products.
|
| class ProductsListResponse {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#productsListResponse".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#productsListResponse".
|
| core.String kind;
|
| - /** General pagination information. */
|
| +
|
| + /// General pagination information.
|
| PageInfo pageInfo;
|
| - /**
|
| - * Information about a product (e.g. an app) in the Google Play store, for
|
| - * display to an enterprise admin.
|
| - */
|
| +
|
| + /// Information about a product (e.g. an app) in the Google Play store, for
|
| + /// display to an enterprise admin.
|
| core.List<Product> product;
|
| - /** Pagination information for token pagination. */
|
| +
|
| + /// Pagination information for token pagination.
|
| TokenPagination tokenPagination;
|
|
|
| ProductsListResponse();
|
| @@ -6449,7 +6592,8 @@ class ProductsListResponse {
|
| pageInfo = new PageInfo.fromJson(_json["pageInfo"]);
|
| }
|
| if (_json.containsKey("product")) {
|
| - product = _json["product"].map((value) => new Product.fromJson(value)).toList();
|
| + product =
|
| + _json["product"].map((value) => new Product.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("tokenPagination")) {
|
| tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]);
|
| @@ -6457,7 +6601,8 @@ class ProductsListResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| @@ -6474,22 +6619,18 @@ class ProductsListResponse {
|
| }
|
| }
|
|
|
| -/**
|
| - * A service account identity, including the name and credentials that can be
|
| - * used to authenticate as the service account.
|
| - */
|
| +/// A service account identity, including the name and credentials that can be
|
| +/// used to authenticate as the service account.
|
| class ServiceAccount {
|
| - /** Credentials that can be used to authenticate as this ServiceAccount. */
|
| + /// Credentials that can be used to authenticate as this ServiceAccount.
|
| ServiceAccountKey key;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#serviceAccount".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#serviceAccount".
|
| core.String kind;
|
| - /**
|
| - * The account name of the service account, in the form of an email address.
|
| - * Assigned by the server.
|
| - */
|
| +
|
| + /// The account name of the service account, in the form of an email address.
|
| + /// Assigned by the server.
|
| core.String name;
|
|
|
| ServiceAccount();
|
| @@ -6507,7 +6648,8 @@ class ServiceAccount {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (key != null) {
|
| _json["key"] = (key).toJson();
|
| }
|
| @@ -6521,32 +6663,28 @@ class ServiceAccount {
|
| }
|
| }
|
|
|
| -/** Credentials that can be used to authenticate as a service account. */
|
| +/// Credentials that can be used to authenticate as a service account.
|
| class ServiceAccountKey {
|
| - /**
|
| - * The body of the private key credentials file, in string format. This is
|
| - * only populated when the ServiceAccountKey is created, and is not stored by
|
| - * Google.
|
| - */
|
| + /// The body of the private key credentials file, in string format. This is
|
| + /// only populated when the ServiceAccountKey is created, and is not stored
|
| + /// by Google.
|
| core.String data;
|
| - /**
|
| - * An opaque, unique identifier for this ServiceAccountKey. Assigned by the
|
| - * server.
|
| - */
|
| +
|
| + /// An opaque, unique identifier for this ServiceAccountKey. Assigned by the
|
| + /// server.
|
| core.String id;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#serviceAccountKey".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#serviceAccountKey".
|
| core.String kind;
|
| - /**
|
| - * Public key data for the credentials file. This is an X.509 cert. If you are
|
| - * using the googleCredentials key type, this is identical to the cert that
|
| - * can be retrieved by using the X.509 cert url inside of the credentials
|
| - * file.
|
| - */
|
| +
|
| + /// Public key data for the credentials file. This is an X.509 cert. If you
|
| + /// are using the googleCredentials key type, this is identical to the cert
|
| + /// that can be retrieved by using the X.509 cert url inside of the
|
| + /// credentials file.
|
| core.String publicData;
|
| - /** The file format of the generated key data. */
|
| +
|
| + /// The file format of the generated key data.
|
| core.String type;
|
|
|
| ServiceAccountKey();
|
| @@ -6570,7 +6708,8 @@ class ServiceAccountKey {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (data != null) {
|
| _json["data"] = data;
|
| }
|
| @@ -6591,45 +6730,43 @@ class ServiceAccountKey {
|
| }
|
|
|
| class ServiceAccountKeysListResponse {
|
| - /** The service account credentials. */
|
| + /// The service account credentials.
|
| core.List<ServiceAccountKey> serviceAccountKey;
|
|
|
| ServiceAccountKeysListResponse();
|
|
|
| ServiceAccountKeysListResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("serviceAccountKey")) {
|
| - serviceAccountKey = _json["serviceAccountKey"].map((value) => new ServiceAccountKey.fromJson(value)).toList();
|
| + serviceAccountKey = _json["serviceAccountKey"]
|
| + .map((value) => new ServiceAccountKey.fromJson(value))
|
| + .toList();
|
| }
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (serviceAccountKey != null) {
|
| - _json["serviceAccountKey"] = serviceAccountKey.map((value) => (value).toJson()).toList();
|
| + _json["serviceAccountKey"] =
|
| + serviceAccountKey.map((value) => (value).toJson()).toList();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/**
|
| - * A resource returned by the GenerateSignupUrl API, which contains the Signup
|
| - * URL and Completion Token.
|
| - */
|
| +/// A resource returned by the GenerateSignupUrl API, which contains the Signup
|
| +/// URL and Completion Token.
|
| class SignupInfo {
|
| - /**
|
| - * An opaque token that will be required, along with the Enterprise Token, for
|
| - * obtaining the enterprise resource from CompleteSignup.
|
| - */
|
| + /// An opaque token that will be required, along with the Enterprise Token,
|
| + /// for obtaining the enterprise resource from CompleteSignup.
|
| core.String completionToken;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#signupInfo".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#signupInfo".
|
| core.String kind;
|
| - /**
|
| - * A URL under which the Admin can sign up for an enterprise. The page pointed
|
| - * to cannot be rendered in an iframe.
|
| - */
|
| +
|
| + /// A URL under which the Admin can sign up for an enterprise. The page
|
| + /// pointed to cannot be rendered in an iframe.
|
| core.String url;
|
|
|
| SignupInfo();
|
| @@ -6647,7 +6784,8 @@ class SignupInfo {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (completionToken != null) {
|
| _json["completionToken"] = completionToken;
|
| }
|
| @@ -6661,40 +6799,33 @@ class SignupInfo {
|
| }
|
| }
|
|
|
| -/**
|
| - * Definition of a managed Google Play store cluster, a list of products
|
| - * displayed as part of a store page.
|
| - */
|
| +/// Definition of a managed Google Play store cluster, a list of products
|
| +/// displayed as part of a store page.
|
| class StoreCluster {
|
| - /**
|
| - * Unique ID of this cluster. Assigned by the server. Immutable once assigned.
|
| - */
|
| + /// Unique ID of this cluster. Assigned by the server. Immutable once
|
| + /// assigned.
|
| core.String id;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#storeCluster".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#storeCluster".
|
| core.String kind;
|
| - /**
|
| - * Ordered list of localized strings giving the name of this page. The text
|
| - * displayed is the one that best matches the user locale, or the first entry
|
| - * if there is no good match. There needs to be at least one entry.
|
| - */
|
| +
|
| + /// Ordered list of localized strings giving the name of this page. The text
|
| + /// displayed is the one that best matches the user locale, or the first
|
| + /// entry if there is no good match. There needs to be at least one entry.
|
| core.List<LocalizedText> name;
|
| - /**
|
| - * String (US-ASCII only) used to determine order of this cluster within the
|
| - * parent page's elements. Page elements are sorted in lexicographic order of
|
| - * this field. Duplicated values are allowed, but ordering between elements
|
| - * with duplicate order is undefined.
|
| - *
|
| - * The value of this field is never visible to a user, it is used solely for
|
| - * the purpose of defining an ordering. Maximum length is 256 characters.
|
| - */
|
| +
|
| + /// String (US-ASCII only) used to determine order of this cluster within the
|
| + /// parent page's elements. Page elements are sorted in lexicographic order
|
| + /// of this field. Duplicated values are allowed, but ordering between
|
| + /// elements with duplicate order is undefined.
|
| + ///
|
| + /// The value of this field is never visible to a user, it is used solely for
|
| + /// the purpose of defining an ordering. Maximum length is 256 characters.
|
| core.String orderInPage;
|
| - /**
|
| - * List of products in the order they are displayed in the cluster. There
|
| - * should not be duplicates within a cluster.
|
| - */
|
| +
|
| + /// List of products in the order they are displayed in the cluster. There
|
| + /// should not be duplicates within a cluster.
|
| core.List<core.String> productId;
|
|
|
| StoreCluster();
|
| @@ -6707,7 +6838,9 @@ class StoreCluster {
|
| kind = _json["kind"];
|
| }
|
| if (_json.containsKey("name")) {
|
| - name = _json["name"].map((value) => new LocalizedText.fromJson(value)).toList();
|
| + name = _json["name"]
|
| + .map((value) => new LocalizedText.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("orderInPage")) {
|
| orderInPage = _json["orderInPage"];
|
| @@ -6718,7 +6851,8 @@ class StoreCluster {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (id != null) {
|
| _json["id"] = id;
|
| }
|
| @@ -6738,30 +6872,24 @@ class StoreCluster {
|
| }
|
| }
|
|
|
| -/**
|
| - * General setting for the managed Google Play store layout, currently only
|
| - * specifying the page to display the first time the store is opened.
|
| - */
|
| +/// General setting for the managed Google Play store layout, currently only
|
| +/// specifying the page to display the first time the store is opened.
|
| class StoreLayout {
|
| - /**
|
| - * The ID of the store page to be used as the homepage. The homepage is the
|
| - * first page shown in the managed Google Play Store.
|
| - *
|
| - * Not specifying a homepage is equivalent to setting the store layout type to
|
| - * "basic".
|
| - */
|
| + /// The ID of the store page to be used as the homepage. The homepage is the
|
| + /// first page shown in the managed Google Play Store.
|
| + ///
|
| + /// Not specifying a homepage is equivalent to setting the store layout type
|
| + /// to "basic".
|
| core.String homepageId;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#storeLayout".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#storeLayout".
|
| core.String kind;
|
| - /**
|
| - * The store layout type. By default, this value is set to "basic" if the
|
| - * homepageId field is not set, and to "custom" otherwise. If set to "basic",
|
| - * the layout will consist of all approved apps that have been whitelisted for
|
| - * the user.
|
| - */
|
| +
|
| + /// The store layout type. By default, this value is set to "basic" if the
|
| + /// homepageId field is not set, and to "custom" otherwise. If set to
|
| + /// "basic", the layout will consist of all approved apps that have been
|
| + /// whitelisted for the user.
|
| core.String storeLayoutType;
|
|
|
| StoreLayout();
|
| @@ -6779,7 +6907,8 @@ class StoreLayout {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (homepageId != null) {
|
| _json["homepageId"] = homepageId;
|
| }
|
| @@ -6793,21 +6922,22 @@ class StoreLayout {
|
| }
|
| }
|
|
|
| -/** The store page resources for the enterprise. */
|
| +/// The store page resources for the enterprise.
|
| class StoreLayoutClustersListResponse {
|
| - /** A store cluster of an enterprise. */
|
| + /// A store cluster of an enterprise.
|
| core.List<StoreCluster> cluster;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#storeLayoutClustersListResponse".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#storeLayoutClustersListResponse".
|
| core.String kind;
|
|
|
| StoreLayoutClustersListResponse();
|
|
|
| StoreLayoutClustersListResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("cluster")) {
|
| - cluster = _json["cluster"].map((value) => new StoreCluster.fromJson(value)).toList();
|
| + cluster = _json["cluster"]
|
| + .map((value) => new StoreCluster.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -6815,7 +6945,8 @@ class StoreLayoutClustersListResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (cluster != null) {
|
| _json["cluster"] = cluster.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -6826,14 +6957,13 @@ class StoreLayoutClustersListResponse {
|
| }
|
| }
|
|
|
| -/** The store page resources for the enterprise. */
|
| +/// The store page resources for the enterprise.
|
| class StoreLayoutPagesListResponse {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#storeLayoutPagesListResponse".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#storeLayoutPagesListResponse".
|
| core.String kind;
|
| - /** A store page of an enterprise. */
|
| +
|
| + /// A store page of an enterprise.
|
| core.List<StorePage> page;
|
|
|
| StoreLayoutPagesListResponse();
|
| @@ -6843,12 +6973,14 @@ class StoreLayoutPagesListResponse {
|
| kind = _json["kind"];
|
| }
|
| if (_json.containsKey("page")) {
|
| - page = _json["page"].map((value) => new StorePage.fromJson(value)).toList();
|
| + page =
|
| + _json["page"].map((value) => new StorePage.fromJson(value)).toList();
|
| }
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| @@ -6859,37 +6991,30 @@ class StoreLayoutPagesListResponse {
|
| }
|
| }
|
|
|
| -/**
|
| - * Definition of a managed Google Play store page, made of a localized name and
|
| - * links to other pages. A page also contains clusters defined as a
|
| - * subcollection.
|
| - */
|
| +/// Definition of a managed Google Play store page, made of a localized name
|
| +/// and links to other pages. A page also contains clusters defined as a
|
| +/// subcollection.
|
| class StorePage {
|
| - /**
|
| - * Unique ID of this page. Assigned by the server. Immutable once assigned.
|
| - */
|
| + /// Unique ID of this page. Assigned by the server. Immutable once assigned.
|
| core.String id;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#storePage".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#storePage".
|
| core.String kind;
|
| - /**
|
| - * Ordered list of pages a user should be able to reach from this page. The
|
| - * pages must exist, must not be this page, and once a link is created the
|
| - * page linked to cannot be deleted until all links to it are removed. It is
|
| - * recommended that the basic pages are created first, before adding the links
|
| - * between pages.
|
| - *
|
| - * No attempt is made to verify that all pages are reachable from the
|
| - * homepage.
|
| - */
|
| +
|
| + /// Ordered list of pages a user should be able to reach from this page. The
|
| + /// pages must exist, must not be this page, and once a link is created the
|
| + /// page linked to cannot be deleted until all links to it are removed. It is
|
| + /// recommended that the basic pages are created first, before adding the
|
| + /// links between pages.
|
| + ///
|
| + /// No attempt is made to verify that all pages are reachable from the
|
| + /// homepage.
|
| core.List<core.String> link;
|
| - /**
|
| - * Ordered list of localized strings giving the name of this page. The text
|
| - * displayed is the one that best matches the user locale, or the first entry
|
| - * if there is no good match. There needs to be at least one entry.
|
| - */
|
| +
|
| + /// Ordered list of localized strings giving the name of this page. The text
|
| + /// displayed is the one that best matches the user locale, or the first
|
| + /// entry if there is no good match. There needs to be at least one entry.
|
| core.List<LocalizedText> name;
|
|
|
| StorePage();
|
| @@ -6905,12 +7030,15 @@ class StorePage {
|
| link = _json["link"];
|
| }
|
| if (_json.containsKey("name")) {
|
| - name = _json["name"].map((value) => new LocalizedText.fromJson(value)).toList();
|
| + name = _json["name"]
|
| + .map((value) => new LocalizedText.fromJson(value))
|
| + .toList();
|
| }
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (id != null) {
|
| _json["id"] = id;
|
| }
|
| @@ -6943,7 +7071,8 @@ class TokenPagination {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (nextPageToken != null) {
|
| _json["nextPageToken"] = nextPageToken;
|
| }
|
| @@ -6954,58 +7083,50 @@ class TokenPagination {
|
| }
|
| }
|
|
|
| -/**
|
| - * A Users resource represents an account associated with an enterprise. The
|
| - * account may be specific to a device or to an individual user (who can then
|
| - * use the account across multiple devices). The account may provide access to
|
| - * managed Google Play only, or to other Google services, depending on the
|
| - * identity model:
|
| - * - The Google managed domain identity model requires synchronization to Google
|
| - * account sources (via primaryEmail).
|
| - * - The managed Google Play Accounts identity model provides a dynamic means
|
| - * for enterprises to create user or device accounts as needed. These accounts
|
| - * provide access to managed Google Play.
|
| - */
|
| +/// A Users resource represents an account associated with an enterprise. The
|
| +/// account may be specific to a device or to an individual user (who can then
|
| +/// use the account across multiple devices). The account may provide access to
|
| +/// managed Google Play only, or to other Google services, depending on the
|
| +/// identity model:
|
| +/// - The Google managed domain identity model requires synchronization to
|
| +/// Google account sources (via primaryEmail).
|
| +/// - The managed Google Play Accounts identity model provides a dynamic means
|
| +/// for enterprises to create user or device accounts as needed. These accounts
|
| +/// provide access to managed Google Play.
|
| class User {
|
| - /**
|
| - * A unique identifier you create for this user, such as "user342" or
|
| - * "asset#44418". Do not use personally identifiable information (PII) for
|
| - * this property. Must always be set for EMM-managed users. Not set for
|
| - * Google-managed users.
|
| - */
|
| + /// A unique identifier you create for this user, such as "user342" or
|
| + /// "asset#44418". Do not use personally identifiable information (PII) for
|
| + /// this property. Must always be set for EMM-managed users. Not set for
|
| + /// Google-managed users.
|
| core.String accountIdentifier;
|
| - /**
|
| - * The type of account that this user represents. A userAccount can be
|
| - * installed on multiple devices, but a deviceAccount is specific to a single
|
| - * device. An EMM-managed user (emmManaged) can be either type (userAccount,
|
| - * deviceAccount), but a Google-managed user (googleManaged) is always a
|
| - * userAccount.
|
| - */
|
| +
|
| + /// The type of account that this user represents. A userAccount can be
|
| + /// installed on multiple devices, but a deviceAccount is specific to a
|
| + /// single device. An EMM-managed user (emmManaged) can be either type
|
| + /// (userAccount, deviceAccount), but a Google-managed user (googleManaged)
|
| + /// is always a userAccount.
|
| core.String accountType;
|
| - /**
|
| - * The name that will appear in user interfaces. Setting this property is
|
| - * optional when creating EMM-managed users. If you do set this property, use
|
| - * something generic about the organization (such as "Example, Inc.") or your
|
| - * name (as EMM). Not used for Google-managed user accounts.
|
| - */
|
| +
|
| + /// The name that will appear in user interfaces. Setting this property is
|
| + /// optional when creating EMM-managed users. If you do set this property,
|
| + /// use something generic about the organization (such as "Example, Inc.") or
|
| + /// your name (as EMM). Not used for Google-managed user accounts.
|
| core.String displayName;
|
| - /** The unique ID for the user. */
|
| +
|
| + /// The unique ID for the user.
|
| core.String id;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#user".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#user".
|
| core.String kind;
|
| - /**
|
| - * The entity that manages the user. With googleManaged users, the source of
|
| - * truth is Google so EMMs have to make sure a Google Account exists for the
|
| - * user. With emmManaged users, the EMM is in charge.
|
| - */
|
| +
|
| + /// The entity that manages the user. With googleManaged users, the source of
|
| + /// truth is Google so EMMs have to make sure a Google Account exists for the
|
| + /// user. With emmManaged users, the EMM is in charge.
|
| core.String managementType;
|
| - /**
|
| - * The user's primary email address, for example, "jsmith@example.com". Will
|
| - * always be set for Google managed users and not set for EMM managed users.
|
| - */
|
| +
|
| + /// The user's primary email address, for example, "jsmith@example.com". Will
|
| + /// always be set for Google managed users and not set for EMM managed users.
|
| core.String primaryEmail;
|
|
|
| User();
|
| @@ -7035,7 +7156,8 @@ class User {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (accountIdentifier != null) {
|
| _json["accountIdentifier"] = accountIdentifier;
|
| }
|
| @@ -7061,24 +7183,20 @@ class User {
|
| }
|
| }
|
|
|
| -/**
|
| - * A UserToken is used by a user when setting up a managed device or profile
|
| - * with their managed Google Play account on a device. When the user enters
|
| - * their email address and token (activation code) the appropriate EMM app can
|
| - * be automatically downloaded.
|
| - */
|
| +/// A UserToken is used by a user when setting up a managed device or profile
|
| +/// with their managed Google Play account on a device. When the user enters
|
| +/// their email address and token (activation code) the appropriate EMM app can
|
| +/// be automatically downloaded.
|
| class UserToken {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#userToken".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#userToken".
|
| core.String kind;
|
| - /**
|
| - * The token (activation code) to be entered by the user. This consists of a
|
| - * sequence of decimal digits. Note that the leading digit may be 0.
|
| - */
|
| +
|
| + /// The token (activation code) to be entered by the user. This consists of a
|
| + /// sequence of decimal digits. Note that the leading digit may be 0.
|
| core.String token;
|
| - /** The unique ID for the user. */
|
| +
|
| + /// The unique ID for the user.
|
| core.String userId;
|
|
|
| UserToken();
|
| @@ -7096,7 +7214,8 @@ class UserToken {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| @@ -7110,14 +7229,13 @@ class UserToken {
|
| }
|
| }
|
|
|
| -/** The matching user resources. */
|
| +/// The matching user resources.
|
| class UsersListResponse {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "androidenterprise#usersListResponse".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "androidenterprise#usersListResponse".
|
| core.String kind;
|
| - /** A user of an enterprise. */
|
| +
|
| + /// A user of an enterprise.
|
| core.List<User> user;
|
|
|
| UsersListResponse();
|
| @@ -7132,7 +7250,8 @@ class UsersListResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
|
|