/
opt
/
canhelp
/
node_modules
/
googleapis
/
build
/
src
/
apis
/
chromepolicy
/
/opt/canhelp/node_modules/googleapis/build/src/apis/chromepolicy
mkdir
upload
Name
Size
Mode
Actions
index.d.ts
621
0644
edit
dl
rm
index.js
1495
0644
edit
dl
rm
v1.d.ts
101103
0644
edit
dl
rm
v1.js
22479
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/googleapis/build/src/apis/chromepolicy/v1.js
(22479B)
"use strict"; // Copyright 2020 Google LLC // 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 }); exports.chromepolicy_v1 = void 0; /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable @typescript-eslint/no-empty-interface */ /* eslint-disable @typescript-eslint/no-namespace */ /* eslint-disable no-irregular-whitespace */ const googleapis_common_1 = require("googleapis-common"); var chromepolicy_v1; (function (chromepolicy_v1) { /** * Chrome Policy API * * The Chrome Policy API is a suite of services that allows Chrome administrators to control the policies applied to their managed Chrome OS devices and Chrome browsers. * * @example * ```js * const {google} = require('googleapis'); * const chromepolicy = google.chromepolicy('v1'); * ``` */ class Chromepolicy { context; customers; media; constructor(options, google) { this.context = { _options: options || {}, google, }; this.customers = new Resource$Customers(this.context); this.media = new Resource$Media(this.context); } } chromepolicy_v1.Chromepolicy = Chromepolicy; class Resource$Customers { context; policies; policySchemas; constructor(context) { this.context = context; this.policies = new Resource$Customers$Policies(this.context); this.policySchemas = new Resource$Customers$Policyschemas(this.context); } } chromepolicy_v1.Resource$Customers = Resource$Customers; class Resource$Customers$Policies { context; groups; networks; orgunits; constructor(context) { this.context = context; this.groups = new Resource$Customers$Policies$Groups(this.context); this.networks = new Resource$Customers$Policies$Networks(this.context); this.orgunits = new Resource$Customers$Policies$Orgunits(this.context); } resolve(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+customer}/policies:resolve').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['customer'], pathParams: ['customer'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } chromepolicy_v1.Resource$Customers$Policies = Resource$Customers$Policies; class Resource$Customers$Policies$Groups { context; constructor(context) { this.context = context; } batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+customer}/policies/groups:batchDelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['customer'], pathParams: ['customer'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } batchModify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+customer}/policies/groups:batchModify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['customer'], pathParams: ['customer'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } listGroupPriorityOrdering(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+customer}/policies/groups:listGroupPriorityOrdering').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['customer'], pathParams: ['customer'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } updateGroupPriorityOrdering(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+customer}/policies/groups:updateGroupPriorityOrdering').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['customer'], pathParams: ['customer'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } chromepolicy_v1.Resource$Customers$Policies$Groups = Resource$Customers$Policies$Groups; class Resource$Customers$Policies$Networks { context; constructor(context) { this.context = context; } defineCertificate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+customer}/policies/networks:defineCertificate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['customer'], pathParams: ['customer'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } defineNetwork(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+customer}/policies/networks:defineNetwork').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['customer'], pathParams: ['customer'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } removeCertificate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+customer}/policies/networks:removeCertificate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['customer'], pathParams: ['customer'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } removeNetwork(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+customer}/policies/networks:removeNetwork').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['customer'], pathParams: ['customer'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } chromepolicy_v1.Resource$Customers$Policies$Networks = Resource$Customers$Policies$Networks; class Resource$Customers$Policies$Orgunits { context; constructor(context) { this.context = context; } batchInherit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+customer}/policies/orgunits:batchInherit').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['customer'], pathParams: ['customer'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } batchModify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+customer}/policies/orgunits:batchModify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['customer'], pathParams: ['customer'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } chromepolicy_v1.Resource$Customers$Policies$Orgunits = Resource$Customers$Policies$Orgunits; class Resource$Customers$Policyschemas { context; constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+parent}/policySchemas').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } chromepolicy_v1.Resource$Customers$Policyschemas = Resource$Customers$Policyschemas; class Resource$Media { context; constructor(context) { this.context = context; } upload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+customer}/policies/files:uploadPolicyFile').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, mediaUrl: (rootUrl + '/upload/v1/{+customer}/policies/files:uploadPolicyFile').replace(/([^:]\/)\/+/g, '$1'), requiredParams: ['customer'], pathParams: ['customer'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } chromepolicy_v1.Resource$Media = Resource$Media; })(chromepolicy_v1 || (exports.chromepolicy_v1 = chromepolicy_v1 = {}));
Save
cmd:
run