googleapis
Version:
Google APIs Client Library for Node.js
1,364 lines • 100 kB
JavaScript
"use strict";
/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
var apirequest_1 = require("../../lib/apirequest");
// TODO: We will eventually get the `any` in here cleared out, but in the
// interim we want to turn on no-implicit-any.
// tslint:disable: no-any
// tslint:disable: class-name
// tslint:disable: variable-name
// tslint:disable: jsdoc-format
/**
* Google Play EMM API
*
* Manages the deployment of apps to Android for Work users.
*
* @example
* const google = require('googleapis');
* const androidenterprise = google.androidenterprise('v1');
*
* @namespace androidenterprise
* @type {Function}
* @version v1
* @variation v1
* @param {object=} options Options for Androidenterprise
*/
var Androidenterprise = /** @class */ (function () {
function Androidenterprise(options, google) {
this.root = this;
this._options = options || {};
this.google = google;
this.getRoot.bind(this);
this.devices = new Resource$Devices(this);
this.enterprises = new Resource$Enterprises(this);
this.entitlements = new Resource$Entitlements(this);
this.grouplicenses = new Resource$Grouplicenses(this);
this.grouplicenseusers = new Resource$Grouplicenseusers(this);
this.installs = new Resource$Installs(this);
this.managedconfigurationsfordevice =
new Resource$Managedconfigurationsfordevice(this);
this.managedconfigurationsforuser =
new Resource$Managedconfigurationsforuser(this);
this.managedconfigurationssettings =
new Resource$Managedconfigurationssettings(this);
this.permissions = new Resource$Permissions(this);
this.products = new Resource$Products(this);
this.serviceaccountkeys = new Resource$Serviceaccountkeys(this);
this.storelayoutclusters = new Resource$Storelayoutclusters(this);
this.storelayoutpages = new Resource$Storelayoutpages(this);
this.users = new Resource$Users(this);
}
Androidenterprise.prototype.getRoot = function () {
return this.root;
};
return Androidenterprise;
}());
exports.Androidenterprise = Androidenterprise;
var Resource$Devices = /** @class */ (function () {
function Resource$Devices(root) {
this.root = root;
this.getRoot.bind(this);
}
Resource$Devices.prototype.getRoot = function () {
return this.root;
};
Resource$Devices.prototype.get = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
}, options),
params: params,
requiredParams: ['enterpriseId', 'userId', 'deviceId'],
pathParams: ['deviceId', 'enterpriseId', 'userId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Devices.prototype.getState = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
}, options),
params: params,
requiredParams: ['enterpriseId', 'userId', 'deviceId'],
pathParams: ['deviceId', 'enterpriseId', 'userId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Devices.prototype.list = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
}, options),
params: params,
requiredParams: ['enterpriseId', 'userId'],
pathParams: ['enterpriseId', 'userId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Devices.prototype.patch = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'PATCH'
}, options),
params: params,
requiredParams: ['enterpriseId', 'userId', 'deviceId'],
pathParams: ['deviceId', 'enterpriseId', 'userId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Devices.prototype.setState = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'PUT'
}, options),
params: params,
requiredParams: ['enterpriseId', 'userId', 'deviceId'],
pathParams: ['deviceId', 'enterpriseId', 'userId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Devices.prototype.update = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'PUT'
}, options),
params: params,
requiredParams: ['enterpriseId', 'userId', 'deviceId'],
pathParams: ['deviceId', 'enterpriseId', 'userId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
return Resource$Devices;
}());
exports.Resource$Devices = Resource$Devices;
var Resource$Enterprises = /** @class */ (function () {
function Resource$Enterprises(root) {
this.root = root;
this.getRoot.bind(this);
}
Resource$Enterprises.prototype.getRoot = function () {
return this.root;
};
Resource$Enterprises.prototype.acknowledgeNotificationSet = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/acknowledgeNotificationSet')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'POST'
}, options),
params: params,
requiredParams: [],
pathParams: [],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Enterprises.prototype.completeSignup = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl + '/androidenterprise/v1/enterprises/completeSignup')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'POST'
}, options),
params: params,
requiredParams: [],
pathParams: [],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Enterprises.prototype.createWebToken = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/createWebToken')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'POST'
}, options),
params: params,
requiredParams: ['enterpriseId'],
pathParams: ['enterpriseId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Enterprises.prototype.delete = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl + '/androidenterprise/v1/enterprises/{enterpriseId}')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'DELETE'
}, options),
params: params,
requiredParams: ['enterpriseId'],
pathParams: ['enterpriseId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Enterprises.prototype.enroll = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl + '/androidenterprise/v1/enterprises/enroll')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'POST'
}, options),
params: params,
requiredParams: ['token'],
pathParams: [],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Enterprises.prototype.generateSignupUrl = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl + '/androidenterprise/v1/enterprises/signupUrl')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'POST'
}, options),
params: params,
requiredParams: [],
pathParams: [],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Enterprises.prototype.get = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl + '/androidenterprise/v1/enterprises/{enterpriseId}')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
}, options),
params: params,
requiredParams: ['enterpriseId'],
pathParams: ['enterpriseId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Enterprises.prototype.getAndroidDevicePolicyConfig = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/androidDevicePolicyConfig')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
}, options),
params: params,
requiredParams: ['enterpriseId'],
pathParams: ['enterpriseId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Enterprises.prototype.getServiceAccount = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccount')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
}, options),
params: params,
requiredParams: ['enterpriseId'],
pathParams: ['enterpriseId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Enterprises.prototype.getStoreLayout = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
}, options),
params: params,
requiredParams: ['enterpriseId'],
pathParams: ['enterpriseId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Enterprises.prototype.insert = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl + '/androidenterprise/v1/enterprises')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'POST'
}, options),
params: params,
requiredParams: ['token'],
pathParams: [],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Enterprises.prototype.list = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl + '/androidenterprise/v1/enterprises')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
}, options),
params: params,
requiredParams: ['domain'],
pathParams: [],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Enterprises.prototype.pullNotificationSet = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/pullNotificationSet')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'POST'
}, options),
params: params,
requiredParams: [],
pathParams: [],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Enterprises.prototype.sendTestPushNotification = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/sendTestPushNotification')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'POST'
}, options),
params: params,
requiredParams: ['enterpriseId'],
pathParams: ['enterpriseId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Enterprises.prototype.setAccount = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/account')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'PUT'
}, options),
params: params,
requiredParams: ['enterpriseId'],
pathParams: ['enterpriseId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Enterprises.prototype.setAndroidDevicePolicyConfig = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/androidDevicePolicyConfig')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'PUT'
}, options),
params: params,
requiredParams: ['enterpriseId'],
pathParams: ['enterpriseId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Enterprises.prototype.setStoreLayout = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'PUT'
}, options),
params: params,
requiredParams: ['enterpriseId'],
pathParams: ['enterpriseId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Enterprises.prototype.unenroll = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/unenroll')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'POST'
}, options),
params: params,
requiredParams: ['enterpriseId'],
pathParams: ['enterpriseId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
return Resource$Enterprises;
}());
exports.Resource$Enterprises = Resource$Enterprises;
var Resource$Entitlements = /** @class */ (function () {
function Resource$Entitlements(root) {
this.root = root;
this.getRoot.bind(this);
}
Resource$Entitlements.prototype.getRoot = function () {
return this.root;
};
Resource$Entitlements.prototype.delete = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'DELETE'
}, options),
params: params,
requiredParams: ['enterpriseId', 'userId', 'entitlementId'],
pathParams: ['enterpriseId', 'entitlementId', 'userId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Entitlements.prototype.get = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
}, options),
params: params,
requiredParams: ['enterpriseId', 'userId', 'entitlementId'],
pathParams: ['enterpriseId', 'entitlementId', 'userId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Entitlements.prototype.list = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
}, options),
params: params,
requiredParams: ['enterpriseId', 'userId'],
pathParams: ['enterpriseId', 'userId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Entitlements.prototype.patch = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'PATCH'
}, options),
params: params,
requiredParams: ['enterpriseId', 'userId', 'entitlementId'],
pathParams: ['enterpriseId', 'entitlementId', 'userId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Entitlements.prototype.update = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'PUT'
}, options),
params: params,
requiredParams: ['enterpriseId', 'userId', 'entitlementId'],
pathParams: ['enterpriseId', 'entitlementId', 'userId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
return Resource$Entitlements;
}());
exports.Resource$Entitlements = Resource$Entitlements;
var Resource$Grouplicenses = /** @class */ (function () {
function Resource$Grouplicenses(root) {
this.root = root;
this.getRoot.bind(this);
}
Resource$Grouplicenses.prototype.getRoot = function () {
return this.root;
};
Resource$Grouplicenses.prototype.get = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
}, options),
params: params,
requiredParams: ['enterpriseId', 'groupLicenseId'],
pathParams: ['enterpriseId', 'groupLicenseId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Grouplicenses.prototype.list = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
}, options),
params: params,
requiredParams: ['enterpriseId'],
pathParams: ['enterpriseId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
return Resource$Grouplicenses;
}());
exports.Resource$Grouplicenses = Resource$Grouplicenses;
var Resource$Grouplicenseusers = /** @class */ (function () {
function Resource$Grouplicenseusers(root) {
this.root = root;
this.getRoot.bind(this);
}
Resource$Grouplicenseusers.prototype.getRoot = function () {
return this.root;
};
Resource$Grouplicenseusers.prototype.list = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
}, options),
params: params,
requiredParams: ['enterpriseId', 'groupLicenseId'],
pathParams: ['enterpriseId', 'groupLicenseId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
return Resource$Grouplicenseusers;
}());
exports.Resource$Grouplicenseusers = Resource$Grouplicenseusers;
var Resource$Installs = /** @class */ (function () {
function Resource$Installs(root) {
this.root = root;
this.getRoot.bind(this);
}
Resource$Installs.prototype.getRoot = function () {
return this.root;
};
Resource$Installs.prototype.delete = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'DELETE'
}, options),
params: params,
requiredParams: ['enterpriseId', 'userId', 'deviceId', 'installId'],
pathParams: ['deviceId', 'enterpriseId', 'installId', 'userId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Installs.prototype.get = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
}, options),
params: params,
requiredParams: ['enterpriseId', 'userId', 'deviceId', 'installId'],
pathParams: ['deviceId', 'enterpriseId', 'installId', 'userId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Installs.prototype.list = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
}, options),
params: params,
requiredParams: ['enterpriseId', 'userId', 'deviceId'],
pathParams: ['deviceId', 'enterpriseId', 'userId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Installs.prototype.patch = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'PATCH'
}, options),
params: params,
requiredParams: ['enterpriseId', 'userId', 'deviceId', 'installId'],
pathParams: ['deviceId', 'enterpriseId', 'installId', 'userId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Installs.prototype.update = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'PUT'
}, options),
params: params,
requiredParams: ['enterpriseId', 'userId', 'deviceId', 'installId'],
pathParams: ['deviceId', 'enterpriseId', 'installId', 'userId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
return Resource$Installs;
}());
exports.Resource$Installs = Resource$Installs;
var Resource$Managedconfigurationsfordevice = /** @class */ (function () {
function Resource$Managedconfigurationsfordevice(root) {
this.root = root;
this.getRoot.bind(this);
}
Resource$Managedconfigurationsfordevice.prototype.getRoot = function () {
return this.root;
};
Resource$Managedconfigurationsfordevice.prototype.delete = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'DELETE'
}, options),
params: params,
requiredParams: [
'enterpriseId', 'userId', 'deviceId', 'managedConfigurationForDeviceId'
],
pathParams: [
'deviceId', 'enterpriseId', 'managedConfigurationForDeviceId', 'userId'
],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Managedconfigurationsfordevice.prototype.get = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
}, options),
params: params,
requiredParams: [
'enterpriseId', 'userId', 'deviceId', 'managedConfigurationForDeviceId'
],
pathParams: [
'deviceId', 'enterpriseId', 'managedConfigurationForDeviceId', 'userId'
],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Managedconfigurationsfordevice.prototype.list = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
}, options),
params: params,
requiredParams: ['enterpriseId', 'userId', 'deviceId'],
pathParams: ['deviceId', 'enterpriseId', 'userId'],
context: this.getRoot()
};
if (callback) {
apirequest_1.createAPIRequest(parameters, callback);
}
else {
return apirequest_1.createAPIRequest(parameters);
}
};
Resource$Managedconfigurationsfordevice.prototype.patch = function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
if (typeof params === 'function') {
callback = params;
params = {};
}
options = options || {};
var rootUrl = options.rootUrl || 'https://www.googleapis.com/';
var parameters = {
options: Object.assign({
url: (rootUrl +
'/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'PATCH'
}, options),
params: params