UNPKG

googleapis

Version:
1,123 lines 44.4 kB
"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.cloudidentity_v1 = void 0; /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/class-name-casing */ /* 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 cloudidentity_v1; (function (cloudidentity_v1) { /** * Cloud Identity API * * API for provisioning and managing identity resources. * * @example * ```js * const {google} = require('googleapis'); * const cloudidentity = google.cloudidentity('v1'); * ``` */ class Cloudidentity { constructor(options, google) { this.context = { _options: options || {}, google, }; this.devices = new Resource$Devices(this.context); this.groups = new Resource$Groups(this.context); } } cloudidentity_v1.Cloudidentity = Cloudidentity; class Resource$Devices { constructor(context) { this.context = context; this.deviceUsers = new Resource$Devices$Deviceusers(this.context); } cancelWipe(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}:cancelWipe').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } create(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/devices').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, requiredParams: [], pathParams: [], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } delete(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } 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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return 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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/devices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, requiredParams: [], pathParams: [], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } wipe(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}:wipe').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } } cloudidentity_v1.Resource$Devices = Resource$Devices; class Resource$Devices$Deviceusers { constructor(context) { this.context = context; this.clientStates = new Resource$Devices$Deviceusers$Clientstates(this.context); } approve(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } block(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}:block').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } cancelWipe(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}:cancelWipe').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } delete(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } 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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return 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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+parent}/deviceUsers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } lookup(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+parent}:lookup').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } wipe(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}:wipe').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } } cloudidentity_v1.Resource$Devices$Deviceusers = Resource$Devices$Deviceusers; class Resource$Devices$Deviceusers$Clientstates { 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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return 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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+parent}/clientStates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } patch(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } } cloudidentity_v1.Resource$Devices$Deviceusers$Clientstates = Resource$Devices$Deviceusers$Clientstates; class Resource$Groups { constructor(context) { this.context = context; this.memberships = new Resource$Groups$Memberships(this.context); } create(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/groups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, requiredParams: [], pathParams: [], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } delete(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } 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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return 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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/groups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, requiredParams: [], pathParams: [], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } lookup(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/groups:lookup').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, requiredParams: [], pathParams: [], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } patch(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } search(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/groups:search').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, requiredParams: [], pathParams: [], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } } cloudidentity_v1.Resource$Groups = Resource$Groups; class Resource$Groups$Memberships { constructor(context) { this.context = context; } checkTransitiveMembership(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+parent}/memberships:checkTransitiveMembership').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } create(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } delete(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } 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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } getMembershipGraph(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+parent}/memberships:getMembershipGraph').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return 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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } lookup(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+parent}/memberships:lookup').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } modifyMembershipRoles(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}:modifyMembershipRoles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } searchTransitiveGroups(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+parent}/memberships:searchTransitiveGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } searchTransitiveMemberships(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://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+parent}/memberships:searchTransitiveMemberships').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { googleapis_common_1.createAPIRequest(parameters, callback); } else { return googleapis_common_1.createAPIRequest(parameters); } } } cloudidentity_v1.Resource$Groups$Memberships = Resource$Groups$Memberships; })(cloudidentity_v1 = exports.cloudidentity_v1 || (exports.cloudidentity_v1 = {})); //# sourceMappingURL=v1.js.map