googleapis
Advanced tools
| /*! THIS FILE IS AUTO-GENERATED */ | ||
| import { AuthPlus } from 'googleapis-common'; | ||
| import { agentregistry_v1alpha } from './v1alpha'; | ||
| export declare const VERSIONS: { | ||
| v1alpha: typeof agentregistry_v1alpha.Agentregistry; | ||
| }; | ||
| export declare function agentregistry(version: 'v1alpha'): agentregistry_v1alpha.Agentregistry; | ||
| export declare function agentregistry(options: agentregistry_v1alpha.Options): agentregistry_v1alpha.Agentregistry; | ||
| declare const auth: AuthPlus; | ||
| export { auth }; | ||
| export { agentregistry_v1alpha }; | ||
| export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, MethodOptions, BodyResponseCallback, } from 'googleapis-common'; |
| "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.AuthPlus = exports.agentregistry_v1alpha = exports.auth = exports.VERSIONS = void 0; | ||
| exports.agentregistry = agentregistry; | ||
| /*! THIS FILE IS AUTO-GENERATED */ | ||
| const googleapis_common_1 = require("googleapis-common"); | ||
| const v1alpha_1 = require("./v1alpha"); | ||
| Object.defineProperty(exports, "agentregistry_v1alpha", { enumerable: true, get: function () { return v1alpha_1.agentregistry_v1alpha; } }); | ||
| exports.VERSIONS = { | ||
| v1alpha: v1alpha_1.agentregistry_v1alpha.Agentregistry, | ||
| }; | ||
| function agentregistry(versionOrOptions) { | ||
| return (0, googleapis_common_1.getAPI)('agentregistry', versionOrOptions, exports.VERSIONS, this); | ||
| } | ||
| const auth = new googleapis_common_1.AuthPlus(); | ||
| exports.auth = auth; | ||
| var googleapis_common_2 = require("googleapis-common"); | ||
| Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); |
Sorry, the diff of this file is too big to display
| "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.agentregistry_v1alpha = 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 agentregistry_v1alpha; | ||
| (function (agentregistry_v1alpha) { | ||
| /** | ||
| * Agent Registry API | ||
| * | ||
| * Agent Registry is a centralized, unified catalog that lets you store, discover, and govern Model Context Protocol (MCP) servers, tools, and AI agents within Google Cloud. | ||
| * | ||
| * @example | ||
| * ```js | ||
| * const {google} = require('googleapis'); | ||
| * const agentregistry = google.agentregistry('v1alpha'); | ||
| * ``` | ||
| */ | ||
| class Agentregistry { | ||
| context; | ||
| projects; | ||
| constructor(options, google) { | ||
| this.context = { | ||
| _options: options || {}, | ||
| google, | ||
| }; | ||
| this.projects = new Resource$Projects(this.context); | ||
| } | ||
| } | ||
| agentregistry_v1alpha.Agentregistry = Agentregistry; | ||
| class Resource$Projects { | ||
| context; | ||
| locations; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.locations = new Resource$Projects$Locations(this.context); | ||
| } | ||
| } | ||
| agentregistry_v1alpha.Resource$Projects = Resource$Projects; | ||
| class Resource$Projects$Locations { | ||
| context; | ||
| agents; | ||
| bindings; | ||
| endpoints; | ||
| mcpServers; | ||
| operations; | ||
| services; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.agents = new Resource$Projects$Locations$Agents(this.context); | ||
| this.bindings = new Resource$Projects$Locations$Bindings(this.context); | ||
| this.endpoints = new Resource$Projects$Locations$Endpoints(this.context); | ||
| this.mcpServers = new Resource$Projects$Locations$Mcpservers(this.context); | ||
| this.operations = new Resource$Projects$Locations$Operations(this.context); | ||
| this.services = new Resource$Projects$Locations$Services(this.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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+name}/locations').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); | ||
| } | ||
| } | ||
| } | ||
| agentregistry_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; | ||
| class Resource$Projects$Locations$Agents { | ||
| 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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+parent}/agents').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); | ||
| } | ||
| } | ||
| 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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+parent}/agents:search').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| agentregistry_v1alpha.Resource$Projects$Locations$Agents = Resource$Projects$Locations$Agents; | ||
| class Resource$Projects$Locations$Bindings { | ||
| context; | ||
| constructor(context) { | ||
| this.context = 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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+parent}/bindings').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| fetchAvailable(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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+parent}/bindings:fetchAvailable').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); | ||
| } | ||
| } | ||
| 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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+parent}/bindings').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); | ||
| } | ||
| } | ||
| 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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| agentregistry_v1alpha.Resource$Projects$Locations$Bindings = Resource$Projects$Locations$Bindings; | ||
| class Resource$Projects$Locations$Endpoints { | ||
| 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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+parent}/endpoints').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); | ||
| } | ||
| } | ||
| } | ||
| agentregistry_v1alpha.Resource$Projects$Locations$Endpoints = Resource$Projects$Locations$Endpoints; | ||
| class Resource$Projects$Locations$Mcpservers { | ||
| 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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+parent}/mcpServers').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); | ||
| } | ||
| } | ||
| 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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+parent}/mcpServers:search').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| agentregistry_v1alpha.Resource$Projects$Locations$Mcpservers = Resource$Projects$Locations$Mcpservers; | ||
| class Resource$Projects$Locations$Operations { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| cancel(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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+name}/operations').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); | ||
| } | ||
| } | ||
| } | ||
| agentregistry_v1alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; | ||
| class Resource$Projects$Locations$Services { | ||
| context; | ||
| constructor(context) { | ||
| this.context = 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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+parent}/services').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); | ||
| } | ||
| } | ||
| 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://agentregistry.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| agentregistry_v1alpha.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; | ||
| })(agentregistry_v1alpha || (exports.agentregistry_v1alpha = agentregistry_v1alpha = {})); |
| /*! THIS FILE IS AUTO-GENERATED */ | ||
| import { AuthPlus } from 'googleapis-common'; | ||
| import { ces_v1 } from './v1'; | ||
| import { ces_v1beta } from './v1beta'; | ||
| export declare const VERSIONS: { | ||
| v1: typeof ces_v1.Ces; | ||
| v1beta: typeof ces_v1beta.Ces; | ||
| }; | ||
| export declare function ces(version: 'v1'): ces_v1.Ces; | ||
| export declare function ces(options: ces_v1.Options): ces_v1.Ces; | ||
| export declare function ces(version: 'v1beta'): ces_v1beta.Ces; | ||
| export declare function ces(options: ces_v1beta.Options): ces_v1beta.Ces; | ||
| declare const auth: AuthPlus; | ||
| export { auth }; | ||
| export { ces_v1 }; | ||
| export { ces_v1beta }; | ||
| export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, MethodOptions, BodyResponseCallback, } from 'googleapis-common'; |
| "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.AuthPlus = exports.ces_v1beta = exports.ces_v1 = exports.auth = exports.VERSIONS = void 0; | ||
| exports.ces = ces; | ||
| /*! THIS FILE IS AUTO-GENERATED */ | ||
| const googleapis_common_1 = require("googleapis-common"); | ||
| const v1_1 = require("./v1"); | ||
| Object.defineProperty(exports, "ces_v1", { enumerable: true, get: function () { return v1_1.ces_v1; } }); | ||
| const v1beta_1 = require("./v1beta"); | ||
| Object.defineProperty(exports, "ces_v1beta", { enumerable: true, get: function () { return v1beta_1.ces_v1beta; } }); | ||
| exports.VERSIONS = { | ||
| v1: v1_1.ces_v1.Ces, | ||
| v1beta: v1beta_1.ces_v1beta.Ces, | ||
| }; | ||
| function ces(versionOrOptions) { | ||
| return (0, googleapis_common_1.getAPI)('ces', versionOrOptions, exports.VERSIONS, this); | ||
| } | ||
| const auth = new googleapis_common_1.AuthPlus(); | ||
| exports.auth = auth; | ||
| var googleapis_common_2 = require("googleapis-common"); | ||
| Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
| /*! THIS FILE IS AUTO-GENERATED */ | ||
| import { AuthPlus } from 'googleapis-common'; | ||
| import { developerknowledge_v1 } from './v1'; | ||
| import { developerknowledge_v1alpha } from './v1alpha'; | ||
| export declare const VERSIONS: { | ||
| v1: typeof developerknowledge_v1.Developerknowledge; | ||
| v1alpha: typeof developerknowledge_v1alpha.Developerknowledge; | ||
| }; | ||
| export declare function developerknowledge(version: 'v1'): developerknowledge_v1.Developerknowledge; | ||
| export declare function developerknowledge(options: developerknowledge_v1.Options): developerknowledge_v1.Developerknowledge; | ||
| export declare function developerknowledge(version: 'v1alpha'): developerknowledge_v1alpha.Developerknowledge; | ||
| export declare function developerknowledge(options: developerknowledge_v1alpha.Options): developerknowledge_v1alpha.Developerknowledge; | ||
| declare const auth: AuthPlus; | ||
| export { auth }; | ||
| export { developerknowledge_v1 }; | ||
| export { developerknowledge_v1alpha }; | ||
| export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, MethodOptions, BodyResponseCallback, } from 'googleapis-common'; |
| "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.AuthPlus = exports.developerknowledge_v1alpha = exports.developerknowledge_v1 = exports.auth = exports.VERSIONS = void 0; | ||
| exports.developerknowledge = developerknowledge; | ||
| /*! THIS FILE IS AUTO-GENERATED */ | ||
| const googleapis_common_1 = require("googleapis-common"); | ||
| const v1_1 = require("./v1"); | ||
| Object.defineProperty(exports, "developerknowledge_v1", { enumerable: true, get: function () { return v1_1.developerknowledge_v1; } }); | ||
| const v1alpha_1 = require("./v1alpha"); | ||
| Object.defineProperty(exports, "developerknowledge_v1alpha", { enumerable: true, get: function () { return v1alpha_1.developerknowledge_v1alpha; } }); | ||
| exports.VERSIONS = { | ||
| v1: v1_1.developerknowledge_v1.Developerknowledge, | ||
| v1alpha: v1alpha_1.developerknowledge_v1alpha.Developerknowledge, | ||
| }; | ||
| function developerknowledge(versionOrOptions) { | ||
| return (0, googleapis_common_1.getAPI)('developerknowledge', versionOrOptions, exports.VERSIONS, this); | ||
| } | ||
| const auth = new googleapis_common_1.AuthPlus(); | ||
| exports.auth = auth; | ||
| var googleapis_common_2 = require("googleapis-common"); | ||
| Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); |
| import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| import { Readable } from 'stream'; | ||
| export declare namespace developerknowledge_v1 { | ||
| export interface Options extends GlobalOptions { | ||
| version: 'v1'; | ||
| } | ||
| interface StandardParameters { | ||
| /** | ||
| * Auth client or API Key for the request | ||
| */ | ||
| auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth; | ||
| /** | ||
| * V1 error format. | ||
| */ | ||
| '$.xgafv'?: string; | ||
| /** | ||
| * OAuth access token. | ||
| */ | ||
| access_token?: string; | ||
| /** | ||
| * Data format for response. | ||
| */ | ||
| alt?: string; | ||
| /** | ||
| * JSONP | ||
| */ | ||
| callback?: string; | ||
| /** | ||
| * Selector specifying which fields to include in a partial response. | ||
| */ | ||
| fields?: string; | ||
| /** | ||
| * API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. | ||
| */ | ||
| key?: string; | ||
| /** | ||
| * OAuth 2.0 token for the current user. | ||
| */ | ||
| oauth_token?: string; | ||
| /** | ||
| * Returns response with indentations and line breaks. | ||
| */ | ||
| prettyPrint?: boolean; | ||
| /** | ||
| * Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. | ||
| */ | ||
| quotaUser?: string; | ||
| /** | ||
| * Legacy upload protocol for media (e.g. "media", "multipart"). | ||
| */ | ||
| uploadType?: string; | ||
| /** | ||
| * Upload protocol for media (e.g. "raw", "multipart"). | ||
| */ | ||
| upload_protocol?: string; | ||
| } | ||
| /** | ||
| * Developer Knowledge API | ||
| * | ||
| * The Developer Knowledge API provides access to Google's developer knowledge. | ||
| * | ||
| * @example | ||
| * ```js | ||
| * const {google} = require('googleapis'); | ||
| * const developerknowledge = google.developerknowledge('v1'); | ||
| * ``` | ||
| */ | ||
| export class Developerknowledge { | ||
| context: APIRequestContext; | ||
| documents: Resource$Documents; | ||
| constructor(options: GlobalOptions, google?: GoogleConfigurable); | ||
| } | ||
| /** | ||
| * Response message for DeveloperKnowledge.BatchGetDocuments. | ||
| */ | ||
| export interface Schema$BatchGetDocumentsResponse { | ||
| /** | ||
| * Contains the documents requested. | ||
| */ | ||
| documents?: Schema$Document[]; | ||
| } | ||
| /** | ||
| * A Document represents a piece of content from the Developer Knowledge corpus. | ||
| */ | ||
| export interface Schema$Document { | ||
| /** | ||
| * Output only. Contains the full content of the document in Markdown format. | ||
| */ | ||
| content?: string | null; | ||
| /** | ||
| * Output only. Specifies the data source of the document. Example data source: `firebase.google.com` | ||
| */ | ||
| dataSource?: string | null; | ||
| /** | ||
| * Output only. Provides a description of the document. | ||
| */ | ||
| description?: string | null; | ||
| /** | ||
| * Identifier. Contains the resource name of the document. Format: `documents/{uri_without_scheme\}` Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` | ||
| */ | ||
| name?: string | null; | ||
| /** | ||
| * Output only. Provides the title of the document. | ||
| */ | ||
| title?: string | null; | ||
| /** | ||
| * Output only. Represents the timestamp when the content or metadata of the document was last updated. | ||
| */ | ||
| updateTime?: string | null; | ||
| /** | ||
| * Output only. Provides the URI of the content, such as `docs.cloud.google.com/storage/docs/creating-buckets`. | ||
| */ | ||
| uri?: string | null; | ||
| /** | ||
| * Output only. Specifies the DocumentView of the document. | ||
| */ | ||
| view?: string | null; | ||
| } | ||
| /** | ||
| * A DocumentChunk represents a piece of content from a Document in the DeveloperKnowledge corpus. To fetch the entire document content, pass the `parent` to DeveloperKnowledge.GetDocument or DeveloperKnowledge.BatchGetDocuments. | ||
| */ | ||
| export interface Schema$DocumentChunk { | ||
| /** | ||
| * Output only. Contains the content of the document chunk. | ||
| */ | ||
| content?: string | null; | ||
| /** | ||
| * Output only. Represents metadata about the Document this chunk is from. The DocumentView of this Document message will be set to `DOCUMENT_VIEW_BASIC`. It is included here for convenience so that clients do not need to call DeveloperKnowledge.GetDocument or DeveloperKnowledge.BatchGetDocuments if they only need the metadata fields. Otherwise, clients should use DeveloperKnowledge.GetDocument or DeveloperKnowledge.BatchGetDocuments to fetch the full document content. | ||
| */ | ||
| document?: Schema$Document; | ||
| /** | ||
| * Output only. Specifies the ID of this chunk within the document. The chunk ID is unique within a document, but not globally unique across documents. The chunk ID is not stable and may change over time. | ||
| */ | ||
| id?: string | null; | ||
| /** | ||
| * Output only. Contains the resource name of the document this chunk is from. Format: `documents/{uri_without_scheme\}` Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` | ||
| */ | ||
| parent?: string | null; | ||
| } | ||
| /** | ||
| * Response message for DeveloperKnowledge.SearchDocumentChunks. | ||
| */ | ||
| export interface Schema$SearchDocumentChunksResponse { | ||
| /** | ||
| * Optional. Provides a token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. | ||
| */ | ||
| nextPageToken?: string | null; | ||
| /** | ||
| * Contains the search results for the given query. Each DocumentChunk in this list contains a snippet of content relevant to the search query. Use the DocumentChunk.parent field of each result with DeveloperKnowledge.GetDocument or DeveloperKnowledge.BatchGetDocuments to retrieve the full document content. | ||
| */ | ||
| results?: Schema$DocumentChunk[]; | ||
| } | ||
| export class Resource$Documents { | ||
| context: APIRequestContext; | ||
| constructor(context: APIRequestContext); | ||
| /** | ||
| * Retrieves multiple documents, each with its full Markdown content. | ||
| * @example | ||
| * ```js | ||
| * // Before running the sample: | ||
| * // - Enable the API at: | ||
| * // https://console.developers.google.com/apis/api/developerknowledge.googleapis.com | ||
| * // - Login into gcloud by running: | ||
| * // ```sh | ||
| * // $ gcloud auth application-default login | ||
| * // ``` | ||
| * // - Install the npm module by running: | ||
| * // ```sh | ||
| * // $ npm install googleapis | ||
| * // ``` | ||
| * | ||
| * const {google} = require('googleapis'); | ||
| * const developerknowledge = google.developerknowledge('v1'); | ||
| * | ||
| * async function main() { | ||
| * const auth = new google.auth.GoogleAuth({ | ||
| * // Scopes can be specified either as an array or as a single, space-delimited string. | ||
| * scopes: ['https://www.googleapis.com/auth/cloud-platform'], | ||
| * }); | ||
| * | ||
| * // Acquire an auth client, and bind it to all future calls | ||
| * const authClient = await auth.getClient(); | ||
| * google.options({auth: authClient}); | ||
| * | ||
| * // Do the magic | ||
| * const res = await developerknowledge.documents.batchGet({ | ||
| * // Required. Specifies the names of the documents to retrieve. A maximum of 20 documents can be retrieved in a batch. The documents are returned in the same order as the `names` in the request. Format: `documents/{uri_without_scheme\}` Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` | ||
| * names: 'placeholder-value', | ||
| * // Optional. Specifies the DocumentView of the document. If unspecified, DeveloperKnowledge.BatchGetDocuments defaults to `DOCUMENT_VIEW_CONTENT`. | ||
| * view: 'placeholder-value', | ||
| * }); | ||
| * console.log(res.data); | ||
| * | ||
| * // Example response | ||
| * // { | ||
| * // "documents": [] | ||
| * // } | ||
| * } | ||
| * | ||
| * main().catch(e => { | ||
| * console.error(e); | ||
| * throw e; | ||
| * }); | ||
| * | ||
| * ``` | ||
| * | ||
| * @param params - Parameters for request | ||
| * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. | ||
| * @param callback - Optional callback that handles the response. | ||
| * @returns A promise if used with async/await, or void if used with a callback. | ||
| */ | ||
| batchGet(params: Params$Resource$Documents$Batchget, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>; | ||
| batchGet(params?: Params$Resource$Documents$Batchget, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$BatchGetDocumentsResponse>>; | ||
| batchGet(params: Params$Resource$Documents$Batchget, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; | ||
| batchGet(params: Params$Resource$Documents$Batchget, options: MethodOptions | BodyResponseCallback<Schema$BatchGetDocumentsResponse>, callback: BodyResponseCallback<Schema$BatchGetDocumentsResponse>): void; | ||
| batchGet(params: Params$Resource$Documents$Batchget, callback: BodyResponseCallback<Schema$BatchGetDocumentsResponse>): void; | ||
| batchGet(callback: BodyResponseCallback<Schema$BatchGetDocumentsResponse>): void; | ||
| /** | ||
| * Retrieves a single document with its full Markdown content. | ||
| * @example | ||
| * ```js | ||
| * // Before running the sample: | ||
| * // - Enable the API at: | ||
| * // https://console.developers.google.com/apis/api/developerknowledge.googleapis.com | ||
| * // - Login into gcloud by running: | ||
| * // ```sh | ||
| * // $ gcloud auth application-default login | ||
| * // ``` | ||
| * // - Install the npm module by running: | ||
| * // ```sh | ||
| * // $ npm install googleapis | ||
| * // ``` | ||
| * | ||
| * const {google} = require('googleapis'); | ||
| * const developerknowledge = google.developerknowledge('v1'); | ||
| * | ||
| * async function main() { | ||
| * const auth = new google.auth.GoogleAuth({ | ||
| * // Scopes can be specified either as an array or as a single, space-delimited string. | ||
| * scopes: ['https://www.googleapis.com/auth/cloud-platform'], | ||
| * }); | ||
| * | ||
| * // Acquire an auth client, and bind it to all future calls | ||
| * const authClient = await auth.getClient(); | ||
| * google.options({auth: authClient}); | ||
| * | ||
| * // Do the magic | ||
| * const res = await developerknowledge.documents.get({ | ||
| * // Required. Specifies the name of the document to retrieve. Format: `documents/{uri_without_scheme\}` Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` | ||
| * name: 'documents/.*', | ||
| * // Optional. Specifies the DocumentView of the document. If unspecified, DeveloperKnowledge.GetDocument defaults to `DOCUMENT_VIEW_CONTENT`. | ||
| * view: 'placeholder-value', | ||
| * }); | ||
| * console.log(res.data); | ||
| * | ||
| * // Example response | ||
| * // { | ||
| * // "content": "my_content", | ||
| * // "dataSource": "my_dataSource", | ||
| * // "description": "my_description", | ||
| * // "name": "my_name", | ||
| * // "title": "my_title", | ||
| * // "updateTime": "my_updateTime", | ||
| * // "uri": "my_uri", | ||
| * // "view": "my_view" | ||
| * // } | ||
| * } | ||
| * | ||
| * main().catch(e => { | ||
| * console.error(e); | ||
| * throw e; | ||
| * }); | ||
| * | ||
| * ``` | ||
| * | ||
| * @param params - Parameters for request | ||
| * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. | ||
| * @param callback - Optional callback that handles the response. | ||
| * @returns A promise if used with async/await, or void if used with a callback. | ||
| */ | ||
| get(params: Params$Resource$Documents$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>; | ||
| get(params?: Params$Resource$Documents$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Document>>; | ||
| get(params: Params$Resource$Documents$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; | ||
| get(params: Params$Resource$Documents$Get, options: MethodOptions | BodyResponseCallback<Schema$Document>, callback: BodyResponseCallback<Schema$Document>): void; | ||
| get(params: Params$Resource$Documents$Get, callback: BodyResponseCallback<Schema$Document>): void; | ||
| get(callback: BodyResponseCallback<Schema$Document>): void; | ||
| /** | ||
| * Searches for developer knowledge across Google's developer documentation. Returns DocumentChunks based on the user's query. There may be many chunks from the same Document. To retrieve full documents, use DeveloperKnowledge.GetDocument or DeveloperKnowledge.BatchGetDocuments with the DocumentChunk.parent returned in the SearchDocumentChunksResponse.results. | ||
| * @example | ||
| * ```js | ||
| * // Before running the sample: | ||
| * // - Enable the API at: | ||
| * // https://console.developers.google.com/apis/api/developerknowledge.googleapis.com | ||
| * // - Login into gcloud by running: | ||
| * // ```sh | ||
| * // $ gcloud auth application-default login | ||
| * // ``` | ||
| * // - Install the npm module by running: | ||
| * // ```sh | ||
| * // $ npm install googleapis | ||
| * // ``` | ||
| * | ||
| * const {google} = require('googleapis'); | ||
| * const developerknowledge = google.developerknowledge('v1'); | ||
| * | ||
| * async function main() { | ||
| * const auth = new google.auth.GoogleAuth({ | ||
| * // Scopes can be specified either as an array or as a single, space-delimited string. | ||
| * scopes: ['https://www.googleapis.com/auth/cloud-platform'], | ||
| * }); | ||
| * | ||
| * // Acquire an auth client, and bind it to all future calls | ||
| * const authClient = await auth.getClient(); | ||
| * google.options({auth: authClient}); | ||
| * | ||
| * // Do the magic | ||
| * const res = await developerknowledge.documents.searchDocumentChunks({ | ||
| * // Optional. Applies a strict filter to the search results. The expression supports a subset of the syntax described at https://google.aip.dev/160. While `SearchDocumentChunks` returns DocumentChunks, the filter is applied to `DocumentChunk.document` fields. Supported fields for filtering: * `data_source` (STRING): The source of the document, e.g. `docs.cloud.google.com`. See https://developers.google.com/knowledge/reference/corpus-reference for the complete list of data sources in the corpus. * `update_time` (TIMESTAMP): The timestamp of when the document was last meaningfully updated. A meaningful update is one that changes document's markdown content or metadata. * `uri` (STRING): The document URI, e.g. `https://docs.cloud.google.com/bigquery/docs/tables`. STRING fields support `=` (equals) and `!=` (not equals) operators for **exact match** on the whole string. Partial match, prefix match, and regexp match are not supported. TIMESTAMP fields support `=`, `<`, `<=`, `\>`, and `\>=` operators. Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`. You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical operators. `OR` has higher precedence than `AND`. Use parentheses for explicit precedence grouping. Examples: * `data_source = "docs.cloud.google.com" OR data_source = "firebase.google.com"` * `data_source != "firebase.google.com"` * `update_time < "2024-01-01T00:00:00Z"` * `update_time \>= "2025-01-22T00:00:00Z" AND (data_source = "developer.chrome.com" OR data_source = "web.dev")` * `uri = "https://docs.cloud.google.com/release-notes"` The `filter` string must not exceed 500 characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` error. | ||
| * filter: 'placeholder-value', | ||
| * // Optional. Specifies the maximum number of results to return. The service may return fewer than this value. If unspecified, at most 5 results will be returned. The maximum value is 20; values above 20 will result in an INVALID_ARGUMENT error. | ||
| * pageSize: 'placeholder-value', | ||
| * // Optional. Contains a page token, received from a previous `SearchDocumentChunks` call. Provide this to retrieve the subsequent page. | ||
| * pageToken: 'placeholder-value', | ||
| * // Required. Provides the raw query string provided by the user, such as "How to create a Cloud Storage bucket?". | ||
| * query: 'placeholder-value', | ||
| * }); | ||
| * console.log(res.data); | ||
| * | ||
| * // Example response | ||
| * // { | ||
| * // "nextPageToken": "my_nextPageToken", | ||
| * // "results": [] | ||
| * // } | ||
| * } | ||
| * | ||
| * main().catch(e => { | ||
| * console.error(e); | ||
| * throw e; | ||
| * }); | ||
| * | ||
| * ``` | ||
| * | ||
| * @param params - Parameters for request | ||
| * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. | ||
| * @param callback - Optional callback that handles the response. | ||
| * @returns A promise if used with async/await, or void if used with a callback. | ||
| */ | ||
| searchDocumentChunks(params: Params$Resource$Documents$Searchdocumentchunks, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>; | ||
| searchDocumentChunks(params?: Params$Resource$Documents$Searchdocumentchunks, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$SearchDocumentChunksResponse>>; | ||
| searchDocumentChunks(params: Params$Resource$Documents$Searchdocumentchunks, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; | ||
| searchDocumentChunks(params: Params$Resource$Documents$Searchdocumentchunks, options: MethodOptions | BodyResponseCallback<Schema$SearchDocumentChunksResponse>, callback: BodyResponseCallback<Schema$SearchDocumentChunksResponse>): void; | ||
| searchDocumentChunks(params: Params$Resource$Documents$Searchdocumentchunks, callback: BodyResponseCallback<Schema$SearchDocumentChunksResponse>): void; | ||
| searchDocumentChunks(callback: BodyResponseCallback<Schema$SearchDocumentChunksResponse>): void; | ||
| } | ||
| export interface Params$Resource$Documents$Batchget extends StandardParameters { | ||
| /** | ||
| * Required. Specifies the names of the documents to retrieve. A maximum of 20 documents can be retrieved in a batch. The documents are returned in the same order as the `names` in the request. Format: `documents/{uri_without_scheme\}` Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` | ||
| */ | ||
| names?: string[]; | ||
| /** | ||
| * Optional. Specifies the DocumentView of the document. If unspecified, DeveloperKnowledge.BatchGetDocuments defaults to `DOCUMENT_VIEW_CONTENT`. | ||
| */ | ||
| view?: string; | ||
| } | ||
| export interface Params$Resource$Documents$Get extends StandardParameters { | ||
| /** | ||
| * Required. Specifies the name of the document to retrieve. Format: `documents/{uri_without_scheme\}` Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` | ||
| */ | ||
| name?: string; | ||
| /** | ||
| * Optional. Specifies the DocumentView of the document. If unspecified, DeveloperKnowledge.GetDocument defaults to `DOCUMENT_VIEW_CONTENT`. | ||
| */ | ||
| view?: string; | ||
| } | ||
| export interface Params$Resource$Documents$Searchdocumentchunks extends StandardParameters { | ||
| /** | ||
| * Optional. Applies a strict filter to the search results. The expression supports a subset of the syntax described at https://google.aip.dev/160. While `SearchDocumentChunks` returns DocumentChunks, the filter is applied to `DocumentChunk.document` fields. Supported fields for filtering: * `data_source` (STRING): The source of the document, e.g. `docs.cloud.google.com`. See https://developers.google.com/knowledge/reference/corpus-reference for the complete list of data sources in the corpus. * `update_time` (TIMESTAMP): The timestamp of when the document was last meaningfully updated. A meaningful update is one that changes document's markdown content or metadata. * `uri` (STRING): The document URI, e.g. `https://docs.cloud.google.com/bigquery/docs/tables`. STRING fields support `=` (equals) and `!=` (not equals) operators for **exact match** on the whole string. Partial match, prefix match, and regexp match are not supported. TIMESTAMP fields support `=`, `<`, `<=`, `\>`, and `\>=` operators. Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`. You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical operators. `OR` has higher precedence than `AND`. Use parentheses for explicit precedence grouping. Examples: * `data_source = "docs.cloud.google.com" OR data_source = "firebase.google.com"` * `data_source != "firebase.google.com"` * `update_time < "2024-01-01T00:00:00Z"` * `update_time \>= "2025-01-22T00:00:00Z" AND (data_source = "developer.chrome.com" OR data_source = "web.dev")` * `uri = "https://docs.cloud.google.com/release-notes"` The `filter` string must not exceed 500 characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` error. | ||
| */ | ||
| filter?: string; | ||
| /** | ||
| * Optional. Specifies the maximum number of results to return. The service may return fewer than this value. If unspecified, at most 5 results will be returned. The maximum value is 20; values above 20 will result in an INVALID_ARGUMENT error. | ||
| */ | ||
| pageSize?: number; | ||
| /** | ||
| * Optional. Contains a page token, received from a previous `SearchDocumentChunks` call. Provide this to retrieve the subsequent page. | ||
| */ | ||
| pageToken?: string; | ||
| /** | ||
| * Required. Provides the raw query string provided by the user, such as "How to create a Cloud Storage bucket?". | ||
| */ | ||
| query?: string; | ||
| } | ||
| export {}; | ||
| } |
| "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.developerknowledge_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 developerknowledge_v1; | ||
| (function (developerknowledge_v1) { | ||
| /** | ||
| * Developer Knowledge API | ||
| * | ||
| * The Developer Knowledge API provides access to Google's developer knowledge. | ||
| * | ||
| * @example | ||
| * ```js | ||
| * const {google} = require('googleapis'); | ||
| * const developerknowledge = google.developerknowledge('v1'); | ||
| * ``` | ||
| */ | ||
| class Developerknowledge { | ||
| context; | ||
| documents; | ||
| constructor(options, google) { | ||
| this.context = { | ||
| _options: options || {}, | ||
| google, | ||
| }; | ||
| this.documents = new Resource$Documents(this.context); | ||
| } | ||
| } | ||
| developerknowledge_v1.Developerknowledge = Developerknowledge; | ||
| class Resource$Documents { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| batchGet(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://developerknowledge.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/documents:batchGet').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'GET', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: [], | ||
| pathParams: [], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, 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://developerknowledge.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); | ||
| } | ||
| } | ||
| searchDocumentChunks(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://developerknowledge.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/documents:searchDocumentChunks').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'GET', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: [], | ||
| pathParams: [], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| } | ||
| developerknowledge_v1.Resource$Documents = Resource$Documents; | ||
| })(developerknowledge_v1 || (exports.developerknowledge_v1 = developerknowledge_v1 = {})); |
| import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| import { Readable } from 'stream'; | ||
| export declare namespace developerknowledge_v1alpha { | ||
| export interface Options extends GlobalOptions { | ||
| version: 'v1alpha'; | ||
| } | ||
| interface StandardParameters { | ||
| /** | ||
| * Auth client or API Key for the request | ||
| */ | ||
| auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth; | ||
| /** | ||
| * V1 error format. | ||
| */ | ||
| '$.xgafv'?: string; | ||
| /** | ||
| * OAuth access token. | ||
| */ | ||
| access_token?: string; | ||
| /** | ||
| * Data format for response. | ||
| */ | ||
| alt?: string; | ||
| /** | ||
| * JSONP | ||
| */ | ||
| callback?: string; | ||
| /** | ||
| * Selector specifying which fields to include in a partial response. | ||
| */ | ||
| fields?: string; | ||
| /** | ||
| * API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. | ||
| */ | ||
| key?: string; | ||
| /** | ||
| * OAuth 2.0 token for the current user. | ||
| */ | ||
| oauth_token?: string; | ||
| /** | ||
| * Returns response with indentations and line breaks. | ||
| */ | ||
| prettyPrint?: boolean; | ||
| /** | ||
| * Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. | ||
| */ | ||
| quotaUser?: string; | ||
| /** | ||
| * Legacy upload protocol for media (e.g. "media", "multipart"). | ||
| */ | ||
| uploadType?: string; | ||
| /** | ||
| * Upload protocol for media (e.g. "raw", "multipart"). | ||
| */ | ||
| upload_protocol?: string; | ||
| } | ||
| /** | ||
| * Developer Knowledge API | ||
| * | ||
| * The Developer Knowledge API provides access to Google's developer knowledge. | ||
| * | ||
| * @example | ||
| * ```js | ||
| * const {google} = require('googleapis'); | ||
| * const developerknowledge = google.developerknowledge('v1alpha'); | ||
| * ``` | ||
| */ | ||
| export class Developerknowledge { | ||
| context: APIRequestContext; | ||
| documents: Resource$Documents; | ||
| v1alpha: Resource$V1alpha; | ||
| constructor(options: GlobalOptions, google?: GoogleConfigurable); | ||
| } | ||
| /** | ||
| * An answer to a query. | ||
| */ | ||
| export interface Schema$Answer { | ||
| /** | ||
| * The text of the answer. | ||
| */ | ||
| answerText?: string | null; | ||
| } | ||
| /** | ||
| * Request message for DeveloperKnowledge.AnswerQuery. | ||
| */ | ||
| export interface Schema$AnswerQueryRequest { | ||
| /** | ||
| * Required. The query to answer. | ||
| */ | ||
| query?: string | null; | ||
| } | ||
| /** | ||
| * Response message for DeveloperKnowledge.AnswerQuery. | ||
| */ | ||
| export interface Schema$AnswerQueryResponse { | ||
| /** | ||
| * The answer to the query. | ||
| */ | ||
| answer?: Schema$Answer; | ||
| } | ||
| /** | ||
| * Response message for DeveloperKnowledge.BatchGetDocuments. | ||
| */ | ||
| export interface Schema$BatchGetDocumentsResponse { | ||
| /** | ||
| * Contains the documents requested. | ||
| */ | ||
| documents?: Schema$Document[]; | ||
| } | ||
| /** | ||
| * A Document represents a piece of content from the Developer Knowledge corpus. | ||
| */ | ||
| export interface Schema$Document { | ||
| /** | ||
| * Output only. Contains the full content of the document in Markdown format. | ||
| */ | ||
| content?: string | null; | ||
| /** | ||
| * Output only. Specifies the data source of the document. Example data source: `firebase.google.com` | ||
| */ | ||
| dataSource?: string | null; | ||
| /** | ||
| * Output only. Provides a description of the document. | ||
| */ | ||
| description?: string | null; | ||
| /** | ||
| * Identifier. Contains the resource name of the document. Format: `documents/{uri_without_scheme\}` Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` | ||
| */ | ||
| name?: string | null; | ||
| /** | ||
| * Output only. Provides the title of the document. | ||
| */ | ||
| title?: string | null; | ||
| /** | ||
| * Output only. Represents the timestamp when the content or metadata of the document was last updated. | ||
| */ | ||
| updateTime?: string | null; | ||
| /** | ||
| * Output only. Provides the URI of the content, such as `docs.cloud.google.com/storage/docs/creating-buckets`. | ||
| */ | ||
| uri?: string | null; | ||
| /** | ||
| * Output only. Specifies the DocumentView of the document. | ||
| */ | ||
| view?: string | null; | ||
| } | ||
| /** | ||
| * A DocumentChunk represents a piece of content from a Document in the DeveloperKnowledge corpus. To fetch the entire document content, pass the `parent` to DeveloperKnowledge.GetDocument or DeveloperKnowledge.BatchGetDocuments. | ||
| */ | ||
| export interface Schema$DocumentChunk { | ||
| /** | ||
| * Output only. Contains the content of the document chunk. | ||
| */ | ||
| content?: string | null; | ||
| /** | ||
| * Output only. Represents metadata about the Document this chunk is from. The DocumentView of this Document message will be set to `DOCUMENT_VIEW_BASIC`. It is included here for convenience so that clients do not need to call DeveloperKnowledge.GetDocument or DeveloperKnowledge.BatchGetDocuments if they only need the metadata fields. Otherwise, clients should use DeveloperKnowledge.GetDocument or DeveloperKnowledge.BatchGetDocuments to fetch the full document content. | ||
| */ | ||
| document?: Schema$Document; | ||
| /** | ||
| * Output only. Specifies the ID of this chunk within the document. The chunk ID is unique within a document, but not globally unique across documents. The chunk ID is not stable and may change over time. | ||
| */ | ||
| id?: string | null; | ||
| /** | ||
| * Output only. Contains the resource name of the document this chunk is from. Format: `documents/{uri_without_scheme\}` Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` | ||
| */ | ||
| parent?: string | null; | ||
| } | ||
| /** | ||
| * Response message for DeveloperKnowledge.SearchDocumentChunks. | ||
| */ | ||
| export interface Schema$SearchDocumentChunksResponse { | ||
| /** | ||
| * Optional. Provides a token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. | ||
| */ | ||
| nextPageToken?: string | null; | ||
| /** | ||
| * Contains the search results for the given query. Each DocumentChunk in this list contains a snippet of content relevant to the search query. Use the DocumentChunk.parent field of each result with DeveloperKnowledge.GetDocument or DeveloperKnowledge.BatchGetDocuments to retrieve the full document content. | ||
| */ | ||
| results?: Schema$DocumentChunk[]; | ||
| } | ||
| export class Resource$Documents { | ||
| context: APIRequestContext; | ||
| constructor(context: APIRequestContext); | ||
| /** | ||
| * Retrieves multiple documents, each with its full Markdown content. | ||
| * @example | ||
| * ```js | ||
| * // Before running the sample: | ||
| * // - Enable the API at: | ||
| * // https://console.developers.google.com/apis/api/developerknowledge.googleapis.com | ||
| * // - Login into gcloud by running: | ||
| * // ```sh | ||
| * // $ gcloud auth application-default login | ||
| * // ``` | ||
| * // - Install the npm module by running: | ||
| * // ```sh | ||
| * // $ npm install googleapis | ||
| * // ``` | ||
| * | ||
| * const {google} = require('googleapis'); | ||
| * const developerknowledge = google.developerknowledge('v1alpha'); | ||
| * | ||
| * async function main() { | ||
| * const auth = new google.auth.GoogleAuth({ | ||
| * // Scopes can be specified either as an array or as a single, space-delimited string. | ||
| * scopes: ['https://www.googleapis.com/auth/cloud-platform'], | ||
| * }); | ||
| * | ||
| * // Acquire an auth client, and bind it to all future calls | ||
| * const authClient = await auth.getClient(); | ||
| * google.options({auth: authClient}); | ||
| * | ||
| * // Do the magic | ||
| * const res = await developerknowledge.documents.batchGet({ | ||
| * // Required. Specifies the names of the documents to retrieve. A maximum of 20 documents can be retrieved in a batch. The documents are returned in the same order as the `names` in the request. Format: `documents/{uri_without_scheme\}` Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` | ||
| * names: 'placeholder-value', | ||
| * // Optional. Specifies the DocumentView of the document. If unspecified, DeveloperKnowledge.BatchGetDocuments defaults to `DOCUMENT_VIEW_CONTENT`. | ||
| * view: 'placeholder-value', | ||
| * }); | ||
| * console.log(res.data); | ||
| * | ||
| * // Example response | ||
| * // { | ||
| * // "documents": [] | ||
| * // } | ||
| * } | ||
| * | ||
| * main().catch(e => { | ||
| * console.error(e); | ||
| * throw e; | ||
| * }); | ||
| * | ||
| * ``` | ||
| * | ||
| * @param params - Parameters for request | ||
| * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. | ||
| * @param callback - Optional callback that handles the response. | ||
| * @returns A promise if used with async/await, or void if used with a callback. | ||
| */ | ||
| batchGet(params: Params$Resource$Documents$Batchget, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>; | ||
| batchGet(params?: Params$Resource$Documents$Batchget, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$BatchGetDocumentsResponse>>; | ||
| batchGet(params: Params$Resource$Documents$Batchget, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; | ||
| batchGet(params: Params$Resource$Documents$Batchget, options: MethodOptions | BodyResponseCallback<Schema$BatchGetDocumentsResponse>, callback: BodyResponseCallback<Schema$BatchGetDocumentsResponse>): void; | ||
| batchGet(params: Params$Resource$Documents$Batchget, callback: BodyResponseCallback<Schema$BatchGetDocumentsResponse>): void; | ||
| batchGet(callback: BodyResponseCallback<Schema$BatchGetDocumentsResponse>): void; | ||
| /** | ||
| * Retrieves a single document with its full Markdown content. | ||
| * @example | ||
| * ```js | ||
| * // Before running the sample: | ||
| * // - Enable the API at: | ||
| * // https://console.developers.google.com/apis/api/developerknowledge.googleapis.com | ||
| * // - Login into gcloud by running: | ||
| * // ```sh | ||
| * // $ gcloud auth application-default login | ||
| * // ``` | ||
| * // - Install the npm module by running: | ||
| * // ```sh | ||
| * // $ npm install googleapis | ||
| * // ``` | ||
| * | ||
| * const {google} = require('googleapis'); | ||
| * const developerknowledge = google.developerknowledge('v1alpha'); | ||
| * | ||
| * async function main() { | ||
| * const auth = new google.auth.GoogleAuth({ | ||
| * // Scopes can be specified either as an array or as a single, space-delimited string. | ||
| * scopes: ['https://www.googleapis.com/auth/cloud-platform'], | ||
| * }); | ||
| * | ||
| * // Acquire an auth client, and bind it to all future calls | ||
| * const authClient = await auth.getClient(); | ||
| * google.options({auth: authClient}); | ||
| * | ||
| * // Do the magic | ||
| * const res = await developerknowledge.documents.get({ | ||
| * // Required. Specifies the name of the document to retrieve. Format: `documents/{uri_without_scheme\}` Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` | ||
| * name: 'documents/.*', | ||
| * // Optional. Specifies the DocumentView of the document. If unspecified, DeveloperKnowledge.GetDocument defaults to `DOCUMENT_VIEW_CONTENT`. | ||
| * view: 'placeholder-value', | ||
| * }); | ||
| * console.log(res.data); | ||
| * | ||
| * // Example response | ||
| * // { | ||
| * // "content": "my_content", | ||
| * // "dataSource": "my_dataSource", | ||
| * // "description": "my_description", | ||
| * // "name": "my_name", | ||
| * // "title": "my_title", | ||
| * // "updateTime": "my_updateTime", | ||
| * // "uri": "my_uri", | ||
| * // "view": "my_view" | ||
| * // } | ||
| * } | ||
| * | ||
| * main().catch(e => { | ||
| * console.error(e); | ||
| * throw e; | ||
| * }); | ||
| * | ||
| * ``` | ||
| * | ||
| * @param params - Parameters for request | ||
| * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. | ||
| * @param callback - Optional callback that handles the response. | ||
| * @returns A promise if used with async/await, or void if used with a callback. | ||
| */ | ||
| get(params: Params$Resource$Documents$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>; | ||
| get(params?: Params$Resource$Documents$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Document>>; | ||
| get(params: Params$Resource$Documents$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; | ||
| get(params: Params$Resource$Documents$Get, options: MethodOptions | BodyResponseCallback<Schema$Document>, callback: BodyResponseCallback<Schema$Document>): void; | ||
| get(params: Params$Resource$Documents$Get, callback: BodyResponseCallback<Schema$Document>): void; | ||
| get(callback: BodyResponseCallback<Schema$Document>): void; | ||
| /** | ||
| * Searches for developer knowledge across Google's developer documentation. Returns DocumentChunks based on the user's query. There may be many chunks from the same Document. To retrieve full documents, use DeveloperKnowledge.GetDocument or DeveloperKnowledge.BatchGetDocuments with the DocumentChunk.parent returned in the SearchDocumentChunksResponse.results. | ||
| * @example | ||
| * ```js | ||
| * // Before running the sample: | ||
| * // - Enable the API at: | ||
| * // https://console.developers.google.com/apis/api/developerknowledge.googleapis.com | ||
| * // - Login into gcloud by running: | ||
| * // ```sh | ||
| * // $ gcloud auth application-default login | ||
| * // ``` | ||
| * // - Install the npm module by running: | ||
| * // ```sh | ||
| * // $ npm install googleapis | ||
| * // ``` | ||
| * | ||
| * const {google} = require('googleapis'); | ||
| * const developerknowledge = google.developerknowledge('v1alpha'); | ||
| * | ||
| * async function main() { | ||
| * const auth = new google.auth.GoogleAuth({ | ||
| * // Scopes can be specified either as an array or as a single, space-delimited string. | ||
| * scopes: ['https://www.googleapis.com/auth/cloud-platform'], | ||
| * }); | ||
| * | ||
| * // Acquire an auth client, and bind it to all future calls | ||
| * const authClient = await auth.getClient(); | ||
| * google.options({auth: authClient}); | ||
| * | ||
| * // Do the magic | ||
| * const res = await developerknowledge.documents.searchDocumentChunks({ | ||
| * // Optional. Applies a strict filter to the search results. The expression supports a subset of the syntax described at https://google.aip.dev/160. While `SearchDocumentChunks` returns DocumentChunks, the filter is applied to `DocumentChunk.document` fields. Supported fields for filtering: * `data_source` (STRING): The source of the document, e.g. `docs.cloud.google.com`. See https://developers.google.com/knowledge/reference/corpus-reference for the complete list of data sources in the corpus. * `update_time` (TIMESTAMP): The timestamp of when the document was last meaningfully updated. A meaningful update is one that changes document's markdown content or metadata. * `uri` (STRING): The document URI, e.g. `https://docs.cloud.google.com/bigquery/docs/tables`. STRING fields support `=` (equals) and `!=` (not equals) operators for **exact match** on the whole string. Partial match, prefix match, and regexp match are not supported. TIMESTAMP fields support `=`, `<`, `<=`, `\>`, and `\>=` operators. Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`. You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical operators. `OR` has higher precedence than `AND`. Use parentheses for explicit precedence grouping. Examples: * `data_source = "docs.cloud.google.com" OR data_source = "firebase.google.com"` * `data_source != "firebase.google.com"` * `update_time < "2024-01-01T00:00:00Z"` * `update_time \>= "2025-01-22T00:00:00Z" AND (data_source = "developer.chrome.com" OR data_source = "web.dev")` * `uri = "https://docs.cloud.google.com/release-notes"` The `filter` string must not exceed 500 characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` error. | ||
| * filter: 'placeholder-value', | ||
| * // Optional. Specifies the maximum number of results to return. The service may return fewer than this value. If unspecified, at most 5 results will be returned. The maximum value is 20; values above 20 will result in an INVALID_ARGUMENT error. | ||
| * pageSize: 'placeholder-value', | ||
| * // Optional. Contains a page token, received from a previous `SearchDocumentChunks` call. Provide this to retrieve the subsequent page. | ||
| * pageToken: 'placeholder-value', | ||
| * // Required. Provides the raw query string provided by the user, such as "How to create a Cloud Storage bucket?". | ||
| * query: 'placeholder-value', | ||
| * }); | ||
| * console.log(res.data); | ||
| * | ||
| * // Example response | ||
| * // { | ||
| * // "nextPageToken": "my_nextPageToken", | ||
| * // "results": [] | ||
| * // } | ||
| * } | ||
| * | ||
| * main().catch(e => { | ||
| * console.error(e); | ||
| * throw e; | ||
| * }); | ||
| * | ||
| * ``` | ||
| * | ||
| * @param params - Parameters for request | ||
| * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. | ||
| * @param callback - Optional callback that handles the response. | ||
| * @returns A promise if used with async/await, or void if used with a callback. | ||
| */ | ||
| searchDocumentChunks(params: Params$Resource$Documents$Searchdocumentchunks, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>; | ||
| searchDocumentChunks(params?: Params$Resource$Documents$Searchdocumentchunks, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$SearchDocumentChunksResponse>>; | ||
| searchDocumentChunks(params: Params$Resource$Documents$Searchdocumentchunks, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; | ||
| searchDocumentChunks(params: Params$Resource$Documents$Searchdocumentchunks, options: MethodOptions | BodyResponseCallback<Schema$SearchDocumentChunksResponse>, callback: BodyResponseCallback<Schema$SearchDocumentChunksResponse>): void; | ||
| searchDocumentChunks(params: Params$Resource$Documents$Searchdocumentchunks, callback: BodyResponseCallback<Schema$SearchDocumentChunksResponse>): void; | ||
| searchDocumentChunks(callback: BodyResponseCallback<Schema$SearchDocumentChunksResponse>): void; | ||
| } | ||
| export interface Params$Resource$Documents$Batchget extends StandardParameters { | ||
| /** | ||
| * Required. Specifies the names of the documents to retrieve. A maximum of 20 documents can be retrieved in a batch. The documents are returned in the same order as the `names` in the request. Format: `documents/{uri_without_scheme\}` Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` | ||
| */ | ||
| names?: string[]; | ||
| /** | ||
| * Optional. Specifies the DocumentView of the document. If unspecified, DeveloperKnowledge.BatchGetDocuments defaults to `DOCUMENT_VIEW_CONTENT`. | ||
| */ | ||
| view?: string; | ||
| } | ||
| export interface Params$Resource$Documents$Get extends StandardParameters { | ||
| /** | ||
| * Required. Specifies the name of the document to retrieve. Format: `documents/{uri_without_scheme\}` Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` | ||
| */ | ||
| name?: string; | ||
| /** | ||
| * Optional. Specifies the DocumentView of the document. If unspecified, DeveloperKnowledge.GetDocument defaults to `DOCUMENT_VIEW_CONTENT`. | ||
| */ | ||
| view?: string; | ||
| } | ||
| export interface Params$Resource$Documents$Searchdocumentchunks extends StandardParameters { | ||
| /** | ||
| * Optional. Applies a strict filter to the search results. The expression supports a subset of the syntax described at https://google.aip.dev/160. While `SearchDocumentChunks` returns DocumentChunks, the filter is applied to `DocumentChunk.document` fields. Supported fields for filtering: * `data_source` (STRING): The source of the document, e.g. `docs.cloud.google.com`. See https://developers.google.com/knowledge/reference/corpus-reference for the complete list of data sources in the corpus. * `update_time` (TIMESTAMP): The timestamp of when the document was last meaningfully updated. A meaningful update is one that changes document's markdown content or metadata. * `uri` (STRING): The document URI, e.g. `https://docs.cloud.google.com/bigquery/docs/tables`. STRING fields support `=` (equals) and `!=` (not equals) operators for **exact match** on the whole string. Partial match, prefix match, and regexp match are not supported. TIMESTAMP fields support `=`, `<`, `<=`, `\>`, and `\>=` operators. Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`. You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical operators. `OR` has higher precedence than `AND`. Use parentheses for explicit precedence grouping. Examples: * `data_source = "docs.cloud.google.com" OR data_source = "firebase.google.com"` * `data_source != "firebase.google.com"` * `update_time < "2024-01-01T00:00:00Z"` * `update_time \>= "2025-01-22T00:00:00Z" AND (data_source = "developer.chrome.com" OR data_source = "web.dev")` * `uri = "https://docs.cloud.google.com/release-notes"` The `filter` string must not exceed 500 characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` error. | ||
| */ | ||
| filter?: string; | ||
| /** | ||
| * Optional. Specifies the maximum number of results to return. The service may return fewer than this value. If unspecified, at most 5 results will be returned. The maximum value is 20; values above 20 will result in an INVALID_ARGUMENT error. | ||
| */ | ||
| pageSize?: number; | ||
| /** | ||
| * Optional. Contains a page token, received from a previous `SearchDocumentChunks` call. Provide this to retrieve the subsequent page. | ||
| */ | ||
| pageToken?: string; | ||
| /** | ||
| * Required. Provides the raw query string provided by the user, such as "How to create a Cloud Storage bucket?". | ||
| */ | ||
| query?: string; | ||
| } | ||
| export class Resource$V1alpha { | ||
| context: APIRequestContext; | ||
| constructor(context: APIRequestContext); | ||
| /** | ||
| * Answers a query using grounded generation. | ||
| * @example | ||
| * ```js | ||
| * // Before running the sample: | ||
| * // - Enable the API at: | ||
| * // https://console.developers.google.com/apis/api/developerknowledge.googleapis.com | ||
| * // - Login into gcloud by running: | ||
| * // ```sh | ||
| * // $ gcloud auth application-default login | ||
| * // ``` | ||
| * // - Install the npm module by running: | ||
| * // ```sh | ||
| * // $ npm install googleapis | ||
| * // ``` | ||
| * | ||
| * const {google} = require('googleapis'); | ||
| * const developerknowledge = google.developerknowledge('v1alpha'); | ||
| * | ||
| * async function main() { | ||
| * const auth = new google.auth.GoogleAuth({ | ||
| * // Scopes can be specified either as an array or as a single, space-delimited string. | ||
| * scopes: ['https://www.googleapis.com/auth/cloud-platform'], | ||
| * }); | ||
| * | ||
| * // Acquire an auth client, and bind it to all future calls | ||
| * const authClient = await auth.getClient(); | ||
| * google.options({auth: authClient}); | ||
| * | ||
| * // Do the magic | ||
| * const res = await developerknowledge.answerQuery({ | ||
| * // Request body metadata | ||
| * requestBody: { | ||
| * // request body parameters | ||
| * // { | ||
| * // "query": "my_query" | ||
| * // } | ||
| * }, | ||
| * }); | ||
| * console.log(res.data); | ||
| * | ||
| * // Example response | ||
| * // { | ||
| * // "answer": {} | ||
| * // } | ||
| * } | ||
| * | ||
| * main().catch(e => { | ||
| * console.error(e); | ||
| * throw e; | ||
| * }); | ||
| * | ||
| * ``` | ||
| * | ||
| * @param params - Parameters for request | ||
| * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. | ||
| * @param callback - Optional callback that handles the response. | ||
| * @returns A promise if used with async/await, or void if used with a callback. | ||
| */ | ||
| answerQuery(params: Params$Resource$V1alpha$Answerquery, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>; | ||
| answerQuery(params?: Params$Resource$V1alpha$Answerquery, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$AnswerQueryResponse>>; | ||
| answerQuery(params: Params$Resource$V1alpha$Answerquery, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; | ||
| answerQuery(params: Params$Resource$V1alpha$Answerquery, options: MethodOptions | BodyResponseCallback<Schema$AnswerQueryResponse>, callback: BodyResponseCallback<Schema$AnswerQueryResponse>): void; | ||
| answerQuery(params: Params$Resource$V1alpha$Answerquery, callback: BodyResponseCallback<Schema$AnswerQueryResponse>): void; | ||
| answerQuery(callback: BodyResponseCallback<Schema$AnswerQueryResponse>): void; | ||
| } | ||
| export interface Params$Resource$V1alpha$Answerquery extends StandardParameters { | ||
| /** | ||
| * Request body metadata | ||
| */ | ||
| requestBody?: Schema$AnswerQueryRequest; | ||
| } | ||
| export {}; | ||
| } |
| "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.developerknowledge_v1alpha = 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 developerknowledge_v1alpha; | ||
| (function (developerknowledge_v1alpha) { | ||
| /** | ||
| * Developer Knowledge API | ||
| * | ||
| * The Developer Knowledge API provides access to Google's developer knowledge. | ||
| * | ||
| * @example | ||
| * ```js | ||
| * const {google} = require('googleapis'); | ||
| * const developerknowledge = google.developerknowledge('v1alpha'); | ||
| * ``` | ||
| */ | ||
| class Developerknowledge { | ||
| context; | ||
| documents; | ||
| v1alpha; | ||
| constructor(options, google) { | ||
| this.context = { | ||
| _options: options || {}, | ||
| google, | ||
| }; | ||
| this.documents = new Resource$Documents(this.context); | ||
| this.v1alpha = new Resource$V1alpha(this.context); | ||
| } | ||
| } | ||
| developerknowledge_v1alpha.Developerknowledge = Developerknowledge; | ||
| class Resource$Documents { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| batchGet(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://developerknowledge.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/documents:batchGet').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'GET', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: [], | ||
| pathParams: [], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, 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://developerknowledge.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+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); | ||
| } | ||
| } | ||
| searchDocumentChunks(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://developerknowledge.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/documents:searchDocumentChunks').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'GET', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: [], | ||
| pathParams: [], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| } | ||
| developerknowledge_v1alpha.Resource$Documents = Resource$Documents; | ||
| class Resource$V1alpha { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| answerQuery(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://developerknowledge.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha:answerQuery').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: [], | ||
| pathParams: [], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| } | ||
| developerknowledge_v1alpha.Resource$V1alpha = Resource$V1alpha; | ||
| })(developerknowledge_v1alpha || (exports.developerknowledge_v1alpha = developerknowledge_v1alpha = {})); |
| import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| import { Readable } from 'stream'; | ||
| export declare namespace gmailpostmastertools_v2 { | ||
| export interface Options extends GlobalOptions { | ||
| version: 'v2'; | ||
| } | ||
| interface StandardParameters { | ||
| /** | ||
| * Auth client or API Key for the request | ||
| */ | ||
| auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth; | ||
| /** | ||
| * V1 error format. | ||
| */ | ||
| '$.xgafv'?: string; | ||
| /** | ||
| * OAuth access token. | ||
| */ | ||
| access_token?: string; | ||
| /** | ||
| * Data format for response. | ||
| */ | ||
| alt?: string; | ||
| /** | ||
| * JSONP | ||
| */ | ||
| callback?: string; | ||
| /** | ||
| * Selector specifying which fields to include in a partial response. | ||
| */ | ||
| fields?: string; | ||
| /** | ||
| * API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. | ||
| */ | ||
| key?: string; | ||
| /** | ||
| * OAuth 2.0 token for the current user. | ||
| */ | ||
| oauth_token?: string; | ||
| /** | ||
| * Returns response with indentations and line breaks. | ||
| */ | ||
| prettyPrint?: boolean; | ||
| /** | ||
| * Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. | ||
| */ | ||
| quotaUser?: string; | ||
| /** | ||
| * Legacy upload protocol for media (e.g. "media", "multipart"). | ||
| */ | ||
| uploadType?: string; | ||
| /** | ||
| * Upload protocol for media (e.g. "raw", "multipart"). | ||
| */ | ||
| upload_protocol?: string; | ||
| } | ||
| /** | ||
| * Gmail Postmaster Tools API | ||
| * | ||
| * The Postmaster Tools API is a RESTful API that provides programmatic access to email traffic metrics (like spam reports, delivery errors etc) otherwise available through the Gmail Postmaster Tools UI currently. | ||
| * | ||
| * @example | ||
| * ```js | ||
| * const {google} = require('googleapis'); | ||
| * const gmailpostmastertools = google.gmailpostmastertools('v2'); | ||
| * ``` | ||
| */ | ||
| export class Gmailpostmastertools { | ||
| context: APIRequestContext; | ||
| domains: Resource$Domains; | ||
| domainStats: Resource$Domainstats; | ||
| constructor(options: GlobalOptions, google?: GoogleConfigurable); | ||
| } | ||
| /** | ||
| * Specifies the base metric to query, which can be a predefined standard metric or a user-defined custom metric (if supported in the future). | ||
| */ | ||
| export interface Schema$BaseMetric { | ||
| /** | ||
| * A predefined standard metric. | ||
| */ | ||
| standardMetric?: string | null; | ||
| } | ||
| /** | ||
| * Request message for BatchQueryDomainStats. | ||
| */ | ||
| export interface Schema$BatchQueryDomainStatsRequest { | ||
| /** | ||
| * Required. A list of individual query requests. Each request can be for a different domain. A maximum of 100 requests can be included in a single batch. | ||
| */ | ||
| requests?: Schema$QueryDomainStatsRequest[]; | ||
| } | ||
| /** | ||
| * Response message for BatchQueryDomainStats. | ||
| */ | ||
| export interface Schema$BatchQueryDomainStatsResponse { | ||
| /** | ||
| * A list of responses, one for each query in the BatchQueryDomainStatsRequest. The order of responses will correspond to the order of requests. | ||
| */ | ||
| results?: Schema$BatchQueryDomainStatsResult[]; | ||
| } | ||
| /** | ||
| * Represents the result of a single QueryDomainStatsRequest within a batch. | ||
| */ | ||
| export interface Schema$BatchQueryDomainStatsResult { | ||
| /** | ||
| * The error status if the individual query failed. | ||
| */ | ||
| error?: Schema$Status; | ||
| /** | ||
| * The successful response for the individual query. | ||
| */ | ||
| response?: Schema$QueryDomainStatsResponse; | ||
| } | ||
| /** | ||
| * Data for a single row of the compliance status table. | ||
| */ | ||
| export interface Schema$ComplianceRowData { | ||
| /** | ||
| * The compliance requirement. | ||
| */ | ||
| requirement?: string | null; | ||
| /** | ||
| * The compliance status for the requirement. | ||
| */ | ||
| status?: Schema$ComplianceStatus; | ||
| } | ||
| /** | ||
| * The status of a sender compliance requirement. | ||
| */ | ||
| export interface Schema$ComplianceStatus { | ||
| /** | ||
| * Output only. The compliance status. | ||
| */ | ||
| status?: string | null; | ||
| } | ||
| /** | ||
| * Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp | ||
| */ | ||
| export interface Schema$Date { | ||
| /** | ||
| * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. | ||
| */ | ||
| day?: number | null; | ||
| /** | ||
| * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. | ||
| */ | ||
| month?: number | null; | ||
| /** | ||
| * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. | ||
| */ | ||
| year?: number | null; | ||
| } | ||
| /** | ||
| * A set of specific dates. | ||
| */ | ||
| export interface Schema$DateList { | ||
| /** | ||
| * Required. The list of specific dates for which to retrieve data. | ||
| */ | ||
| dates?: Schema$Date[]; | ||
| } | ||
| /** | ||
| * A single date range defined by a start and end date. | ||
| */ | ||
| export interface Schema$DateRange { | ||
| /** | ||
| * Required. The inclusive end date of the date range. | ||
| */ | ||
| end?: Schema$Date; | ||
| /** | ||
| * Required. The inclusive start date of the date range. | ||
| */ | ||
| start?: Schema$Date; | ||
| } | ||
| /** | ||
| * A set of date ranges. | ||
| */ | ||
| export interface Schema$DateRanges { | ||
| /** | ||
| * Required. The list of date ranges for which to retrieve data. | ||
| */ | ||
| dateRanges?: Schema$DateRange[]; | ||
| } | ||
| /** | ||
| * Information about a domain registered by the user. | ||
| */ | ||
| export interface Schema$Domain { | ||
| /** | ||
| * Output only. Immutable. The timestamp at which the domain was added to the user's account. | ||
| */ | ||
| createTime?: string | null; | ||
| /** | ||
| * The timestamp at which the domain was last verified by the user. | ||
| */ | ||
| lastVerifyTime?: string | null; | ||
| /** | ||
| * Identifier. The resource name of the domain. Format: `domains/{domain_name\}`, where domain_name is the fully qualified domain name (i.e., mymail.mydomain.com). | ||
| */ | ||
| name?: string | null; | ||
| /** | ||
| * Output only. User's permission of this domain. | ||
| */ | ||
| permission?: string | null; | ||
| /** | ||
| * Output only. Information about a user's verification history and properties for the domain. | ||
| */ | ||
| verificationState?: string | null; | ||
| } | ||
| /** | ||
| * Compliance data for a given domain. | ||
| */ | ||
| export interface Schema$DomainComplianceData { | ||
| /** | ||
| * Domain that this data is for. | ||
| */ | ||
| domainId?: string | null; | ||
| /** | ||
| * Unsubscribe honoring compliance verdict. | ||
| */ | ||
| honorUnsubscribeVerdict?: Schema$HonorUnsubscribeVerdict; | ||
| /** | ||
| * One-click unsubscribe compliance verdict. | ||
| */ | ||
| oneClickUnsubscribeVerdict?: Schema$OneClickUnsubscribeVerdict; | ||
| /** | ||
| * Data for each of the rows of the table. Each message contains all the data that backs a single row. | ||
| */ | ||
| rowData?: Schema$ComplianceRowData[]; | ||
| } | ||
| /** | ||
| * Compliance status for a domain. | ||
| */ | ||
| export interface Schema$DomainComplianceStatus { | ||
| /** | ||
| * Compliance data for the registrable domain part of the domain in `name`. For example, if `name` is `domains/example.com/complianceStatus`, this field contains compliance data for `example.com`. | ||
| */ | ||
| complianceData?: Schema$DomainComplianceData; | ||
| /** | ||
| * Identifier. The resource name of the domain's compliance status. Format: `domains/{domain_id\}/complianceStatus`. | ||
| */ | ||
| name?: string | null; | ||
| /** | ||
| * Compliance data calculated specifically for the subdomain in `name`. This field is only populated if the domain in `name` is a subdomain that differs from its registrable domain (e.g., `sub.example.com`), and if compliance data is available for that specific subdomain. | ||
| */ | ||
| subdomainComplianceData?: Schema$DomainComplianceData; | ||
| } | ||
| /** | ||
| * Email statistics for a domain for a specified time period or date. | ||
| */ | ||
| export interface Schema$DomainStat { | ||
| /** | ||
| * Optional. The specific date for these stats, if granularity is DAILY. This field is populated if the QueryDomainStatsRequest specified a DAILY aggregation granularity. | ||
| */ | ||
| date?: Schema$Date; | ||
| /** | ||
| * The user-defined name from MetricDefinition.name in the request, used to correlate this result with the requested metric. | ||
| */ | ||
| metric?: string | null; | ||
| /** | ||
| * Output only. The resource name of the DomainStat resource. Format: domains/{domain\}/domainStats/{domain_stat\} The `{domain_stat\}` segment is an opaque, server-generated ID. We recommend using the `metric` field to identify queried metrics instead of parsing the name. | ||
| */ | ||
| name?: string | null; | ||
| /** | ||
| * The value of the corresponding metric. | ||
| */ | ||
| value?: Schema$StatisticValue; | ||
| } | ||
| /** | ||
| * Compliance verdict for whether a sender meets the unsubscribe honoring compliance requirement. | ||
| */ | ||
| export interface Schema$HonorUnsubscribeVerdict { | ||
| /** | ||
| * The specific reason for the compliance verdict. Must be empty if the status is compliant. | ||
| */ | ||
| reason?: string | null; | ||
| /** | ||
| * The compliance status. | ||
| */ | ||
| status?: Schema$ComplianceStatus; | ||
| } | ||
| /** | ||
| * Response message for ListDomains. | ||
| */ | ||
| export interface Schema$ListDomainsResponse { | ||
| /** | ||
| * The domains that have been registered by the user. | ||
| */ | ||
| domains?: Schema$Domain[]; | ||
| /** | ||
| * Token to retrieve the next page of results, or empty if there are no more results in the list. | ||
| */ | ||
| nextPageToken?: string | null; | ||
| } | ||
| /** | ||
| * Defines a specific metric to query, including a user-defined name, the base metric type, and optional filters. | ||
| */ | ||
| export interface Schema$MetricDefinition { | ||
| /** | ||
| * Required. The underlying metric to query. | ||
| */ | ||
| baseMetric?: Schema$BaseMetric; | ||
| /** | ||
| * Optional. Optional filters to apply to the metric. | ||
| */ | ||
| filter?: string | null; | ||
| /** | ||
| * Required. The user-defined name for this metric. This name will be used as the key for this metric's value in the response. | ||
| */ | ||
| name?: string | null; | ||
| } | ||
| /** | ||
| * Compliance verdict for whether a sender meets the one-click unsubscribe compliance requirement. | ||
| */ | ||
| export interface Schema$OneClickUnsubscribeVerdict { | ||
| /** | ||
| * The specific reason for the compliance verdict. Must be empty if the status is compliant. | ||
| */ | ||
| reason?: string | null; | ||
| /** | ||
| * The compliance status. | ||
| */ | ||
| status?: Schema$ComplianceStatus; | ||
| } | ||
| /** | ||
| * Request message for QueryDomainStats. | ||
| */ | ||
| export interface Schema$QueryDomainStatsRequest { | ||
| /** | ||
| * Optional. The granularity at which to aggregate the statistics. If unspecified, defaults to DAILY. | ||
| */ | ||
| aggregationGranularity?: string | null; | ||
| /** | ||
| * Required. The specific metrics to query. You can define a custom name for each metric, which will be used in the response. | ||
| */ | ||
| metricDefinitions?: Schema$MetricDefinition[]; | ||
| /** | ||
| * Optional. The maximum number of DomainStats resources to return in the response. The server may return fewer than this value. If unspecified, a default value of 10 will be used. The maximum value is 200. | ||
| */ | ||
| pageSize?: number | null; | ||
| /** | ||
| * Optional. The next_page_token value returned from a previous List request, if any. If the aggregation granularity is DAILY, the page token will be the encoded date + "/" + metric name. If the aggregation granularity is OVERALL, the page token will be the encoded metric name. | ||
| */ | ||
| pageToken?: string | null; | ||
| /** | ||
| * Required. The parent resource name where the stats are queried. Format: domains/{domain\} | ||
| */ | ||
| parent?: string | null; | ||
| /** | ||
| * Required. The time range or specific dates for which to retrieve the metrics. | ||
| */ | ||
| timeQuery?: Schema$TimeQuery; | ||
| } | ||
| /** | ||
| * Response message for QueryDomainStats. | ||
| */ | ||
| export interface Schema$QueryDomainStatsResponse { | ||
| /** | ||
| * The list of domain statistics. Each DomainStat object contains the value for a metric requested in the QueryDomainStatsRequest. | ||
| */ | ||
| domainStats?: Schema$DomainStat[]; | ||
| /** | ||
| * Token to retrieve the next page of results, or empty if there are no more results in the list. | ||
| */ | ||
| nextPageToken?: string | null; | ||
| } | ||
| /** | ||
| * The actual value of a statistic. | ||
| */ | ||
| export interface Schema$StatisticValue { | ||
| /** | ||
| * Double value. | ||
| */ | ||
| doubleValue?: number | null; | ||
| /** | ||
| * Float value. | ||
| */ | ||
| floatValue?: number | null; | ||
| /** | ||
| * Integer value. | ||
| */ | ||
| intValue?: string | null; | ||
| /** | ||
| * List of string values. | ||
| */ | ||
| stringList?: Schema$StringList; | ||
| /** | ||
| * String value. | ||
| */ | ||
| stringValue?: string | null; | ||
| } | ||
| /** | ||
| * The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). | ||
| */ | ||
| export interface Schema$Status { | ||
| /** | ||
| * The status code, which should be an enum value of google.rpc.Code. | ||
| */ | ||
| code?: number | null; | ||
| /** | ||
| * A list of messages that carry the error details. There is a common set of message types for APIs to use. | ||
| */ | ||
| details?: Array<{ | ||
| [key: string]: any; | ||
| }> | null; | ||
| /** | ||
| * A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. | ||
| */ | ||
| message?: string | null; | ||
| } | ||
| /** | ||
| * Represents a list of strings. | ||
| */ | ||
| export interface Schema$StringList { | ||
| /** | ||
| * The string values. | ||
| */ | ||
| values?: string[] | null; | ||
| } | ||
| /** | ||
| * The date ranges or specific dates for which you want to retrieve data. | ||
| */ | ||
| export interface Schema$TimeQuery { | ||
| /** | ||
| * A list of specific dates. | ||
| */ | ||
| dateList?: Schema$DateList; | ||
| /** | ||
| * A list of date ranges. | ||
| */ | ||
| dateRanges?: Schema$DateRanges; | ||
| } | ||
| export class Resource$Domains { | ||
| context: APIRequestContext; | ||
| domainStats: Resource$Domains$Domainstats; | ||
| constructor(context: APIRequestContext); | ||
| /** | ||
| * Retrieves detailed information about a domain registered by you. Returns NOT_FOUND if the domain is not registered by you. Domain represents the metadata of a domain that has been registered within the system and linked to a user. | ||
| * @example | ||
| * ```js | ||
| * // Before running the sample: | ||
| * // - Enable the API at: | ||
| * // https://console.developers.google.com/apis/api/gmailpostmastertools.googleapis.com | ||
| * // - Login into gcloud by running: | ||
| * // ```sh | ||
| * // $ gcloud auth application-default login | ||
| * // ``` | ||
| * // - Install the npm module by running: | ||
| * // ```sh | ||
| * // $ npm install googleapis | ||
| * // ``` | ||
| * | ||
| * const {google} = require('googleapis'); | ||
| * const gmailpostmastertools = google.gmailpostmastertools('v2'); | ||
| * | ||
| * async function main() { | ||
| * const auth = new google.auth.GoogleAuth({ | ||
| * // Scopes can be specified either as an array or as a single, space-delimited string. | ||
| * scopes: [ | ||
| * 'https://www.googleapis.com/auth/postmaster', | ||
| * 'https://www.googleapis.com/auth/postmaster.domain', | ||
| * ], | ||
| * }); | ||
| * | ||
| * // Acquire an auth client, and bind it to all future calls | ||
| * const authClient = await auth.getClient(); | ||
| * google.options({auth: authClient}); | ||
| * | ||
| * // Do the magic | ||
| * const res = await gmailpostmastertools.domains.get({ | ||
| * // Required. The resource name of the domain. Format: `domains/{domain_name\}`, where domain_name is the fully qualified domain name (i.e., mymail.mydomain.com). | ||
| * name: 'domains/my-domain', | ||
| * }); | ||
| * console.log(res.data); | ||
| * | ||
| * // Example response | ||
| * // { | ||
| * // "createTime": "my_createTime", | ||
| * // "lastVerifyTime": "my_lastVerifyTime", | ||
| * // "name": "my_name", | ||
| * // "permission": "my_permission", | ||
| * // "verificationState": "my_verificationState" | ||
| * // } | ||
| * } | ||
| * | ||
| * main().catch(e => { | ||
| * console.error(e); | ||
| * throw e; | ||
| * }); | ||
| * | ||
| * ``` | ||
| * | ||
| * @param params - Parameters for request | ||
| * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. | ||
| * @param callback - Optional callback that handles the response. | ||
| * @returns A promise if used with async/await, or void if used with a callback. | ||
| */ | ||
| get(params: Params$Resource$Domains$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>; | ||
| get(params?: Params$Resource$Domains$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Domain>>; | ||
| get(params: Params$Resource$Domains$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; | ||
| get(params: Params$Resource$Domains$Get, options: MethodOptions | BodyResponseCallback<Schema$Domain>, callback: BodyResponseCallback<Schema$Domain>): void; | ||
| get(params: Params$Resource$Domains$Get, callback: BodyResponseCallback<Schema$Domain>): void; | ||
| get(callback: BodyResponseCallback<Schema$Domain>): void; | ||
| /** | ||
| * Retrieves the compliance status for a given domain. Returns PERMISSION_DENIED if you don't have permission to access compliance status for the domain. | ||
| * @example | ||
| * ```js | ||
| * // Before running the sample: | ||
| * // - Enable the API at: | ||
| * // https://console.developers.google.com/apis/api/gmailpostmastertools.googleapis.com | ||
| * // - Login into gcloud by running: | ||
| * // ```sh | ||
| * // $ gcloud auth application-default login | ||
| * // ``` | ||
| * // - Install the npm module by running: | ||
| * // ```sh | ||
| * // $ npm install googleapis | ||
| * // ``` | ||
| * | ||
| * const {google} = require('googleapis'); | ||
| * const gmailpostmastertools = google.gmailpostmastertools('v2'); | ||
| * | ||
| * async function main() { | ||
| * const auth = new google.auth.GoogleAuth({ | ||
| * // Scopes can be specified either as an array or as a single, space-delimited string. | ||
| * scopes: [ | ||
| * 'https://www.googleapis.com/auth/postmaster', | ||
| * 'https://www.googleapis.com/auth/postmaster.traffic.readonly', | ||
| * ], | ||
| * }); | ||
| * | ||
| * // Acquire an auth client, and bind it to all future calls | ||
| * const authClient = await auth.getClient(); | ||
| * google.options({auth: authClient}); | ||
| * | ||
| * // Do the magic | ||
| * const res = await gmailpostmastertools.domains.getComplianceStatus({ | ||
| * // Required. The resource name of the domain's compliance status to retrieve. Format: `domains/{domain_id\}/complianceStatus`. | ||
| * name: 'domains/my-domain/complianceStatus', | ||
| * }); | ||
| * console.log(res.data); | ||
| * | ||
| * // Example response | ||
| * // { | ||
| * // "complianceData": {}, | ||
| * // "name": "my_name", | ||
| * // "subdomainComplianceData": {} | ||
| * // } | ||
| * } | ||
| * | ||
| * main().catch(e => { | ||
| * console.error(e); | ||
| * throw e; | ||
| * }); | ||
| * | ||
| * ``` | ||
| * | ||
| * @param params - Parameters for request | ||
| * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. | ||
| * @param callback - Optional callback that handles the response. | ||
| * @returns A promise if used with async/await, or void if used with a callback. | ||
| */ | ||
| getComplianceStatus(params: Params$Resource$Domains$Getcompliancestatus, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>; | ||
| getComplianceStatus(params?: Params$Resource$Domains$Getcompliancestatus, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$DomainComplianceStatus>>; | ||
| getComplianceStatus(params: Params$Resource$Domains$Getcompliancestatus, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; | ||
| getComplianceStatus(params: Params$Resource$Domains$Getcompliancestatus, options: MethodOptions | BodyResponseCallback<Schema$DomainComplianceStatus>, callback: BodyResponseCallback<Schema$DomainComplianceStatus>): void; | ||
| getComplianceStatus(params: Params$Resource$Domains$Getcompliancestatus, callback: BodyResponseCallback<Schema$DomainComplianceStatus>): void; | ||
| getComplianceStatus(callback: BodyResponseCallback<Schema$DomainComplianceStatus>): void; | ||
| /** | ||
| * Retrieves a list of all domains registered by you, along with their corresponding metadata. The order of domains in the response is unspecified and non-deterministic. Newly registered domains will not necessarily be added to the end of this list. | ||
| * @example | ||
| * ```js | ||
| * // Before running the sample: | ||
| * // - Enable the API at: | ||
| * // https://console.developers.google.com/apis/api/gmailpostmastertools.googleapis.com | ||
| * // - Login into gcloud by running: | ||
| * // ```sh | ||
| * // $ gcloud auth application-default login | ||
| * // ``` | ||
| * // - Install the npm module by running: | ||
| * // ```sh | ||
| * // $ npm install googleapis | ||
| * // ``` | ||
| * | ||
| * const {google} = require('googleapis'); | ||
| * const gmailpostmastertools = google.gmailpostmastertools('v2'); | ||
| * | ||
| * async function main() { | ||
| * const auth = new google.auth.GoogleAuth({ | ||
| * // Scopes can be specified either as an array or as a single, space-delimited string. | ||
| * scopes: [ | ||
| * 'https://www.googleapis.com/auth/postmaster', | ||
| * 'https://www.googleapis.com/auth/postmaster.domain', | ||
| * ], | ||
| * }); | ||
| * | ||
| * // Acquire an auth client, and bind it to all future calls | ||
| * const authClient = await auth.getClient(); | ||
| * google.options({auth: authClient}); | ||
| * | ||
| * // Do the magic | ||
| * const res = await gmailpostmastertools.domains.list({ | ||
| * // Optional. Requested page size. Server may return fewer domains than requested. If unspecified, the default value for this field is 10. The maximum value for this field is 200. | ||
| * pageSize: 'placeholder-value', | ||
| * // Optional. The next_page_token value returned from a previous List request, if any. | ||
| * pageToken: 'placeholder-value', | ||
| * }); | ||
| * console.log(res.data); | ||
| * | ||
| * // Example response | ||
| * // { | ||
| * // "domains": [], | ||
| * // "nextPageToken": "my_nextPageToken" | ||
| * // } | ||
| * } | ||
| * | ||
| * main().catch(e => { | ||
| * console.error(e); | ||
| * throw e; | ||
| * }); | ||
| * | ||
| * ``` | ||
| * | ||
| * @param params - Parameters for request | ||
| * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. | ||
| * @param callback - Optional callback that handles the response. | ||
| * @returns A promise if used with async/await, or void if used with a callback. | ||
| */ | ||
| list(params: Params$Resource$Domains$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>; | ||
| list(params?: Params$Resource$Domains$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListDomainsResponse>>; | ||
| list(params: Params$Resource$Domains$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; | ||
| list(params: Params$Resource$Domains$List, options: MethodOptions | BodyResponseCallback<Schema$ListDomainsResponse>, callback: BodyResponseCallback<Schema$ListDomainsResponse>): void; | ||
| list(params: Params$Resource$Domains$List, callback: BodyResponseCallback<Schema$ListDomainsResponse>): void; | ||
| list(callback: BodyResponseCallback<Schema$ListDomainsResponse>): void; | ||
| } | ||
| export interface Params$Resource$Domains$Get extends StandardParameters { | ||
| /** | ||
| * Required. The resource name of the domain. Format: `domains/{domain_name\}`, where domain_name is the fully qualified domain name (i.e., mymail.mydomain.com). | ||
| */ | ||
| name?: string; | ||
| } | ||
| export interface Params$Resource$Domains$Getcompliancestatus extends StandardParameters { | ||
| /** | ||
| * Required. The resource name of the domain's compliance status to retrieve. Format: `domains/{domain_id\}/complianceStatus`. | ||
| */ | ||
| name?: string; | ||
| } | ||
| export interface Params$Resource$Domains$List extends StandardParameters { | ||
| /** | ||
| * Optional. Requested page size. Server may return fewer domains than requested. If unspecified, the default value for this field is 10. The maximum value for this field is 200. | ||
| */ | ||
| pageSize?: number; | ||
| /** | ||
| * Optional. The next_page_token value returned from a previous List request, if any. | ||
| */ | ||
| pageToken?: string; | ||
| } | ||
| export class Resource$Domains$Domainstats { | ||
| context: APIRequestContext; | ||
| constructor(context: APIRequestContext); | ||
| /** | ||
| * Retrieves a list of domain statistics for a given domain and time period. Returns statistics only for dates where data is available. Returns PERMISSION_DENIED if you don't have permission to access DomainStats for the domain. | ||
| * @example | ||
| * ```js | ||
| * // Before running the sample: | ||
| * // - Enable the API at: | ||
| * // https://console.developers.google.com/apis/api/gmailpostmastertools.googleapis.com | ||
| * // - Login into gcloud by running: | ||
| * // ```sh | ||
| * // $ gcloud auth application-default login | ||
| * // ``` | ||
| * // - Install the npm module by running: | ||
| * // ```sh | ||
| * // $ npm install googleapis | ||
| * // ``` | ||
| * | ||
| * const {google} = require('googleapis'); | ||
| * const gmailpostmastertools = google.gmailpostmastertools('v2'); | ||
| * | ||
| * async function main() { | ||
| * const auth = new google.auth.GoogleAuth({ | ||
| * // Scopes can be specified either as an array or as a single, space-delimited string. | ||
| * scopes: [ | ||
| * 'https://www.googleapis.com/auth/postmaster', | ||
| * 'https://www.googleapis.com/auth/postmaster.traffic.readonly', | ||
| * ], | ||
| * }); | ||
| * | ||
| * // Acquire an auth client, and bind it to all future calls | ||
| * const authClient = await auth.getClient(); | ||
| * google.options({auth: authClient}); | ||
| * | ||
| * // Do the magic | ||
| * const res = await gmailpostmastertools.domains.domainStats.query({ | ||
| * // Required. The parent resource name where the stats are queried. Format: domains/{domain\} | ||
| * parent: 'domains/my-domain', | ||
| * | ||
| * // Request body metadata | ||
| * requestBody: { | ||
| * // request body parameters | ||
| * // { | ||
| * // "aggregationGranularity": "my_aggregationGranularity", | ||
| * // "metricDefinitions": [], | ||
| * // "pageSize": 0, | ||
| * // "pageToken": "my_pageToken", | ||
| * // "parent": "my_parent", | ||
| * // "timeQuery": {} | ||
| * // } | ||
| * }, | ||
| * }); | ||
| * console.log(res.data); | ||
| * | ||
| * // Example response | ||
| * // { | ||
| * // "domainStats": [], | ||
| * // "nextPageToken": "my_nextPageToken" | ||
| * // } | ||
| * } | ||
| * | ||
| * main().catch(e => { | ||
| * console.error(e); | ||
| * throw e; | ||
| * }); | ||
| * | ||
| * ``` | ||
| * | ||
| * @param params - Parameters for request | ||
| * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. | ||
| * @param callback - Optional callback that handles the response. | ||
| * @returns A promise if used with async/await, or void if used with a callback. | ||
| */ | ||
| query(params: Params$Resource$Domains$Domainstats$Query, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>; | ||
| query(params?: Params$Resource$Domains$Domainstats$Query, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$QueryDomainStatsResponse>>; | ||
| query(params: Params$Resource$Domains$Domainstats$Query, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; | ||
| query(params: Params$Resource$Domains$Domainstats$Query, options: MethodOptions | BodyResponseCallback<Schema$QueryDomainStatsResponse>, callback: BodyResponseCallback<Schema$QueryDomainStatsResponse>): void; | ||
| query(params: Params$Resource$Domains$Domainstats$Query, callback: BodyResponseCallback<Schema$QueryDomainStatsResponse>): void; | ||
| query(callback: BodyResponseCallback<Schema$QueryDomainStatsResponse>): void; | ||
| } | ||
| export interface Params$Resource$Domains$Domainstats$Query extends StandardParameters { | ||
| /** | ||
| * Required. The parent resource name where the stats are queried. Format: domains/{domain\} | ||
| */ | ||
| parent?: string; | ||
| /** | ||
| * Request body metadata | ||
| */ | ||
| requestBody?: Schema$QueryDomainStatsRequest; | ||
| } | ||
| export class Resource$Domainstats { | ||
| context: APIRequestContext; | ||
| constructor(context: APIRequestContext); | ||
| /** | ||
| * Executes a batch of QueryDomainStats requests for multiple domains. Returns PERMISSION_DENIED if you don't have permission to access DomainStats for any of the requested domains. | ||
| * @example | ||
| * ```js | ||
| * // Before running the sample: | ||
| * // - Enable the API at: | ||
| * // https://console.developers.google.com/apis/api/gmailpostmastertools.googleapis.com | ||
| * // - Login into gcloud by running: | ||
| * // ```sh | ||
| * // $ gcloud auth application-default login | ||
| * // ``` | ||
| * // - Install the npm module by running: | ||
| * // ```sh | ||
| * // $ npm install googleapis | ||
| * // ``` | ||
| * | ||
| * const {google} = require('googleapis'); | ||
| * const gmailpostmastertools = google.gmailpostmastertools('v2'); | ||
| * | ||
| * async function main() { | ||
| * const auth = new google.auth.GoogleAuth({ | ||
| * // Scopes can be specified either as an array or as a single, space-delimited string. | ||
| * scopes: [ | ||
| * 'https://www.googleapis.com/auth/postmaster', | ||
| * 'https://www.googleapis.com/auth/postmaster.traffic.readonly', | ||
| * ], | ||
| * }); | ||
| * | ||
| * // Acquire an auth client, and bind it to all future calls | ||
| * const authClient = await auth.getClient(); | ||
| * google.options({auth: authClient}); | ||
| * | ||
| * // Do the magic | ||
| * const res = await gmailpostmastertools.domainStats.batchQuery({ | ||
| * // Request body metadata | ||
| * requestBody: { | ||
| * // request body parameters | ||
| * // { | ||
| * // "requests": [] | ||
| * // } | ||
| * }, | ||
| * }); | ||
| * console.log(res.data); | ||
| * | ||
| * // Example response | ||
| * // { | ||
| * // "results": [] | ||
| * // } | ||
| * } | ||
| * | ||
| * main().catch(e => { | ||
| * console.error(e); | ||
| * throw e; | ||
| * }); | ||
| * | ||
| * ``` | ||
| * | ||
| * @param params - Parameters for request | ||
| * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. | ||
| * @param callback - Optional callback that handles the response. | ||
| * @returns A promise if used with async/await, or void if used with a callback. | ||
| */ | ||
| batchQuery(params: Params$Resource$Domainstats$Batchquery, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>; | ||
| batchQuery(params?: Params$Resource$Domainstats$Batchquery, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$BatchQueryDomainStatsResponse>>; | ||
| batchQuery(params: Params$Resource$Domainstats$Batchquery, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; | ||
| batchQuery(params: Params$Resource$Domainstats$Batchquery, options: MethodOptions | BodyResponseCallback<Schema$BatchQueryDomainStatsResponse>, callback: BodyResponseCallback<Schema$BatchQueryDomainStatsResponse>): void; | ||
| batchQuery(params: Params$Resource$Domainstats$Batchquery, callback: BodyResponseCallback<Schema$BatchQueryDomainStatsResponse>): void; | ||
| batchQuery(callback: BodyResponseCallback<Schema$BatchQueryDomainStatsResponse>): void; | ||
| } | ||
| export interface Params$Resource$Domainstats$Batchquery extends StandardParameters { | ||
| /** | ||
| * Request body metadata | ||
| */ | ||
| requestBody?: Schema$BatchQueryDomainStatsRequest; | ||
| } | ||
| export {}; | ||
| } |
| "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.gmailpostmastertools_v2 = 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 gmailpostmastertools_v2; | ||
| (function (gmailpostmastertools_v2) { | ||
| /** | ||
| * Gmail Postmaster Tools API | ||
| * | ||
| * The Postmaster Tools API is a RESTful API that provides programmatic access to email traffic metrics (like spam reports, delivery errors etc) otherwise available through the Gmail Postmaster Tools UI currently. | ||
| * | ||
| * @example | ||
| * ```js | ||
| * const {google} = require('googleapis'); | ||
| * const gmailpostmastertools = google.gmailpostmastertools('v2'); | ||
| * ``` | ||
| */ | ||
| class Gmailpostmastertools { | ||
| context; | ||
| domains; | ||
| domainStats; | ||
| constructor(options, google) { | ||
| this.context = { | ||
| _options: options || {}, | ||
| google, | ||
| }; | ||
| this.domains = new Resource$Domains(this.context); | ||
| this.domainStats = new Resource$Domainstats(this.context); | ||
| } | ||
| } | ||
| gmailpostmastertools_v2.Gmailpostmastertools = Gmailpostmastertools; | ||
| class Resource$Domains { | ||
| context; | ||
| domainStats; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.domainStats = new Resource$Domains$Domainstats(this.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://gmailpostmastertools.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v2/{+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); | ||
| } | ||
| } | ||
| getComplianceStatus(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://gmailpostmastertools.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v2/{+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://gmailpostmastertools.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v2/domains').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'GET', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: [], | ||
| pathParams: [], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| } | ||
| gmailpostmastertools_v2.Resource$Domains = Resource$Domains; | ||
| class Resource$Domains$Domainstats { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| query(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://gmailpostmastertools.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v2/{+parent}/domainStats:query').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| gmailpostmastertools_v2.Resource$Domains$Domainstats = Resource$Domains$Domainstats; | ||
| class Resource$Domainstats { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| batchQuery(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://gmailpostmastertools.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v2/domainStats:batchQuery').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: [], | ||
| pathParams: [], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| } | ||
| gmailpostmastertools_v2.Resource$Domainstats = Resource$Domainstats; | ||
| })(gmailpostmastertools_v2 || (exports.gmailpostmastertools_v2 = gmailpostmastertools_v2 = {})); |
| /*! THIS FILE IS AUTO-GENERATED */ | ||
| import { AuthPlus } from 'googleapis-common'; | ||
| import { health_v4 } from './v4'; | ||
| export declare const VERSIONS: { | ||
| v4: typeof health_v4.Health; | ||
| }; | ||
| export declare function health(version: 'v4'): health_v4.Health; | ||
| export declare function health(options: health_v4.Options): health_v4.Health; | ||
| declare const auth: AuthPlus; | ||
| export { auth }; | ||
| export { health_v4 }; | ||
| export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, MethodOptions, BodyResponseCallback, } from 'googleapis-common'; |
| "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.AuthPlus = exports.health_v4 = exports.auth = exports.VERSIONS = void 0; | ||
| exports.health = health; | ||
| /*! THIS FILE IS AUTO-GENERATED */ | ||
| const googleapis_common_1 = require("googleapis-common"); | ||
| const v4_1 = require("./v4"); | ||
| Object.defineProperty(exports, "health_v4", { enumerable: true, get: function () { return v4_1.health_v4; } }); | ||
| exports.VERSIONS = { | ||
| v4: v4_1.health_v4.Health, | ||
| }; | ||
| function health(versionOrOptions) { | ||
| return (0, googleapis_common_1.getAPI)('health', versionOrOptions, exports.VERSIONS, this); | ||
| } | ||
| const auth = new googleapis_common_1.AuthPlus(); | ||
| exports.auth = auth; | ||
| var googleapis_common_2 = require("googleapis-common"); | ||
| Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); |
Sorry, the diff of this file is too big to display
| "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.health_v4 = 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 health_v4; | ||
| (function (health_v4) { | ||
| /** | ||
| * Google Health API | ||
| * | ||
| * The Google Health API lets you view and manage health and fitness metrics and measurement data. | ||
| * | ||
| * @example | ||
| * ```js | ||
| * const {google} = require('googleapis'); | ||
| * const health = google.health('v4'); | ||
| * ``` | ||
| */ | ||
| class Health { | ||
| context; | ||
| projects; | ||
| users; | ||
| constructor(options, google) { | ||
| this.context = { | ||
| _options: options || {}, | ||
| google, | ||
| }; | ||
| this.projects = new Resource$Projects(this.context); | ||
| this.users = new Resource$Users(this.context); | ||
| } | ||
| } | ||
| health_v4.Health = Health; | ||
| class Resource$Projects { | ||
| context; | ||
| subscribers; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.subscribers = new Resource$Projects$Subscribers(this.context); | ||
| } | ||
| } | ||
| health_v4.Resource$Projects = Resource$Projects; | ||
| class Resource$Projects$Subscribers { | ||
| context; | ||
| constructor(context) { | ||
| this.context = 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://health.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v4/{+parent}/subscribers').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://health.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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://health.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v4/{+parent}/subscribers').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); | ||
| } | ||
| } | ||
| 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://health.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| health_v4.Resource$Projects$Subscribers = Resource$Projects$Subscribers; | ||
| class Resource$Users { | ||
| context; | ||
| dataTypes; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.dataTypes = new Resource$Users$Datatypes(this.context); | ||
| } | ||
| getIdentity(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://health.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v4/{+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); | ||
| } | ||
| } | ||
| getProfile(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://health.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v4/{+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); | ||
| } | ||
| } | ||
| getSettings(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://health.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v4/{+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); | ||
| } | ||
| } | ||
| updateProfile(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://health.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| updateSettings(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://health.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| health_v4.Resource$Users = Resource$Users; | ||
| class Resource$Users$Datatypes { | ||
| context; | ||
| dataPoints; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.dataPoints = new Resource$Users$Datatypes$Datapoints(this.context); | ||
| } | ||
| } | ||
| health_v4.Resource$Users$Datatypes = Resource$Users$Datatypes; | ||
| class Resource$Users$Datatypes$Datapoints { | ||
| 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://health.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v4/{+parent}/dataPoints:batchDelete').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://health.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v4/{+parent}/dataPoints').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| dailyRollUp(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://health.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v4/{+parent}/dataPoints:dailyRollUp').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| exportExerciseTcx(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://health.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v4/{+name}:exportExerciseTcx').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); | ||
| } | ||
| } | ||
| 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://health.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v4/{+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://health.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v4/{+parent}/dataPoints').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); | ||
| } | ||
| } | ||
| 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://health.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| reconcile(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://health.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v4/{+parent}/dataPoints:reconcile').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); | ||
| } | ||
| } | ||
| rollUp(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://health.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v4/{+parent}/dataPoints:rollUp').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| health_v4.Resource$Users$Datatypes$Datapoints = Resource$Users$Datatypes$Datapoints; | ||
| })(health_v4 || (exports.health_v4 = health_v4 = {})); |
Sorry, the diff of this file is too big to display
| "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.saasservicemgmt_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 saasservicemgmt_v1; | ||
| (function (saasservicemgmt_v1) { | ||
| /** | ||
| * App Lifecycle Manager API | ||
| * | ||
| * Model, deploy, and operate your SaaS at scale. | ||
| * | ||
| * @example | ||
| * ```js | ||
| * const {google} = require('googleapis'); | ||
| * const saasservicemgmt = google.saasservicemgmt('v1'); | ||
| * ``` | ||
| */ | ||
| class Saasservicemgmt { | ||
| context; | ||
| projects; | ||
| constructor(options, google) { | ||
| this.context = { | ||
| _options: options || {}, | ||
| google, | ||
| }; | ||
| this.projects = new Resource$Projects(this.context); | ||
| } | ||
| } | ||
| saasservicemgmt_v1.Saasservicemgmt = Saasservicemgmt; | ||
| class Resource$Projects { | ||
| context; | ||
| locations; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.locations = new Resource$Projects$Locations(this.context); | ||
| } | ||
| } | ||
| saasservicemgmt_v1.Resource$Projects = Resource$Projects; | ||
| class Resource$Projects$Locations { | ||
| context; | ||
| releases; | ||
| rolloutKinds; | ||
| rollouts; | ||
| saas; | ||
| tenants; | ||
| unitKinds; | ||
| unitOperations; | ||
| units; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.releases = new Resource$Projects$Locations$Releases(this.context); | ||
| this.rolloutKinds = new Resource$Projects$Locations$Rolloutkinds(this.context); | ||
| this.rollouts = new Resource$Projects$Locations$Rollouts(this.context); | ||
| this.saas = new Resource$Projects$Locations$Saas(this.context); | ||
| this.tenants = new Resource$Projects$Locations$Tenants(this.context); | ||
| this.unitKinds = new Resource$Projects$Locations$Unitkinds(this.context); | ||
| this.unitOperations = new Resource$Projects$Locations$Unitoperations(this.context); | ||
| this.units = new Resource$Projects$Locations$Units(this.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://saasservicemgmt.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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}/locations').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); | ||
| } | ||
| } | ||
| } | ||
| saasservicemgmt_v1.Resource$Projects$Locations = Resource$Projects$Locations; | ||
| class Resource$Projects$Locations$Releases { | ||
| context; | ||
| constructor(context) { | ||
| this.context = 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/releases').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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| saasservicemgmt_v1.Resource$Projects$Locations$Releases = Resource$Projects$Locations$Releases; | ||
| class Resource$Projects$Locations$Rolloutkinds { | ||
| context; | ||
| constructor(context) { | ||
| this.context = 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/rolloutKinds').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/rolloutKinds').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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| saasservicemgmt_v1.Resource$Projects$Locations$Rolloutkinds = Resource$Projects$Locations$Rolloutkinds; | ||
| class Resource$Projects$Locations$Rollouts { | ||
| context; | ||
| constructor(context) { | ||
| this.context = 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/rollouts').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/rollouts').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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| saasservicemgmt_v1.Resource$Projects$Locations$Rollouts = Resource$Projects$Locations$Rollouts; | ||
| class Resource$Projects$Locations$Saas { | ||
| context; | ||
| constructor(context) { | ||
| this.context = 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/saas').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/saas').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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| saasservicemgmt_v1.Resource$Projects$Locations$Saas = Resource$Projects$Locations$Saas; | ||
| class Resource$Projects$Locations$Tenants { | ||
| context; | ||
| constructor(context) { | ||
| this.context = 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/tenants').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/tenants').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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| saasservicemgmt_v1.Resource$Projects$Locations$Tenants = Resource$Projects$Locations$Tenants; | ||
| class Resource$Projects$Locations$Unitkinds { | ||
| context; | ||
| constructor(context) { | ||
| this.context = 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/unitKinds').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/unitKinds').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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| saasservicemgmt_v1.Resource$Projects$Locations$Unitkinds = Resource$Projects$Locations$Unitkinds; | ||
| class Resource$Projects$Locations$Unitoperations { | ||
| context; | ||
| constructor(context) { | ||
| this.context = 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/unitOperations').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/unitOperations').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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| saasservicemgmt_v1.Resource$Projects$Locations$Unitoperations = Resource$Projects$Locations$Unitoperations; | ||
| class Resource$Projects$Locations$Units { | ||
| context; | ||
| constructor(context) { | ||
| this.context = 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/units').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/units').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); | ||
| } | ||
| } | ||
| 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://saasservicemgmt.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| saasservicemgmt_v1.Resource$Projects$Locations$Units = Resource$Projects$Locations$Units; | ||
| })(saasservicemgmt_v1 || (exports.saasservicemgmt_v1 = saasservicemgmt_v1 = {})); |
@@ -40,2 +40,3 @@ "use strict"; | ||
| organizations; | ||
| permissions; | ||
| services; | ||
@@ -50,2 +51,3 @@ constructor(options, google) { | ||
| this.organizations = new Resource$Organizations(this.context); | ||
| this.permissions = new Resource$Permissions(this.context); | ||
| this.services = new Resource$Services(this.context); | ||
@@ -1304,2 +1306,40 @@ } | ||
| accesscontextmanager_v1.Resource$Organizations$Gcpuseraccessbindings = Resource$Organizations$Gcpuseraccessbindings; | ||
| class Resource$Permissions { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| 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://accesscontextmanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/permissions').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'GET', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: [], | ||
| pathParams: [], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| } | ||
| accesscontextmanager_v1.Resource$Permissions = Resource$Permissions; | ||
| class Resource$Services { | ||
@@ -1306,0 +1346,0 @@ context; |
@@ -60,2 +60,3 @@ "use strict"; | ||
| clusters; | ||
| endpoints; | ||
| operations; | ||
@@ -67,2 +68,3 @@ supportedDatabaseFlags; | ||
| this.clusters = new Resource$Projects$Locations$Clusters(this.context); | ||
| this.endpoints = new Resource$Projects$Locations$Endpoints(this.context); | ||
| this.operations = new Resource$Projects$Locations$Operations(this.context); | ||
@@ -1238,2 +1240,169 @@ this.supportedDatabaseFlags = | ||
| alloydb_v1alpha.Resource$Projects$Locations$Clusters$Users = Resource$Projects$Locations$Clusters$Users; | ||
| class Resource$Projects$Locations$Endpoints { | ||
| context; | ||
| constructor(context) { | ||
| this.context = 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://alloydb.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://alloydb.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://alloydb.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+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://alloydb.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+parent}/endpoints').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); | ||
| } | ||
| } | ||
| 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://alloydb.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| alloydb_v1alpha.Resource$Projects$Locations$Endpoints = Resource$Projects$Locations$Endpoints; | ||
| class Resource$Projects$Locations$Operations { | ||
@@ -1240,0 +1409,0 @@ context; |
@@ -60,2 +60,3 @@ "use strict"; | ||
| clusters; | ||
| endpoints; | ||
| operations; | ||
@@ -67,2 +68,3 @@ supportedDatabaseFlags; | ||
| this.clusters = new Resource$Projects$Locations$Clusters(this.context); | ||
| this.endpoints = new Resource$Projects$Locations$Endpoints(this.context); | ||
| this.operations = new Resource$Projects$Locations$Operations(this.context); | ||
@@ -1238,2 +1240,169 @@ this.supportedDatabaseFlags = | ||
| alloydb_v1beta.Resource$Projects$Locations$Clusters$Users = Resource$Projects$Locations$Clusters$Users; | ||
| class Resource$Projects$Locations$Endpoints { | ||
| context; | ||
| constructor(context) { | ||
| this.context = 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://alloydb.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://alloydb.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://alloydb.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta/{+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://alloydb.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta/{+parent}/endpoints').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); | ||
| } | ||
| } | ||
| 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://alloydb.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| alloydb_v1beta.Resource$Projects$Locations$Endpoints = Resource$Projects$Locations$Endpoints; | ||
| class Resource$Projects$Locations$Operations { | ||
@@ -1240,0 +1409,0 @@ context; |
@@ -216,3 +216,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Output only. The resource name of the key. The `name` has the form: `projects//locations/global/keys/`. For example: `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` NOTE: Key is a global resource; hence the only supported value for location is `global`. | ||
| * Identifier. The resource name of the key. The `name` has the form: `projects//locations/global/keys/`. For example: `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` NOTE: Key is a global resource; hence the only supported value for location is `global`. | ||
| */ | ||
@@ -499,3 +499,3 @@ name?: string | null; | ||
| * keyId: 'placeholder-value', | ||
| * // Required. The project in which the API key is created. | ||
| * // Required. The project in which the API key is created. The parent field must be in format of "projects//locations/global". | ||
| * parent: 'projects/my-project/locations/my-location', | ||
@@ -791,3 +791,3 @@ * | ||
| * pageToken: 'placeholder-value', | ||
| * // Required. Lists all API keys associated with this project. | ||
| * // Required. Lists all API keys associated with this project. The parent field must be in format of "projects//locations/global". | ||
| * parent: 'projects/my-project/locations/my-location', | ||
@@ -855,3 +855,3 @@ * // Optional. Indicate that keys deleted in the past 30 days should also be returned. | ||
| * const res = await apikeys.projects.locations.keys.patch({ | ||
| * // Output only. The resource name of the key. The `name` has the form: `projects//locations/global/keys/`. For example: `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` NOTE: Key is a global resource; hence the only supported value for location is `global`. | ||
| * // Identifier. The resource name of the key. The `name` has the form: `projects//locations/global/keys/`. For example: `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` NOTE: Key is a global resource; hence the only supported value for location is `global`. | ||
| * name: 'projects/my-project/locations/my-location/keys/my-key', | ||
@@ -986,3 +986,3 @@ * // The field mask specifies which fields to be updated as part of this request. All other fields are ignored. Mutable fields are: `display_name`, `restrictions`, and `annotations`. If an update mask is not provided, the service treats it as an implied mask equivalent to all allowed fields that are set on the wire. If the field mask has a special value "*", the service treats it equivalent to replace all allowed mutable fields. | ||
| /** | ||
| * Required. The project in which the API key is created. | ||
| * Required. The project in which the API key is created. The parent field must be in format of "projects//locations/global". | ||
| */ | ||
@@ -1027,3 +1027,3 @@ parent?: string; | ||
| /** | ||
| * Required. Lists all API keys associated with this project. | ||
| * Required. Lists all API keys associated with this project. The parent field must be in format of "projects//locations/global". | ||
| */ | ||
@@ -1038,3 +1038,3 @@ parent?: string; | ||
| /** | ||
| * Output only. The resource name of the key. The `name` has the form: `projects//locations/global/keys/`. For example: `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` NOTE: Key is a global resource; hence the only supported value for location is `global`. | ||
| * Identifier. The resource name of the key. The `name` has the form: `projects//locations/global/keys/`. For example: `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` NOTE: Key is a global resource; hence the only supported value for location is `global`. | ||
| */ | ||
@@ -1041,0 +1041,0 @@ name?: string; |
@@ -92,7 +92,7 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * The type of API resource. This is always appsmarket#customerLicense. | ||
| * The type of API resource. This is always `appsmarket#customerLicense`. | ||
| */ | ||
| kind?: string | null; | ||
| /** | ||
| * The customer's license status. One of: - `ACTIVE`: The customer has a valid license. - `UNLICENSED`: There is no license: either this customer has never installed your application, or else has deleted it. | ||
| * The customer's license status. One of: - `ACTIVE`: The customer has a valid license. - `UNLICENSED`: There is no license. Either this customer has never installed your application or has deleted it. | ||
| */ | ||
@@ -133,7 +133,7 @@ state?: string | null; | ||
| /** | ||
| * The ID of user license. | ||
| * The ID of the user license. | ||
| */ | ||
| id?: string | null; | ||
| /** | ||
| * The type of API resource. This is always appsmarket#userLicense. | ||
| * The type of API resource. This is always `appsmarket#userLicense`. | ||
| */ | ||
@@ -154,3 +154,3 @@ kind?: string | null; | ||
| /** | ||
| * Gets the status of a license for a customer to determine if they have access for a given app. | ||
| * Gets the customer's licensing status to determine if they have access to a given app. For more information, see [Getting app installation and licensing details](https://developers.google.com/workspace/marketplace/example-calls-marketplace-api). | ||
| * @example | ||
@@ -185,5 +185,5 @@ * ```js | ||
| * const res = await appsmarket.customerLicense.get({ | ||
| * // Application Id | ||
| * // The ID of the application. | ||
| * applicationId: 'placeholder-value', | ||
| * // Customer Id | ||
| * // The ID of the customer. | ||
| * customerId: 'placeholder-value', | ||
@@ -225,7 +225,7 @@ * }); | ||
| /** | ||
| * Application Id | ||
| * The ID of the application. | ||
| */ | ||
| applicationId?: string; | ||
| /** | ||
| * Customer Id | ||
| * The ID of the customer. | ||
| */ | ||
@@ -238,3 +238,3 @@ customerId?: string; | ||
| /** | ||
| * Gets the user's licensing status for their permission to use a given app. | ||
| * Gets the user's licensing status to determine if they have permission to use a given app. For more information, see [Getting app installation and licensing details](https://developers.google.com/workspace/marketplace/example-calls-marketplace-api). | ||
| * @example | ||
@@ -269,5 +269,5 @@ * ```js | ||
| * const res = await appsmarket.userLicense.get({ | ||
| * // Application Id | ||
| * // The ID of the application. | ||
| * applicationId: 'placeholder-value', | ||
| * // User Id | ||
| * // The ID of the user. | ||
| * userId: 'placeholder-value', | ||
@@ -311,7 +311,7 @@ * }); | ||
| /** | ||
| * Application Id | ||
| * The ID of the application. | ||
| */ | ||
| applicationId?: string; | ||
| /** | ||
| * User Id | ||
| * The ID of the user. | ||
| */ | ||
@@ -318,0 +318,0 @@ userId?: string; |
@@ -37,2 +37,3 @@ "use strict"; | ||
| context; | ||
| assuredworkloads; | ||
| organizations; | ||
@@ -44,2 +45,3 @@ constructor(options, google) { | ||
| }; | ||
| this.assuredworkloads = new Resource$Assuredworkloads(this.context); | ||
| this.organizations = new Resource$Organizations(this.context); | ||
@@ -49,2 +51,74 @@ } | ||
| assuredworkloads_v1.Assuredworkloads = Assuredworkloads; | ||
| class Resource$Assuredworkloads { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| archiveResourceEvents(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://assuredworkloads.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/assuredworkloads:archiveResourceEvents').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: [], | ||
| pathParams: [], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| revertArchivedResourceEvents(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://assuredworkloads.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/assuredworkloads:revertArchivedResourceEvents').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: [], | ||
| pathParams: [], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| } | ||
| assuredworkloads_v1.Resource$Assuredworkloads = Resource$Assuredworkloads; | ||
| class Resource$Organizations { | ||
@@ -51,0 +125,0 @@ context; |
@@ -37,2 +37,3 @@ "use strict"; | ||
| context; | ||
| assuredworkloads; | ||
| organizations; | ||
@@ -44,2 +45,3 @@ constructor(options, google) { | ||
| }; | ||
| this.assuredworkloads = new Resource$Assuredworkloads(this.context); | ||
| this.organizations = new Resource$Organizations(this.context); | ||
@@ -49,2 +51,74 @@ } | ||
| assuredworkloads_v1beta1.Assuredworkloads = Assuredworkloads; | ||
| class Resource$Assuredworkloads { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| archiveResourceEvents(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://assuredworkloads.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta1/assuredworkloads:archiveResourceEvents').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: [], | ||
| pathParams: [], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| revertArchivedResourceEvents(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://assuredworkloads.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta1/assuredworkloads:revertArchivedResourceEvents').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: [], | ||
| pathParams: [], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| } | ||
| assuredworkloads_v1beta1.Resource$Assuredworkloads = Resource$Assuredworkloads; | ||
| class Resource$Organizations { | ||
@@ -51,0 +125,0 @@ context; |
@@ -129,2 +129,34 @@ "use strict"; | ||
| } | ||
| testIamPermissions(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://biglake.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: ['resource'], | ||
| pathParams: ['resource'], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| } | ||
@@ -134,4 +166,6 @@ biglake_v1.Resource$Projects$Catalogs = Resource$Projects$Catalogs; | ||
| context; | ||
| tables; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.tables = new Resource$Projects$Catalogs$Namespaces$Tables(this.context); | ||
| } | ||
@@ -204,4 +238,143 @@ getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { | ||
| } | ||
| testIamPermissions(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://biglake.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: ['resource'], | ||
| pathParams: ['resource'], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| } | ||
| biglake_v1.Resource$Projects$Catalogs$Namespaces = Resource$Projects$Catalogs$Namespaces; | ||
| class Resource$Projects$Catalogs$Namespaces$Tables { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| getIamPolicy(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://biglake.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'GET', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: ['resource'], | ||
| pathParams: ['resource'], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| setIamPolicy(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://biglake.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: ['resource'], | ||
| pathParams: ['resource'], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| testIamPermissions(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://biglake.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: ['resource'], | ||
| pathParams: ['resource'], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| } | ||
| biglake_v1.Resource$Projects$Catalogs$Namespaces$Tables = Resource$Projects$Catalogs$Namespaces$Tables; | ||
| class Resource$Projects$Locations { | ||
@@ -208,0 +381,0 @@ context; |
@@ -441,5 +441,8 @@ "use strict"; | ||
| runs; | ||
| transferResources; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.runs = new Resource$Projects$Locations$Transferconfigs$Runs(this.context); | ||
| this.transferResources = | ||
| new Resource$Projects$Locations$Transferconfigs$Transferresources(this.context); | ||
| } | ||
@@ -825,8 +828,84 @@ create(paramsOrCallback, optionsOrCallback, callback) { | ||
| bigquerydatatransfer_v1.Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs = Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs; | ||
| class Resource$Projects$Locations$Transferconfigs$Transferresources { | ||
| 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://bigquerydatatransfer.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://bigquerydatatransfer.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/transferResources').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); | ||
| } | ||
| } | ||
| } | ||
| bigquerydatatransfer_v1.Resource$Projects$Locations$Transferconfigs$Transferresources = Resource$Projects$Locations$Transferconfigs$Transferresources; | ||
| class Resource$Projects$Transferconfigs { | ||
| context; | ||
| runs; | ||
| transferResources; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.runs = new Resource$Projects$Transferconfigs$Runs(this.context); | ||
| this.transferResources = | ||
| new Resource$Projects$Transferconfigs$Transferresources(this.context); | ||
| } | ||
@@ -1205,2 +1284,75 @@ create(paramsOrCallback, optionsOrCallback, callback) { | ||
| bigquerydatatransfer_v1.Resource$Projects$Transferconfigs$Runs$Transferlogs = Resource$Projects$Transferconfigs$Runs$Transferlogs; | ||
| class Resource$Projects$Transferconfigs$Transferresources { | ||
| 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://bigquerydatatransfer.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://bigquerydatatransfer.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/transferResources').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); | ||
| } | ||
| } | ||
| } | ||
| bigquerydatatransfer_v1.Resource$Projects$Transferconfigs$Transferresources = Resource$Projects$Transferconfigs$Transferresources; | ||
| })(bigquerydatatransfer_v1 || (exports.bigquerydatatransfer_v1 = bigquerydatatransfer_v1 = {})); |
@@ -91,3 +91,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Represents all possible subentity types that are associated with DailyMetrics. | ||
| * Represents all possible subentity types that are associated with DailyMetrics. Note: Currently, all metrics are returned as daily aggregates and sub-entity breakdowns are not supported. | ||
| */ | ||
@@ -235,3 +235,3 @@ export interface Schema$DailySubEntityType { | ||
| /** | ||
| * Returns the values for each date from a given time range and optionally the sub entity type, where applicable, that are associated with the specific daily metrics. Example request: `GET https://businessprofileperformance.googleapis.com/v1/locations/12345:fetchMultiDailyMetricsTimeSeries?dailyMetrics=WEBSITE_CLICKS&dailyMetrics=CALL_CLICKS&daily_range.start_date.year=2022&daily_range.start_date.month=1&daily_range.start_date.day=1&daily_range.end_date.year=2022&daily_range.end_date.month=3&daily_range.end_date.day=31` | ||
| * Returns the values for each date from a given time range that are associated with the specific daily metrics. Note: Only daily data is available. Hourly metrics are not supported. Example request: `GET https://businessprofileperformance.googleapis.com/v1/locations/12345:fetchMultiDailyMetricsTimeSeries?dailyMetrics=WEBSITE_CLICKS&dailyMetrics=CALL_CLICKS&daily_range.start_date.year=2022&daily_range.start_date.month=1&daily_range.start_date.day=1&daily_range.end_date.year=2022&daily_range.end_date.month=3&daily_range.end_date.day=31` | ||
| * @example | ||
@@ -313,3 +313,3 @@ * ```js | ||
| /** | ||
| * Returns the values for each date from a given time range that are associated with the specific daily metric. Example request: `GET https://businessprofileperformance.googleapis.com/v1/locations/12345:getDailyMetricsTimeSeries?dailyMetric=WEBSITE_CLICKS&daily_range.start_date.year=2022&daily_range.start_date.month=1&daily_range.start_date.day=1&daily_range.end_date.year=2022&daily_range.end_date.month=3&daily_range.end_date.day=31` | ||
| * Returns the values for each date from a given time range that are associated with the specific daily metric. Note: Only daily data is available. Hourly metrics are not supported. Example request: `GET https://businessprofileperformance.googleapis.com/v1/locations/12345:getDailyMetricsTimeSeries?dailyMetric=WEBSITE_CLICKS&daily_range.start_date.year=2022&daily_range.start_date.month=1&daily_range.start_date.day=1&daily_range.end_date.year=2022&daily_range.end_date.month=3&daily_range.end_date.day=31` | ||
| * @example | ||
@@ -316,0 +316,0 @@ * ```js |
@@ -394,2 +394,34 @@ "use strict"; | ||
| } | ||
| findGroupChats(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://chat.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/spaces:findGroupChats').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'GET', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: [], | ||
| pathParams: [], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| get(paramsOrCallback, optionsOrCallback, callback) { | ||
@@ -1137,5 +1169,7 @@ let params = (paramsOrCallback || {}); | ||
| context; | ||
| sections; | ||
| spaces; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.sections = new Resource$Users$Sections(this.context); | ||
| this.spaces = new Resource$Users$Spaces(this.context); | ||
@@ -1145,2 +1179,242 @@ } | ||
| chat_v1.Resource$Users = Resource$Users; | ||
| class Resource$Users$Sections { | ||
| context; | ||
| items; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.items = new Resource$Users$Sections$Items(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://chat.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/sections').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://chat.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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://chat.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/sections').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); | ||
| } | ||
| } | ||
| 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://chat.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| position(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://chat.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}:position').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| chat_v1.Resource$Users$Sections = Resource$Users$Sections; | ||
| class Resource$Users$Sections$Items { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| 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://chat.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/items').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); | ||
| } | ||
| } | ||
| move(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://chat.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| chat_v1.Resource$Users$Sections$Items = Resource$Users$Sections$Items; | ||
| class Resource$Users$Spaces { | ||
@@ -1147,0 +1421,0 @@ context; |
@@ -40,2 +40,3 @@ "use strict"; | ||
| skus; | ||
| v1beta; | ||
| constructor(options, google) { | ||
@@ -49,2 +50,3 @@ this.context = { | ||
| this.skus = new Resource$Skus(this.context); | ||
| this.v1beta = new Resource$V1beta(this.context); | ||
| } | ||
@@ -663,2 +665,41 @@ } | ||
| cloudbilling_v1beta.Resource$Skus$Prices = Resource$Skus$Prices; | ||
| class Resource$V1beta { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| generateInsights(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://cloudbilling.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta:generateInsights').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: [], | ||
| pathParams: [], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| } | ||
| cloudbilling_v1beta.Resource$V1beta = Resource$V1beta; | ||
| })(cloudbilling_v1beta || (exports.cloudbilling_v1beta = cloudbilling_v1beta = {})); |
@@ -248,3 +248,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Lists information about the supported locations for this service. This method can be called in two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-visible locations:** Use the path `GET /v1/projects/{project_id\}/locations`. This may include public locations as well as private or other locations specifically visible to the project. | ||
| * Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project\}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. | ||
| * @example | ||
@@ -279,3 +279,3 @@ * ```js | ||
| * const res = await cloudlocationfinder.projects.locations.list({ | ||
| * // Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. | ||
| * // Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. | ||
| * extraLocationTypes: 'placeholder-value', | ||
@@ -327,3 +327,3 @@ * // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). | ||
| /** | ||
| * Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. | ||
| * Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. | ||
| */ | ||
@@ -330,0 +330,0 @@ extraLocationTypes?: string[]; |
@@ -248,3 +248,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Lists information about the supported locations for this service. This method can be called in two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-visible locations:** Use the path `GET /v1/projects/{project_id\}/locations`. This may include public locations as well as private or other locations specifically visible to the project. | ||
| * Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project\}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. | ||
| * @example | ||
@@ -279,3 +279,3 @@ * ```js | ||
| * const res = await cloudlocationfinder.projects.locations.list({ | ||
| * // Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. | ||
| * // Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. | ||
| * extraLocationTypes: 'placeholder-value', | ||
@@ -327,3 +327,3 @@ * // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). | ||
| /** | ||
| * Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. | ||
| * Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. | ||
| */ | ||
@@ -330,0 +330,0 @@ extraLocationTypes?: string[]; |
@@ -37,2 +37,3 @@ "use strict"; | ||
| context; | ||
| accountTypes; | ||
| audienceMembers; | ||
@@ -46,2 +47,3 @@ events; | ||
| }; | ||
| this.accountTypes = new Resource$Accounttypes(this.context); | ||
| this.audienceMembers = new Resource$Audiencemembers(this.context); | ||
@@ -53,2 +55,663 @@ this.events = new Resource$Events(this.context); | ||
| datamanager_v1.Datamanager = Datamanager; | ||
| class Resource$Accounttypes { | ||
| context; | ||
| accounts; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.accounts = new Resource$Accounttypes$Accounts(this.context); | ||
| } | ||
| } | ||
| datamanager_v1.Resource$Accounttypes = Resource$Accounttypes; | ||
| class Resource$Accounttypes$Accounts { | ||
| context; | ||
| insights; | ||
| partnerLinks; | ||
| userListDirectLicenses; | ||
| userListGlobalLicenses; | ||
| userLists; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.insights = new Resource$Accounttypes$Accounts$Insights(this.context); | ||
| this.partnerLinks = new Resource$Accounttypes$Accounts$Partnerlinks(this.context); | ||
| this.userListDirectLicenses = | ||
| new Resource$Accounttypes$Accounts$Userlistdirectlicenses(this.context); | ||
| this.userListGlobalLicenses = | ||
| new Resource$Accounttypes$Accounts$Userlistgloballicenses(this.context); | ||
| this.userLists = new Resource$Accounttypes$Accounts$Userlists(this.context); | ||
| } | ||
| } | ||
| datamanager_v1.Resource$Accounttypes$Accounts = Resource$Accounttypes$Accounts; | ||
| class Resource$Accounttypes$Accounts$Insights { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| retrieve(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://datamanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/insights:retrieve').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| datamanager_v1.Resource$Accounttypes$Accounts$Insights = Resource$Accounttypes$Accounts$Insights; | ||
| class Resource$Accounttypes$Accounts$Partnerlinks { | ||
| context; | ||
| constructor(context) { | ||
| this.context = 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://datamanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/partnerLinks').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://datamanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://datamanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/partnerLinks:search').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); | ||
| } | ||
| } | ||
| } | ||
| datamanager_v1.Resource$Accounttypes$Accounts$Partnerlinks = Resource$Accounttypes$Accounts$Partnerlinks; | ||
| class Resource$Accounttypes$Accounts$Userlistdirectlicenses { | ||
| context; | ||
| constructor(context) { | ||
| this.context = 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://datamanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/userListDirectLicenses').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://datamanager.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://datamanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/userListDirectLicenses').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); | ||
| } | ||
| } | ||
| 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://datamanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| datamanager_v1.Resource$Accounttypes$Accounts$Userlistdirectlicenses = Resource$Accounttypes$Accounts$Userlistdirectlicenses; | ||
| class Resource$Accounttypes$Accounts$Userlistgloballicenses { | ||
| context; | ||
| userListGlobalLicenseCustomerInfos; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.userListGlobalLicenseCustomerInfos = | ||
| new Resource$Accounttypes$Accounts$Userlistgloballicenses$Userlistgloballicensecustomerinfos(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://datamanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/userListGlobalLicenses').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://datamanager.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://datamanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/userListGlobalLicenses').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); | ||
| } | ||
| } | ||
| 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://datamanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| datamanager_v1.Resource$Accounttypes$Accounts$Userlistgloballicenses = Resource$Accounttypes$Accounts$Userlistgloballicenses; | ||
| class Resource$Accounttypes$Accounts$Userlistgloballicenses$Userlistgloballicensecustomerinfos { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| 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://datamanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/userListGlobalLicenseCustomerInfos').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); | ||
| } | ||
| } | ||
| } | ||
| datamanager_v1.Resource$Accounttypes$Accounts$Userlistgloballicenses$Userlistgloballicensecustomerinfos = Resource$Accounttypes$Accounts$Userlistgloballicenses$Userlistgloballicensecustomerinfos; | ||
| class Resource$Accounttypes$Accounts$Userlists { | ||
| context; | ||
| constructor(context) { | ||
| this.context = 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://datamanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/userLists').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://datamanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://datamanager.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://datamanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/userLists').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); | ||
| } | ||
| } | ||
| 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://datamanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| datamanager_v1.Resource$Accounttypes$Accounts$Userlists = Resource$Accounttypes$Accounts$Userlists; | ||
| class Resource$Audiencemembers { | ||
@@ -55,0 +718,0 @@ context; |
@@ -209,2 +209,35 @@ "use strict"; | ||
| } | ||
| fetchUserRepositories(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://developerconnect.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+accountConnector}:fetchUserRepositories').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'GET', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: ['accountConnector'], | ||
| pathParams: ['accountConnector'], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| get(paramsOrCallback, optionsOrCallback, callback) { | ||
@@ -211,0 +244,0 @@ let params = (paramsOrCallback || |
@@ -104,3 +104,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Message priority. Can take "normal" and "high" values. For more information, see [Setting the priority of a message](https://goo.gl/GjONJv). | ||
| * Message priority. Can take "normal" and "high" values. For more information, see [Setting the priority of a message](https://firebase.google.com/docs/cloud-messaging/customize-messages/setting-message-priority). | ||
| */ | ||
@@ -147,6 +147,2 @@ priority?: string | null; | ||
| /** | ||
| * If set, display notifications delivered to the device will be handled by the app instead of the proxy. | ||
| */ | ||
| bypassProxyNotification?: boolean | null; | ||
| /** | ||
| * The [notification's channel id](https://developer.android.com/guide/topics/ui/notifiers/notifications#ManageChannels) (new in Android O). The app must create a channel with this channel ID before any notification with this channel ID is received. If you don't send this channel ID in the request, or if the channel ID provided has not yet been created by the app, FCM uses the channel ID specified in the app manifest. | ||
@@ -200,3 +196,3 @@ */ | ||
| /** | ||
| * Set the relative priority for this notification. Priority is an indication of how much of the user's attention should be consumed by this notification. Low-priority notifications may be hidden from the user in certain situations, while the user might be interrupted for a higher-priority notification. The effect of setting the same priorities may differ slightly on different platforms. Note this priority differs from `AndroidMessagePriority`. This priority is processed by the client after the message has been delivered, whereas [AndroidMessagePriority](https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#androidmessagepriority) is an FCM concept that controls when the message is delivered. | ||
| * Set the relative priority for this notification. Priority is an indication of how much of the user's attention should be consumed by this notification. Low-priority notifications may be hidden from the user in certain situations, while the user might be interrupted for a higher-priority notification. This parameter affects notification priority only on devices running Android 7.1 (API level 25) and lower. On Android 8.0 (API level 26) and higher, priority is ignored in favor of channel [importance](https://developer.android.com/develop/ui/views/notifications/channels#importance). Note this priority differs from `AndroidMessagePriority`. This priority is processed by the client after the message has been delivered, whereas [AndroidMessagePriority](https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#androidmessagepriority) is an FCM concept that controls when the message is delivered. | ||
| */ | ||
@@ -203,0 +199,0 @@ notificationPriority?: string | null; |
@@ -60,2 +60,3 @@ "use strict"; | ||
| operations; | ||
| supportedRuntimes; | ||
| constructor(context) { | ||
@@ -65,2 +66,4 @@ this.context = context; | ||
| this.operations = new Resource$Projects$Locations$Operations(this.context); | ||
| this.supportedRuntimes = | ||
| new Resource$Projects$Locations$Supportedruntimes(this.context); | ||
| } | ||
@@ -927,2 +930,42 @@ get(paramsOrCallback, optionsOrCallback, callback) { | ||
| firebaseapphosting_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; | ||
| class Resource$Projects$Locations$Supportedruntimes { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| 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://firebaseapphosting.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta/{+parent}/supportedRuntimes').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); | ||
| } | ||
| } | ||
| } | ||
| firebaseapphosting_v1beta.Resource$Projects$Locations$Supportedruntimes = Resource$Projects$Locations$Supportedruntimes; | ||
| })(firebaseapphosting_v1beta || (exports.firebaseapphosting_v1beta = firebaseapphosting_v1beta = {})); |
@@ -27,3 +27,3 @@ "use strict"; | ||
| * | ||
| * Firebase Data Connect is a relational database service for mobile and web apps that lets you build and scale using a fully-managed PostgreSQL database powered by Cloud SQL. The REST API lets developers manage the connections to their database, change the schema of their database, and query the database. | ||
| * Firebase SQL Connect is a relational database service for mobile and web apps that lets you build and scale using a fully-managed PostgreSQL database powered by Cloud SQL. The REST API lets developers manage the connections to their database, change the schema of their database, and query the database. | ||
| * | ||
@@ -406,2 +406,68 @@ * @example | ||
| } | ||
| generateQuery(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://firebasedataconnect.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}:generateQuery').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| generateSchema(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://firebasedataconnect.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}:generateSchema').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| get(paramsOrCallback, optionsOrCallback, callback) { | ||
@@ -408,0 +474,0 @@ let params = (paramsOrCallback || |
@@ -27,3 +27,3 @@ "use strict"; | ||
| * | ||
| * Firebase Data Connect is a relational database service for mobile and web apps that lets you build and scale using a fully-managed PostgreSQL database powered by Cloud SQL. The REST API lets developers manage the connections to their database, change the schema of their database, and query the database. | ||
| * Firebase SQL Connect is a relational database service for mobile and web apps that lets you build and scale using a fully-managed PostgreSQL database powered by Cloud SQL. The REST API lets developers manage the connections to their database, change the schema of their database, and query the database. | ||
| * | ||
@@ -406,2 +406,68 @@ * @example | ||
| } | ||
| generateQuery(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://firebasedataconnect.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta/{+name}:generateQuery').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| generateSchema(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://firebasedataconnect.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta/{+name}:generateSchema').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| get(paramsOrCallback, optionsOrCallback, callback) { | ||
@@ -408,0 +474,0 @@ let params = (paramsOrCallback || |
@@ -5,5 +5,7 @@ /*! THIS FILE IS AUTO-GENERATED */ | ||
| import { gmailpostmastertools_v1beta1 } from './v1beta1'; | ||
| import { gmailpostmastertools_v2 } from './v2'; | ||
| export declare const VERSIONS: { | ||
| v1: typeof gmailpostmastertools_v1.Gmailpostmastertools; | ||
| v1beta1: typeof gmailpostmastertools_v1beta1.Gmailpostmastertools; | ||
| v2: typeof gmailpostmastertools_v2.Gmailpostmastertools; | ||
| }; | ||
@@ -14,2 +16,4 @@ export declare function gmailpostmastertools(version: 'v1'): gmailpostmastertools_v1.Gmailpostmastertools; | ||
| export declare function gmailpostmastertools(options: gmailpostmastertools_v1beta1.Options): gmailpostmastertools_v1beta1.Gmailpostmastertools; | ||
| export declare function gmailpostmastertools(version: 'v2'): gmailpostmastertools_v2.Gmailpostmastertools; | ||
| export declare function gmailpostmastertools(options: gmailpostmastertools_v2.Options): gmailpostmastertools_v2.Gmailpostmastertools; | ||
| declare const auth: AuthPlus; | ||
@@ -19,2 +23,3 @@ export { auth }; | ||
| export { gmailpostmastertools_v1beta1 }; | ||
| export { gmailpostmastertools_v2 }; | ||
| export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, MethodOptions, BodyResponseCallback, } from 'googleapis-common'; |
@@ -15,3 +15,3 @@ "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.AuthPlus = exports.gmailpostmastertools_v1beta1 = exports.gmailpostmastertools_v1 = exports.auth = exports.VERSIONS = void 0; | ||
| exports.AuthPlus = exports.gmailpostmastertools_v2 = exports.gmailpostmastertools_v1beta1 = exports.gmailpostmastertools_v1 = exports.auth = exports.VERSIONS = void 0; | ||
| exports.gmailpostmastertools = gmailpostmastertools; | ||
@@ -24,5 +24,8 @@ /*! THIS FILE IS AUTO-GENERATED */ | ||
| Object.defineProperty(exports, "gmailpostmastertools_v1beta1", { enumerable: true, get: function () { return v1beta1_1.gmailpostmastertools_v1beta1; } }); | ||
| const v2_1 = require("./v2"); | ||
| Object.defineProperty(exports, "gmailpostmastertools_v2", { enumerable: true, get: function () { return v2_1.gmailpostmastertools_v2; } }); | ||
| exports.VERSIONS = { | ||
| v1: v1_1.gmailpostmastertools_v1.Gmailpostmastertools, | ||
| v1beta1: v1beta1_1.gmailpostmastertools_v1beta1.Gmailpostmastertools, | ||
| v2: v2_1.gmailpostmastertools_v2.Gmailpostmastertools, | ||
| }; | ||
@@ -29,0 +32,0 @@ function gmailpostmastertools(versionOrOptions) { |
@@ -97,2 +97,15 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Contains the set of updates for a component. | ||
| */ | ||
| export interface Schema$ComponentTraitUpdates { | ||
| /** | ||
| * Required. ID of the component from the device provider. | ||
| */ | ||
| componentId?: string | null; | ||
| /** | ||
| * Required. The updated trait data for the component. | ||
| */ | ||
| traitData?: Schema$TraitData[]; | ||
| } | ||
| /** | ||
| * Third-party device definition. | ||
@@ -198,2 +211,60 @@ */ | ||
| /** | ||
| * Contains the details for a single event. | ||
| */ | ||
| export interface Schema$EventData { | ||
| /** | ||
| * Required. The actual event payload. | ||
| */ | ||
| event?: { | ||
| [key: string]: any; | ||
| } | null; | ||
| /** | ||
| * Required. The unique event ID from the device provider. | ||
| */ | ||
| eventId?: string | null; | ||
| /** | ||
| * Required. The timestamp of the event. | ||
| */ | ||
| eventTime?: string | null; | ||
| } | ||
| /** | ||
| * Contains a set of events for a specific component. | ||
| */ | ||
| export interface Schema$Events { | ||
| /** | ||
| * Optional. The ID of the provider component if the events are associated with a specific component. Optional for WHDM events, required for UDDM events. | ||
| */ | ||
| componentId?: string | null; | ||
| /** | ||
| * Required. List of events associated with the component. | ||
| */ | ||
| events?: Schema$EventData[]; | ||
| } | ||
| /** | ||
| * Contains the set of events for an item. | ||
| */ | ||
| export interface Schema$HomeEvents { | ||
| /** | ||
| * Required. / Unique identifier for the device. | ||
| */ | ||
| deviceId?: string | null; | ||
| /** | ||
| * Required. List of events for the item. | ||
| */ | ||
| events?: Schema$Events[]; | ||
| } | ||
| /** | ||
| * Contains the set of updates for a device. | ||
| */ | ||
| export interface Schema$HomeTraitUpdates { | ||
| /** | ||
| * Required. Trait updates for each component. | ||
| */ | ||
| components?: Schema$ComponentTraitUpdates[]; | ||
| /** | ||
| * Required. Unique identifier for the device. | ||
| */ | ||
| deviceId?: string | null; | ||
| } | ||
| /** | ||
| * Request type for the [`Query`](#google.home.graph.v1.HomeGraphApiService.Query) call. | ||
@@ -264,2 +335,10 @@ */ | ||
| /** | ||
| * Optional. UDDM/WHDM trait events | ||
| */ | ||
| homeEvents?: Schema$HomeEvents[]; | ||
| /** | ||
| * Optional. UDDM/WHDM trait updates. | ||
| */ | ||
| homeTraits?: Schema$HomeTraitUpdates[]; | ||
| /** | ||
| * Notifications metadata for devices. See the **Device NOTIFICATIONS** section of the individual trait [reference guides](https://developers.home.google.com/cloud-to-cloud/traits). | ||
@@ -377,2 +456,13 @@ */ | ||
| } | ||
| /** | ||
| * Contains the trait payload for a single trait. | ||
| */ | ||
| export interface Schema$TraitData { | ||
| /** | ||
| * Optional. The Home API trait payload. | ||
| */ | ||
| trait?: { | ||
| [key: string]: any; | ||
| } | null; | ||
| } | ||
| export class Resource$Agentusers { | ||
@@ -379,0 +469,0 @@ context: APIRequestContext; |
@@ -27,4 +27,4 @@ "use strict"; | ||
| * | ||
| * The Cluster Director API allows you to deploy, manage, and monitor clusters that run AI, ML, or HPC workloads. | ||
| * | ||
| * | ||
| * @example | ||
@@ -31,0 +31,0 @@ * ```js |
@@ -241,3 +241,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| * { | ||
| * // Required. Resource name of workforce pool. | ||
| * // Required. Resource name of workforce pool. Format: `locations/global/workforcePools/{pool_id\}` | ||
| * name: 'locations/my-location/workforcePools/my-workforcePool', | ||
@@ -276,3 +276,3 @@ * }, | ||
| /** | ||
| * Required. Resource name of workforce pool. | ||
| * Required. Resource name of workforce pool. Format: `locations/global/workforcePools/{pool_id\}` | ||
| */ | ||
@@ -328,3 +328,3 @@ name?: string; | ||
| * { | ||
| * // Required. Resource name of workload identity pool. | ||
| * // Required. Resource name of workload identity pool. Format: `projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}` | ||
| * name: 'projects/my-project/locations/my-location/workloadIdentityPools/my-workloadIdentityPool', | ||
@@ -363,3 +363,3 @@ * }, | ||
| /** | ||
| * Required. Resource name of workload identity pool. | ||
| * Required. Resource name of workload identity pool. Format: `projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}` | ||
| */ | ||
@@ -547,3 +547,3 @@ name?: string; | ||
| * { | ||
| * // Required. Resource name of service account. | ||
| * // Required. Resource name of service account. Format: `projects/-/serviceAccounts/{service_account_email\}` | ||
| * name: 'projects/my-project/serviceAccounts/my-serviceAccount', | ||
@@ -742,3 +742,3 @@ * }, | ||
| /** | ||
| * Required. Resource name of service account. | ||
| * Required. Resource name of service account. Format: `projects/-/serviceAccounts/{service_account_email\}` | ||
| */ | ||
@@ -745,0 +745,0 @@ name?: string; |
@@ -375,3 +375,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Lists information about the supported locations for this service. | ||
| * Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project\}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. | ||
| * @example | ||
@@ -406,3 +406,3 @@ * ```js | ||
| * const res = await ids.projects.locations.list({ | ||
| * // Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. | ||
| * // Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. | ||
| * extraLocationTypes: 'placeholder-value', | ||
@@ -454,3 +454,3 @@ * // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). | ||
| /** | ||
| * Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. | ||
| * Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. | ||
| */ | ||
@@ -457,0 +457,0 @@ extraLocationTypes?: string[]; |
@@ -17,2 +17,3 @@ /*! THIS FILE IS AUTO-GENERATED */ | ||
| import { advisorynotifications } from './advisorynotifications'; | ||
| import { agentregistry } from './agentregistry'; | ||
| import { aiplatform } from './aiplatform'; | ||
@@ -64,2 +65,3 @@ import { airquality } from './airquality'; | ||
| import { certificatemanager } from './certificatemanager'; | ||
| import { ces } from './ces'; | ||
| import { chat } from './chat'; | ||
@@ -123,2 +125,3 @@ import { checks } from './checks'; | ||
| import { developerconnect } from './developerconnect'; | ||
| import { developerknowledge } from './developerknowledge'; | ||
| import { dfareporting } from './dfareporting'; | ||
@@ -173,2 +176,3 @@ import { dialogflow } from './dialogflow'; | ||
| import { groupssettings } from './groupssettings'; | ||
| import { health } from './health'; | ||
| import { healthcare } from './healthcare'; | ||
@@ -192,3 +196,2 @@ import { homegraph } from './homegraph'; | ||
| import { licensing } from './licensing'; | ||
| import { lifesciences } from './lifesciences'; | ||
| import { localservices } from './localservices'; | ||
@@ -350,2 +353,3 @@ import { logging } from './logging'; | ||
| advisorynotifications: typeof advisorynotifications; | ||
| agentregistry: typeof agentregistry; | ||
| aiplatform: typeof aiplatform; | ||
@@ -397,2 +401,3 @@ airquality: typeof airquality; | ||
| certificatemanager: typeof certificatemanager; | ||
| ces: typeof ces; | ||
| chat: typeof chat; | ||
@@ -456,2 +461,3 @@ checks: typeof checks; | ||
| developerconnect: typeof developerconnect; | ||
| developerknowledge: typeof developerknowledge; | ||
| dfareporting: typeof dfareporting; | ||
@@ -506,2 +512,3 @@ dialogflow: typeof dialogflow; | ||
| groupssettings: typeof groupssettings; | ||
| health: typeof health; | ||
| healthcare: typeof healthcare; | ||
@@ -525,3 +532,2 @@ homegraph: typeof homegraph; | ||
| licensing: typeof licensing; | ||
| lifesciences: typeof lifesciences; | ||
| localservices: typeof localservices; | ||
@@ -528,0 +534,0 @@ logging: typeof logging; |
@@ -32,2 +32,3 @@ "use strict"; | ||
| const advisorynotifications_1 = require("./advisorynotifications"); | ||
| const agentregistry_1 = require("./agentregistry"); | ||
| const aiplatform_1 = require("./aiplatform"); | ||
@@ -79,2 +80,3 @@ const airquality_1 = require("./airquality"); | ||
| const certificatemanager_1 = require("./certificatemanager"); | ||
| const ces_1 = require("./ces"); | ||
| const chat_1 = require("./chat"); | ||
@@ -138,2 +140,3 @@ const checks_1 = require("./checks"); | ||
| const developerconnect_1 = require("./developerconnect"); | ||
| const developerknowledge_1 = require("./developerknowledge"); | ||
| const dfareporting_1 = require("./dfareporting"); | ||
@@ -188,2 +191,3 @@ const dialogflow_1 = require("./dialogflow"); | ||
| const groupssettings_1 = require("./groupssettings"); | ||
| const health_1 = require("./health"); | ||
| const healthcare_1 = require("./healthcare"); | ||
@@ -207,3 +211,2 @@ const homegraph_1 = require("./homegraph"); | ||
| const licensing_1 = require("./licensing"); | ||
| const lifesciences_1 = require("./lifesciences"); | ||
| const localservices_1 = require("./localservices"); | ||
@@ -359,2 +362,3 @@ const logging_1 = require("./logging"); | ||
| advisorynotifications: advisorynotifications_1.VERSIONS, | ||
| agentregistry: agentregistry_1.VERSIONS, | ||
| aiplatform: aiplatform_1.VERSIONS, | ||
@@ -406,2 +410,3 @@ airquality: airquality_1.VERSIONS, | ||
| certificatemanager: certificatemanager_1.VERSIONS, | ||
| ces: ces_1.VERSIONS, | ||
| chat: chat_1.VERSIONS, | ||
@@ -465,2 +470,3 @@ checks: checks_1.VERSIONS, | ||
| developerconnect: developerconnect_1.VERSIONS, | ||
| developerknowledge: developerknowledge_1.VERSIONS, | ||
| dfareporting: dfareporting_1.VERSIONS, | ||
@@ -515,2 +521,3 @@ dialogflow: dialogflow_1.VERSIONS, | ||
| groupssettings: groupssettings_1.VERSIONS, | ||
| health: health_1.VERSIONS, | ||
| healthcare: healthcare_1.VERSIONS, | ||
@@ -534,3 +541,2 @@ homegraph: homegraph_1.VERSIONS, | ||
| licensing: licensing_1.VERSIONS, | ||
| lifesciences: lifesciences_1.VERSIONS, | ||
| localservices: localservices_1.VERSIONS, | ||
@@ -687,2 +693,3 @@ logging: logging_1.VERSIONS, | ||
| advisorynotifications = advisorynotifications_1.advisorynotifications; | ||
| agentregistry = agentregistry_1.agentregistry; | ||
| aiplatform = aiplatform_1.aiplatform; | ||
@@ -734,2 +741,3 @@ airquality = airquality_1.airquality; | ||
| certificatemanager = certificatemanager_1.certificatemanager; | ||
| ces = ces_1.ces; | ||
| chat = chat_1.chat; | ||
@@ -793,2 +801,3 @@ checks = checks_1.checks; | ||
| developerconnect = developerconnect_1.developerconnect; | ||
| developerknowledge = developerknowledge_1.developerknowledge; | ||
| dfareporting = dfareporting_1.dfareporting; | ||
@@ -843,2 +852,3 @@ dialogflow = dialogflow_1.dialogflow; | ||
| groupssettings = groupssettings_1.groupssettings; | ||
| health = health_1.health; | ||
| healthcare = healthcare_1.healthcare; | ||
@@ -862,3 +872,2 @@ homegraph = homegraph_1.homegraph; | ||
| licensing = licensing_1.licensing; | ||
| lifesciences = lifesciences_1.lifesciences; | ||
| localservices = localservices_1.localservices; | ||
@@ -865,0 +874,0 @@ logging = logging_1.logging; |
@@ -187,3 +187,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Warning message specifying various states of response data that might indicate incomplete or partial results. | ||
| * A warning message that indicates potential problems with the response data. | ||
| */ | ||
@@ -221,3 +221,3 @@ export interface Schema$GoogleCloudKmsInventoryV1Warning { | ||
| /** | ||
| * Optional. The policy used for Key Access Justifications Policy Enforcement. If this field is present and this key is enrolled in Key Access Justifications Policy Enforcement, the policy will be evaluated in encrypt, decrypt, and sign operations, and the operation will fail if rejected by the policy. The policy is defined by specifying zero or more allowed justification codes. https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes By default, this field is absent, and all justification codes are allowed. | ||
| * Optional. The policy used for Key Access Justifications Policy Enforcement. If this field is present and this key is enrolled in Key Access Justifications Policy Enforcement, the policy will be evaluated in encrypt, decrypt, and sign operations, and the operation will fail if rejected by the policy. The policy is defined by specifying zero or more allowed justification codes. https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes By default, this field is absent, and all justification codes are allowed. If the `key_access_justifications_policy.allowed_access_reasons` is empty (zero allowed justification code), all encrypt, decrypt, and sign operations will fail. | ||
| */ | ||
@@ -352,7 +352,7 @@ keyAccessJustificationsPolicy?: Schema$GoogleCloudKmsV1KeyAccessJustificationsPolicy; | ||
| /** | ||
| * A KeyAccessJustificationsPolicy specifies zero or more allowed AccessReason values for encrypt, decrypt, and sign operations on a CryptoKey. | ||
| * A KeyAccessJustificationsPolicy specifies zero or more allowed AccessReason values for encrypt, decrypt, and sign operations on a CryptoKey or KeyAccessJustificationsPolicyConfig (the default Key Access Justifications policy). | ||
| */ | ||
| export interface Schema$GoogleCloudKmsV1KeyAccessJustificationsPolicy { | ||
| /** | ||
| * The list of allowed reasons for access to a CryptoKey. Zero allowed access reasons means all encrypt, decrypt, and sign operations for the CryptoKey associated with this policy will fail. | ||
| * The list of allowed reasons for access to a CryptoKey. Note that empty allowed_access_reasons has a different meaning depending on where this message appears. If this is under KeyAccessJustificationsPolicyConfig, it means allow-all. If this is under CryptoKey, it means deny-all. | ||
| */ | ||
@@ -442,3 +442,3 @@ allowedAccessReasons?: string[] | null; | ||
| * resourceTypes: 'placeholder-value', | ||
| * // Required. A scope can be an organization or a project. Resources protected by the crypto key in provided scope will be returned. The allowed values are: * organizations/{ORGANIZATION_NUMBER\} (e.g., "organizations/12345678") * projects/{PROJECT_ID\} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER\} (e.g., "projects/12345678") | ||
| * // Required. A scope can be an organization or a project. Resources protected by the crypto key in provided scope will be returned. The following values are allowed: * organizations/{ORGANIZATION_NUMBER\} (e.g., "organizations/12345678") * projects/{PROJECT_ID\} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER\} (e.g., "projects/12345678") | ||
| * scope: 'organizations/my-organization', | ||
@@ -492,3 +492,3 @@ * }); | ||
| /** | ||
| * Required. A scope can be an organization or a project. Resources protected by the crypto key in provided scope will be returned. The allowed values are: * organizations/{ORGANIZATION_NUMBER\} (e.g., "organizations/12345678") * projects/{PROJECT_ID\} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER\} (e.g., "projects/12345678") | ||
| * Required. A scope can be an organization or a project. Resources protected by the crypto key in provided scope will be returned. The following values are allowed: * organizations/{ORGANIZATION_NUMBER\} (e.g., "organizations/12345678") * projects/{PROJECT_ID\} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER\} (e.g., "projects/12345678") | ||
| */ | ||
@@ -724,3 +724,3 @@ scope?: string; | ||
| * resourceTypes: 'placeholder-value', | ||
| * // Required. A scope can be an organization or a project. Resources protected by the crypto key in provided scope will be returned. The allowed values are: * organizations/{ORGANIZATION_NUMBER\} (e.g., "organizations/12345678") * projects/{PROJECT_ID\} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER\} (e.g., "projects/12345678") | ||
| * // Required. A scope can be an organization or a project. Resources protected by the crypto key in provided scope will be returned. The following values are allowed: * organizations/{ORGANIZATION_NUMBER\} (e.g., "organizations/12345678") * projects/{PROJECT_ID\} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER\} (e.g., "projects/12345678") | ||
| * scope: 'projects/my-project', | ||
@@ -774,3 +774,3 @@ * }); | ||
| /** | ||
| * Required. A scope can be an organization or a project. Resources protected by the crypto key in provided scope will be returned. The allowed values are: * organizations/{ORGANIZATION_NUMBER\} (e.g., "organizations/12345678") * projects/{PROJECT_ID\} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER\} (e.g., "projects/12345678") | ||
| * Required. A scope can be an organization or a project. Resources protected by the crypto key in provided scope will be returned. The following values are allowed: * organizations/{ORGANIZATION_NUMBER\} (e.g., "organizations/12345678") * projects/{PROJECT_ID\} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER\} (e.g., "projects/12345678") | ||
| */ | ||
@@ -777,0 +777,0 @@ scope?: string; |
@@ -426,34 +426,2 @@ "use strict"; | ||
| } | ||
| undelete(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://looker.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
@@ -460,0 +428,0 @@ looker_v1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; |
@@ -378,3 +378,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Lookup for a single organization. | ||
| * Looks up a single organization. | ||
| * @example | ||
@@ -509,3 +509,3 @@ * ```js | ||
| /** | ||
| * Get the usage and billing data for properties within the organization for the specified month. Per direct client org, user needs to be OrgAdmin/BillingAdmin on the organization in order to view the billing and usage data. Per sales partner client org, user needs to be OrgAdmin/BillingAdmin on the sales partner org in order to view the billing and usage data, or OrgAdmin/BillingAdmin on the sales partner client org in order to view the usage data only. | ||
| * Gets the usage and billing data for properties within the organization for the specified month. Per direct client org, user needs to be OrgAdmin/BillingAdmin on the organization in order to view the billing and usage data. Per sales partner client org, user needs to be OrgAdmin/BillingAdmin on the sales partner org in order to view the billing and usage data, or OrgAdmin/BillingAdmin on the sales partner client org in order to view the usage data only. | ||
| * @example | ||
@@ -512,0 +512,0 @@ * ```js |
@@ -53,2 +53,3 @@ "use strict"; | ||
| recordings; | ||
| smartNotes; | ||
| transcripts; | ||
@@ -59,2 +60,3 @@ constructor(context) { | ||
| this.recordings = new Resource$Conferencerecords$Recordings(this.context); | ||
| this.smartNotes = new Resource$Conferencerecords$Smartnotes(this.context); | ||
| this.transcripts = new Resource$Conferencerecords$Transcripts(this.context); | ||
@@ -346,2 +348,73 @@ } | ||
| meet_v2.Resource$Conferencerecords$Recordings = Resource$Conferencerecords$Recordings; | ||
| class Resource$Conferencerecords$Smartnotes { | ||
| 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://meet.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v2/{+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://meet.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v2/{+parent}/smartNotes').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); | ||
| } | ||
| } | ||
| } | ||
| meet_v2.Resource$Conferencerecords$Smartnotes = Resource$Conferencerecords$Smartnotes; | ||
| class Resource$Conferencerecords$Transcripts { | ||
@@ -348,0 +421,0 @@ context; |
@@ -321,3 +321,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Required. Immutable. The feed label of the offers to which the local inventory is provided. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). See also [migration to feed labels](https://developers.google.com/shopping-content/guides/products/feed-labels). | ||
| * Required. Immutable. The feed label of the offers to which the local inventory is provided. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). | ||
| */ | ||
@@ -352,3 +352,3 @@ feedLabel?: string | null; | ||
| /** | ||
| * Optional. Immutable. The feed label that is specified on the data source level. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). See also [migration to feed labels](https://developers.google.com/shopping-content/guides/products/feed-labels). `feedLabel` and `contentLanguage` must be either both set or unset for data sources with product content type. They must be set for data sources with a file input. If set, the data source will only accept products matching this combination. If unset, the data source will accept products without that restriction. | ||
| * Optional. Immutable. The feed label that is specified on the data source level. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). For more information about feed label, see [Create a primary data source for products](https://developers.google.com/merchant/api/guides/data-sources/api-sources#create-primary-data-source). `feedLabel` and `contentLanguage` must be either both set or unset for data sources with product content type. They must be set for data sources with a file input. If set, the data source will only accept products matching this combination. If unset, the data source will accept products without that restriction. | ||
| */ | ||
@@ -447,3 +447,3 @@ feedLabel?: string | null; | ||
| /** | ||
| * Required. Immutable. The feed label of the offers to which the regional inventory is provided. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). See also [migration to feed labels](https://developers.google.com/shopping-content/guides/products/feed-labels). | ||
| * Required. Immutable. The feed label of the offers to which the regional inventory is provided. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). | ||
| */ | ||
@@ -461,3 +461,3 @@ feedLabel?: string | null; | ||
| /** | ||
| * Optional. Immutable. The feed label that is specified on the data source level. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). See also [migration to feed labels](https://developers.google.com/shopping-content/guides/products/feed-labels). `feedLabel` and `contentLanguage` must be either both set or unset for data sources with product content type. They must be set for data sources with a file input. The fields must be unset for data sources without file input. If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction. | ||
| * Optional. Immutable. The feed label that is specified on the data source level. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). `feedLabel` and `contentLanguage` must be either both set or unset for data sources with product content type. They must be set for data sources with a file input. The fields must be unset for data sources without file input. If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction. | ||
| */ | ||
@@ -464,0 +464,0 @@ feedLabel?: string | null; |
@@ -321,3 +321,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Required. Immutable. The feed label of the offers to which the local inventory is provided. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). See also [migration to feed labels](https://developers.google.com/shopping-content/guides/products/feed-labels). | ||
| * Required. Immutable. The feed label of the offers to which the local inventory is provided. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). | ||
| */ | ||
@@ -356,3 +356,3 @@ feedLabel?: string | null; | ||
| /** | ||
| * Optional. Immutable. The feed label that is specified on the data source level. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). See also [migration to feed labels](https://developers.google.com/shopping-content/guides/products/feed-labels). `feedLabel` and `contentLanguage` must be either both set or unset for data sources with product content type. They must be set for data sources with a file input. If set, the data source will only accept products matching this combination. If unset, the data source will accept products without that restriction. | ||
| * Optional. Immutable. The feed label that is specified on the data source level. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). For more information about feed label, see [Create a primary data source for products](https://developers.google.com/merchant/api/guides/data-sources/api-sources#create-primary-data-source). `feedLabel` and `contentLanguage` must be either both set or unset for data sources with product content type. They must be set for data sources with a file input. If set, the data source will only accept products matching this combination. If unset, the data source will accept products without that restriction. | ||
| */ | ||
@@ -447,3 +447,3 @@ feedLabel?: string | null; | ||
| /** | ||
| * Required. Immutable. The feed label of the offers to which the regional inventory is provided. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). See also [migration to feed labels](https://developers.google.com/shopping-content/guides/products/feed-labels). | ||
| * Required. Immutable. The feed label of the offers to which the regional inventory is provided. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). | ||
| */ | ||
@@ -461,3 +461,3 @@ feedLabel?: string | null; | ||
| /** | ||
| * Optional. Immutable. The feed label that is specified on the data source level. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). See also [migration to feed labels](https://developers.google.com/shopping-content/guides/products/feed-labels). `feedLabel` and `contentLanguage` must be either both set or unset for data sources with product content type. They must be set for data sources with a file input. The fields must be unset for data sources without file input. If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction. | ||
| * Optional. Immutable. The feed label that is specified on the data source level. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). `feedLabel` and `contentLanguage` must be either both set or unset for data sources with product content type. They must be set for data sources with a file input. The fields must be unset for data sources without file input. If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction. | ||
| */ | ||
@@ -464,0 +464,0 @@ feedLabel?: string | null; |
@@ -863,3 +863,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| * languageCode: 'placeholder-value', | ||
| * // Required. The name of the product. Format: `accounts/{account\}/products/{product\}` The `{product\}` segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the `{product\}` segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{product\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{product\}` segment must be the base64url encoding of this string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name for the product would be `accounts/123/products/ZW5-VVMtc2t1LzEyMw`. 2. **Plain Format**: The `{product\}` segment is the tilde-separated string `content_language~feed_label~offer_id`. This format is suitable only when `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters like `/`, `%`, or `~`. We recommend using the **Encoded Format** for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde (`~`) characters in the `{product\}` segment is used to differentiate between the two formats. Note: For calls to the v1beta version, the plain format is `channel~content_language~feed_label~offer_id`, for example: `accounts/123/products/online~en~US~sku123`. | ||
| * // Required. The name of the product. Format: `accounts/{account\}/products/{product\}` The `{product\}` segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the `{product\}` segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{product\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{product\}` segment must be the base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name for the product would be `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. 2. **Plain Format**: The `{product\}` segment is the tilde-separated string `content_language~feed_label~offer_id`. This format is suitable only when `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters like `/`, `%`, or `~`. We recommend using the **Encoded Format** for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde (`~`) characters in the `{product\}` segment is used to differentiate between the two formats. | ||
| * name: 'accounts/my-account/products/my-product', | ||
@@ -905,3 +905,3 @@ * // Optional. The [IANA](https://www.iana.org/time-zones) timezone used to localize times in an issue resolution content. For example 'America/Los_Angeles'. If not set, results will use as a default UTC. | ||
| /** | ||
| * Start an action. The action can be requested by a business in third-party application. Before the business can request the action, the third-party application needs to show them action specific content and display a user input form. Access to the `triggeraction` method is restricted to an allowlist. You can request access using [Trigger action allowlist form](https://docs.google.com/forms/d/e/1FAIpQLSfeV_sBW9MBQv9BMTV6JZ1g11PGHLdHsrefca-9h0LmpU7CUg/viewform?usp=sharing). The action can be successfully started only once all `required` inputs are provided. If any `required` input is missing, or invalid value was provided, the service will return 400 error. Validation errors will contain Ids for all problematic field together with translated, human readable error messages that can be shown to the user. | ||
| * Start an action. The action can be requested by a business in third-party application. Before the business can request the action, the third-party application needs to show them action specific content and display a user input form. Access to the `triggeraction` method is restricted to an allowlist. You can submit an allowlist request in the [Shopping API Support Form](https://support.google.com/merchants/contact/shopping_api_support_form) under "What is the issue/question?" to get access to this feature. The action can be successfully started only once all `required` inputs are provided. If any `required` input is missing, or invalid value was provided, the service will return 400 error. Validation errors will contain Ids for all problematic field together with translated, human readable error messages that can be shown to the user. | ||
| * @example | ||
@@ -1001,3 +1001,3 @@ * ```js | ||
| /** | ||
| * Required. The name of the product. Format: `accounts/{account\}/products/{product\}` The `{product\}` segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the `{product\}` segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{product\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{product\}` segment must be the base64url encoding of this string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name for the product would be `accounts/123/products/ZW5-VVMtc2t1LzEyMw`. 2. **Plain Format**: The `{product\}` segment is the tilde-separated string `content_language~feed_label~offer_id`. This format is suitable only when `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters like `/`, `%`, or `~`. We recommend using the **Encoded Format** for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde (`~`) characters in the `{product\}` segment is used to differentiate between the two formats. Note: For calls to the v1beta version, the plain format is `channel~content_language~feed_label~offer_id`, for example: `accounts/123/products/online~en~US~sku123`. | ||
| * Required. The name of the product. Format: `accounts/{account\}/products/{product\}` The `{product\}` segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the `{product\}` segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{product\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{product\}` segment must be the base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name for the product would be `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. 2. **Plain Format**: The `{product\}` segment is the tilde-separated string `content_language~feed_label~offer_id`. This format is suitable only when `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters like `/`, `%`, or `~`. We recommend using the **Encoded Format** for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde (`~`) characters in the `{product\}` segment is used to differentiate between the two formats. | ||
| */ | ||
@@ -1004,0 +1004,0 @@ name?: string; |
@@ -863,3 +863,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| * languageCode: 'placeholder-value', | ||
| * // Required. The name of the product. Format: `accounts/{account\}/products/{product\}` The `{product\}` segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the `{product\}` segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{product\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{product\}` segment must be the base64url encoding of this string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name for the product would be `accounts/123/products/ZW5-VVMtc2t1LzEyMw`. 2. **Plain Format**: The `{product\}` segment is the tilde-separated string `content_language~feed_label~offer_id`. This format is suitable only when `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters like `/`, `%`, or `~`. We recommend using the **Encoded Format** for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde (`~`) characters in the `{product\}` segment is used to differentiate between the two formats. Note: For calls to the v1beta version, the plain format is `channel~content_language~feed_label~offer_id`, for example: `accounts/123/products/online~en~US~sku123`. | ||
| * // Required. The name of the product. Format: `accounts/{account\}/products/{product\}` The `{product\}` segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the `{product\}` segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{product\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{product\}` segment must be the base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name for the product would be `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. 2. **Plain Format**: The `{product\}` segment is the tilde-separated string `content_language~feed_label~offer_id`. This format is suitable only when `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters like `/`, `%`, or `~`. We recommend using the **Encoded Format** for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde (`~`) characters in the `{product\}` segment is used to differentiate between the two formats. | ||
| * name: 'accounts/my-account/products/my-product', | ||
@@ -905,3 +905,3 @@ * // Optional. The [IANA](https://www.iana.org/time-zones) timezone used to localize times in an issue resolution content. For example 'America/Los_Angeles'. If not set, results will use as a default UTC. | ||
| /** | ||
| * Start an action. The action can be requested by a business in third-party application. Before the business can request the action, the third-party application needs to show them action specific content and display a user input form. Access to the `triggeraction` method is restricted to an allowlist. You can request access using [Trigger action allowlist form](https://docs.google.com/forms/d/e/1FAIpQLSfeV_sBW9MBQv9BMTV6JZ1g11PGHLdHsrefca-9h0LmpU7CUg/viewform?usp=sharing). The action can be successfully started only once all `required` inputs are provided. If any `required` input is missing, or invalid value was provided, the service will return 400 error. Validation errors will contain Ids for all problematic field together with translated, human readable error messages that can be shown to the user. | ||
| * Start an action. The action can be requested by a business in third-party application. Before the business can request the action, the third-party application needs to show them action specific content and display a user input form. Access to the `triggeraction` method is restricted to an allowlist. You can submit an allowlist request in the [Shopping API Support Form](https://support.google.com/merchants/contact/shopping_api_support_form) under "What is the issue/question?" to get access to this feature. The action can be successfully started only once all `required` inputs are provided. If any `required` input is missing, or invalid value was provided, the service will return 400 error. Validation errors will contain Ids for all problematic field together with translated, human readable error messages that can be shown to the user. | ||
| * @example | ||
@@ -1001,3 +1001,3 @@ * ```js | ||
| /** | ||
| * Required. The name of the product. Format: `accounts/{account\}/products/{product\}` The `{product\}` segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the `{product\}` segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{product\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{product\}` segment must be the base64url encoding of this string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name for the product would be `accounts/123/products/ZW5-VVMtc2t1LzEyMw`. 2. **Plain Format**: The `{product\}` segment is the tilde-separated string `content_language~feed_label~offer_id`. This format is suitable only when `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters like `/`, `%`, or `~`. We recommend using the **Encoded Format** for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde (`~`) characters in the `{product\}` segment is used to differentiate between the two formats. Note: For calls to the v1beta version, the plain format is `channel~content_language~feed_label~offer_id`, for example: `accounts/123/products/online~en~US~sku123`. | ||
| * Required. The name of the product. Format: `accounts/{account\}/products/{product\}` The `{product\}` segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the `{product\}` segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{product\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{product\}` segment must be the base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name for the product would be `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. 2. **Plain Format**: The `{product\}` segment is the tilde-separated string `content_language~feed_label~offer_id`. This format is suitable only when `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters like `/`, `%`, or `~`. We recommend using the **Encoded Format** for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde (`~`) characters in the `{product\}` segment is used to differentiate between the two formats. | ||
| */ | ||
@@ -1004,0 +1004,0 @@ name?: string; |
@@ -78,27 +78,39 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Optional. Product filter by [brand exclusion](https://support.google.com/merchants/answer/13861679?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC). | ||
| * Optional. This field defines the audience a promotion will be visible to. | ||
| */ | ||
| audience?: string | null; | ||
| /** | ||
| * Optional. Product filter by [brand exclusion](https://support.google.com/merchants/answer/13861679?ref_topic=13773355) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355). | ||
| */ | ||
| brandExclusion?: string[] | null; | ||
| /** | ||
| * Optional. Product filter by brand for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC). | ||
| * Optional. Product filter by brand for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355). | ||
| */ | ||
| brandInclusion?: string[] | null; | ||
| /** | ||
| * Required. The [coupon value type] (https://support.google.com/merchants/answer/13861986?ref_topic=13773355&sjid=17642868584668136159-NC) attribute to signal the type of promotion that you are running. Depending on type of the selected coupon value [some attributes are required](https://support.google.com/merchants/answer/6393006?ref_topic=7322920). | ||
| * Required. The [coupon value type] (https://support.google.com/merchants/answer/13861986?ref_topic=13773355) attribute to signal the type of promotion that you are running. Depending on type of the selected coupon value [some attributes are required](https://support.google.com/merchants/answer/6393006?ref_topic=7322920). | ||
| */ | ||
| couponValueType?: string | null; | ||
| /** | ||
| * Optional. [Free gift description](https://support.google.com/merchants/answer/13847245?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. | ||
| * Optional. The custom redemption restriction for the promotion. If the `redemption_restriction` field is set to `CUSTOM`, this field must be set. | ||
| */ | ||
| customRedemptionRestriction?: string | null; | ||
| /** | ||
| * Optional. Event applicability for this promotion. When present, this field indicates you are creating a [sales event](https://support.google.com/merchants/answer/15523289) and not a product promotion. Exactly one of `product_applicability` or `event_applicability` must be set. | ||
| */ | ||
| eventApplicability?: string | null; | ||
| /** | ||
| * Optional. [Free gift description](https://support.google.com/merchants/answer/13847245?ref_topic=13773355) for the promotion. | ||
| */ | ||
| freeGiftDescription?: string | null; | ||
| /** | ||
| * Optional. [Free gift item ID](https://support.google.com/merchants/answer/13857152?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. | ||
| * Optional. [Free gift item ID](https://support.google.com/merchants/answer/13857152?ref_topic=13773355) for the promotion. | ||
| */ | ||
| freeGiftItemId?: string | null; | ||
| /** | ||
| * Optional. [Free gift value](https://support.google.com/merchants/answer/13844477?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. | ||
| * Optional. [Free gift value](https://support.google.com/merchants/answer/13844477?ref_topic=13773355) for the promotion. | ||
| */ | ||
| freeGiftValue?: Schema$Price; | ||
| /** | ||
| * Optional. Generic redemption code for the promotion. To be used with the `offerType` field and must meet the [minimum requirements](https://support.google.com/merchants/answer/13837405?ref_topic=13773355&sjid=17642868584668136159-NC). | ||
| * Optional. Generic redemption code for the promotion. To be used with the `offerType` field and must meet the [minimum requirements](https://support.google.com/merchants/answer/13837405?ref_topic=13773355). | ||
| */ | ||
@@ -111,19 +123,23 @@ genericRedemptionCode?: string | null; | ||
| /** | ||
| * Optional. Product filter by [item group ID](https://support.google.com/merchants/answer/13837298?ref_topic=13773355&sjid=17642868584668136159-NC). The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC). exclusion for the promotion. | ||
| * Optional. A list of Google product categories for this promotion. Set if `EventApplicability` is `SPECIFIC_CATEGORIES`. Up to 5 product categories can be specified. For more details on eligible values for product categories, checkout the `google_product_category` attribute in the [Promotion data specification](https://support.google.com/merchants/answer/2906014). | ||
| */ | ||
| googleProductCategories?: string[] | null; | ||
| /** | ||
| * Optional. Product filter by [item group ID](https://support.google.com/merchants/answer/13837298?ref_topic=13773355). The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355). exclusion for the promotion. | ||
| */ | ||
| itemGroupIdExclusion?: string[] | null; | ||
| /** | ||
| * Optional. Product filter by item group ID for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability [product_applicability] attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC). | ||
| * Optional. Product filter by item group ID for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability [product_applicability] attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355). | ||
| */ | ||
| itemGroupIdInclusion?: string[] | null; | ||
| /** | ||
| * Optional. Product filter by [item ID exclusion](https://support.google.com/merchants/answer/13863524?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC). | ||
| * Optional. Product filter by [item ID exclusion](https://support.google.com/merchants/answer/13863524?ref_topic=13773355) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355). | ||
| */ | ||
| itemIdExclusion?: string[] | null; | ||
| /** | ||
| * Optional. Product filter by [item ID](https://support.google.com/merchants/answer/13861565?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC). | ||
| * Optional. Product filter by [item ID](https://support.google.com/merchants/answer/13861565?ref_topic=13773355) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355). | ||
| */ | ||
| itemIdInclusion?: string[] | null; | ||
| /** | ||
| * Optional. [Maximum purchase quantity](https://support.google.com/merchants/answer/13861564?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. | ||
| * Optional. [Maximum purchase quantity](https://support.google.com/merchants/answer/13861564?ref_topic=13773355) for the promotion. | ||
| */ | ||
@@ -136,16 +152,36 @@ limitQuantity?: string | null; | ||
| /** | ||
| * Required. [Long title](https://support.google.com/merchants/answer/13838102?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. | ||
| * Required. [Long title](https://support.google.com/merchants/answer/13838102?ref_topic=13773355) for the promotion. | ||
| */ | ||
| longTitle?: string | null; | ||
| /** | ||
| * Optional. [Minimum purchase amount](https://support.google.com/merchants/answer/13837705?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. | ||
| * Optional. The maximum monetary discount a customer can receive for the promotion. This field is only supported with the `Percent off` coupon value type. | ||
| */ | ||
| maxDiscountAmount?: Schema$Price; | ||
| /** | ||
| * Optional. Maximum money off amount for a promotion with `MONEY_OFF_RANGE` coupon value type. At least one of `min_money_off_amount` or `max_money_off_amount` must be present when the coupon value type is `MONEY_OFF_RANGE`. If neither is provided an `INVALID_PROMOTION_MISSING_BENEFIT_OR_RESTRICTION` error is returned. | ||
| */ | ||
| maxMoneyOffAmount?: Schema$Price; | ||
| /** | ||
| * Optional. Maximum percent off for a promotion with `PERCENT_OFF_RANGE` coupon value type. At least one of `min_percent_off` or `max_percent_off` must be present when the coupon value type is `PERCENT_OFF_RANGE`. If neither is provided an `INVALID_PROMOTION_MISSING_BENEFIT_OR_RESTRICTION` error is returned. | ||
| */ | ||
| maxPercentOff?: string | null; | ||
| /** | ||
| * Optional. [Minimum purchase amount](https://support.google.com/merchants/answer/13837705?ref_topic=13773355) for the promotion. | ||
| */ | ||
| minimumPurchaseAmount?: Schema$Price; | ||
| minimumPurchaseQuantity?: string | null; | ||
| /** | ||
| * Optional. The [money off amount](https://support.google.com/merchants/answer/13838101?ref_topic=13773355&sjid=17642868584668136159-NC) offered in the promotion. | ||
| * Optional. Minimum money off amount for a promotion with `MONEY_OFF_RANGE` coupon value type. At least one of `min_money_off_amount` or `max_money_off_amount` must be present when the coupon value type is `MONEY_OFF_RANGE`. If neither is provided an `INVALID_PROMOTION_MISSING_BENEFIT_OR_RESTRICTION` error is returned. | ||
| */ | ||
| minMoneyOffAmount?: Schema$Price; | ||
| /** | ||
| * Optional. Minimum percent off for a promotion with `PERCENT_OFF_RANGE` coupon value type. At least one of `min_percent_off` or `max_percent_off` must be present when the coupon value type is `PERCENT_OFF_RANGE`. If neither is provided an `INVALID_PROMOTION_MISSING_BENEFIT_OR_RESTRICTION` error is returned. | ||
| */ | ||
| minPercentOff?: string | null; | ||
| /** | ||
| * Optional. The [money off amount](https://support.google.com/merchants/answer/13838101?ref_topic=13773355) offered in the promotion. | ||
| */ | ||
| moneyOffAmount?: Schema$Price; | ||
| /** | ||
| * Required. [Type](https://support.google.com/merchants/answer/13837405?ref_topic=13773355&sjid=17642868584668136159-NC) of the promotion. Use this attribute to indicate whether or not customers need a coupon code to redeem your promotion. | ||
| * Required. [Type](https://support.google.com/merchants/answer/13837405?ref_topic=13773355) of the promotion. Use this attribute to indicate whether or not customers need a coupon code to redeem your promotion. | ||
| */ | ||
@@ -158,15 +194,15 @@ offerType?: string | null; | ||
| /** | ||
| * Required. Applicability of the promotion to either all products or [only specific products](https://support.google.com/merchants/answer/6396257?ref_topic=6396150&sjid=17642868584668136159-NC). | ||
| * Optional. Applicability of the promotion to either all products or [only specific products](https://support.google.com/merchants/answer/6396257). Exactly one of `product_applicability` or `event_applicability` must be set. | ||
| */ | ||
| productApplicability?: string | null; | ||
| /** | ||
| * Optional. Product filter by [product type exclusion](https://support.google.com/merchants/answer/13863746?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC). | ||
| * Optional. Product filter by [product type exclusion](https://support.google.com/merchants/answer/13863746?ref_topic=13773355) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355). | ||
| */ | ||
| productTypeExclusion?: string[] | null; | ||
| /** | ||
| * Optional. Product filter by product type for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC). | ||
| * Optional. Product filter by product type for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355). | ||
| */ | ||
| productTypeInclusion?: string[] | null; | ||
| /** | ||
| * Required. The list of destinations (also known as [Marketing methods](https://support.google.com/merchants/answer/15130232)) where the promotion applies to. If you don't specify a destination by including a supported value in your data source, your promotion will display in Shopping ads and free listings by default. You may have previously submitted the following values as destinations for your products: Shopping Actions, Surfaces across Google, Local surfaces across Google. To represent these values use `FREE_LISTINGS`, `FREE_LOCAL_LISTINGS`, `LOCAL_INVENTORY_ADS`. For more details see [Promotion destination](https://support.google.com/merchants/answer/13837465?sjid=5155774230887277618-NC) | ||
| * Required. The list of destinations (also known as [Marketing methods](https://support.google.com/merchants/answer/15130232)) where the promotion applies to. If you don't specify a destination by including a supported value in your data source, your promotion will display in Shopping ads and free listings by default. You may have previously submitted the following values as destinations for your products: Shopping Actions, Surfaces across Google, Local surfaces across Google. To represent these values use `FREE_LISTINGS`, `FREE_LOCAL_LISTINGS`, `LOCAL_INVENTORY_ADS`. For more details see [Promotion destination](https://support.google.com/merchants/answer/13837465) | ||
| */ | ||
@@ -187,2 +223,10 @@ promotionDestinations?: string[] | null; | ||
| /** | ||
| * Optional. A restriction customers must meet before they can redeem the promotion. | ||
| */ | ||
| redemptionRestriction?: string | null; | ||
| /** | ||
| * Optional. A list of [regions](https://support.google.com/merchants/answer/15406457?#howregionswork) where the promotion is applicable. Must be set if `audience` is set to `LOCATION`. | ||
| */ | ||
| regionIdInclusion?: string[] | null; | ||
| /** | ||
| * Optional. Whether the promotion applies to [all stores, or only specified stores](https://support.google.com/merchants/answer/13857563?sjid=17642868584668136159-NC). Local Inventory ads promotions throw an error if no store applicability is included. An `INVALID_ARGUMENT` error is thrown if `store_applicability` is set to `ALL_STORES` and `store_codes_inclusion` or `score_code_exclusion` is set to a value. | ||
@@ -192,7 +236,7 @@ */ | ||
| /** | ||
| * Optional. [Store codes to exclude](https://support.google.com/merchants/answer/13859586?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. The store filter attributes only applies when the `store_applicability` attribute is set to [specific_stores](https://support.google.com/merchants/answer/13857563?ref_topic=13773355&sjid=17642868584668136159-NC). | ||
| * Optional. [Store codes to exclude](https://support.google.com/merchants/answer/13859586?ref_topic=13773355) for the promotion. The store filter attributes only applies when the `store_applicability` attribute is set to [specific_stores](https://support.google.com/merchants/answer/13857563?ref_topic=13773355). | ||
| */ | ||
| storeCodesExclusion?: string[] | null; | ||
| /** | ||
| * Optional. [Store codes to include](https://support.google.com/merchants/answer/13857470?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. The store filter attributes only applies when the `store_applicability` attribute is set to [specific_stores](https://support.google.com/merchants/answer/13857563?ref_topic=13773355&sjid=17642868584668136159-NC). Store code (the store ID from your Business Profile) of the physical store the product is sold in. See the [Local product inventory data specification](https://support.google.com/merchants/answer/3061342) for more information. | ||
| * Optional. [Store codes to include](https://support.google.com/merchants/answer/13857470?ref_topic=13773355) for the promotion. The store filter attributes only applies when the `store_applicability` attribute is set to [specific_stores](https://support.google.com/merchants/answer/13857563?ref_topic=13773355). Store code (the store ID from your Business Profile) of the physical store the product is sold in. See the [Local product inventory data specification](https://support.google.com/merchants/answer/3061342) for more information. | ||
| */ | ||
@@ -199,0 +243,0 @@ storeCodesInclusion?: string[] | null; |
@@ -78,27 +78,39 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Optional. Product filter by [brand exclusion](https://support.google.com/merchants/answer/13861679?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC). | ||
| * Optional. This field defines the audience a promotion will be visible to. | ||
| */ | ||
| audience?: string | null; | ||
| /** | ||
| * Optional. Product filter by [brand exclusion](https://support.google.com/merchants/answer/13861679?ref_topic=13773355) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355). | ||
| */ | ||
| brandExclusion?: string[] | null; | ||
| /** | ||
| * Optional. Product filter by brand for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC). | ||
| * Optional. Product filter by brand for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355). | ||
| */ | ||
| brandInclusion?: string[] | null; | ||
| /** | ||
| * Required. The [coupon value type] (https://support.google.com/merchants/answer/13861986?ref_topic=13773355&sjid=17642868584668136159-NC) attribute to signal the type of promotion that you are running. Depending on type of the selected coupon value [some attributes are required](https://support.google.com/merchants/answer/6393006?ref_topic=7322920). | ||
| * Required. The [coupon value type] (https://support.google.com/merchants/answer/13861986?ref_topic=13773355) attribute to signal the type of promotion that you are running. Depending on type of the selected coupon value [some attributes are required](https://support.google.com/merchants/answer/6393006?ref_topic=7322920). | ||
| */ | ||
| couponValueType?: string | null; | ||
| /** | ||
| * Optional. [Free gift description](https://support.google.com/merchants/answer/13847245?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. | ||
| * Optional. The custom redemption restriction for the promotion. If the `redemption_restriction` field is set to `CUSTOM`, this field must be set. | ||
| */ | ||
| customRedemptionRestriction?: string | null; | ||
| /** | ||
| * Optional. Event applicability for this promotion. When present, this field indicates you are creating a [sales event](https://support.google.com/merchants/answer/15523289) and not a product promotion. Exactly one of `product_applicability` or `event_applicability` must be set. | ||
| */ | ||
| eventApplicability?: string | null; | ||
| /** | ||
| * Optional. [Free gift description](https://support.google.com/merchants/answer/13847245?ref_topic=13773355) for the promotion. | ||
| */ | ||
| freeGiftDescription?: string | null; | ||
| /** | ||
| * Optional. [Free gift item ID](https://support.google.com/merchants/answer/13857152?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. | ||
| * Optional. [Free gift item ID](https://support.google.com/merchants/answer/13857152?ref_topic=13773355) for the promotion. | ||
| */ | ||
| freeGiftItemId?: string | null; | ||
| /** | ||
| * Optional. [Free gift value](https://support.google.com/merchants/answer/13844477?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. | ||
| * Optional. [Free gift value](https://support.google.com/merchants/answer/13844477?ref_topic=13773355) for the promotion. | ||
| */ | ||
| freeGiftValue?: Schema$Price; | ||
| /** | ||
| * Optional. Generic redemption code for the promotion. To be used with the `offerType` field and must meet the [minimum requirements](https://support.google.com/merchants/answer/13837405?ref_topic=13773355&sjid=17642868584668136159-NC). | ||
| * Optional. Generic redemption code for the promotion. To be used with the `offerType` field and must meet the [minimum requirements](https://support.google.com/merchants/answer/13837405?ref_topic=13773355). | ||
| */ | ||
@@ -111,19 +123,23 @@ genericRedemptionCode?: string | null; | ||
| /** | ||
| * Optional. Product filter by [item group ID](https://support.google.com/merchants/answer/13837298?ref_topic=13773355&sjid=17642868584668136159-NC). The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC). exclusion for the promotion. | ||
| * Optional. A list of Google product categories for this promotion. Set if `EventApplicability` is `SPECIFIC_CATEGORIES`. Up to 5 product categories can be specified. For more details on eligible values for product categories, checkout the `google_product_category` attribute in the [Promotion data specification](https://support.google.com/merchants/answer/2906014). | ||
| */ | ||
| googleProductCategories?: string[] | null; | ||
| /** | ||
| * Optional. Product filter by [item group ID](https://support.google.com/merchants/answer/13837298?ref_topic=13773355). The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355). exclusion for the promotion. | ||
| */ | ||
| itemGroupIdExclusion?: string[] | null; | ||
| /** | ||
| * Optional. Product filter by item group ID for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability [product_applicability] attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC). | ||
| * Optional. Product filter by item group ID for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability [product_applicability] attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355). | ||
| */ | ||
| itemGroupIdInclusion?: string[] | null; | ||
| /** | ||
| * Optional. Product filter by [item ID exclusion](https://support.google.com/merchants/answer/13863524?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC). | ||
| * Optional. Product filter by [item ID exclusion](https://support.google.com/merchants/answer/13863524?ref_topic=13773355) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355). | ||
| */ | ||
| itemIdExclusion?: string[] | null; | ||
| /** | ||
| * Optional. Product filter by [item ID](https://support.google.com/merchants/answer/13861565?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC). | ||
| * Optional. Product filter by [item ID](https://support.google.com/merchants/answer/13861565?ref_topic=13773355) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355). | ||
| */ | ||
| itemIdInclusion?: string[] | null; | ||
| /** | ||
| * Optional. [Maximum purchase quantity](https://support.google.com/merchants/answer/13861564?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. | ||
| * Optional. [Maximum purchase quantity](https://support.google.com/merchants/answer/13861564?ref_topic=13773355) for the promotion. | ||
| */ | ||
@@ -136,16 +152,36 @@ limitQuantity?: string | null; | ||
| /** | ||
| * Required. [Long title](https://support.google.com/merchants/answer/13838102?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. | ||
| * Required. [Long title](https://support.google.com/merchants/answer/13838102?ref_topic=13773355) for the promotion. | ||
| */ | ||
| longTitle?: string | null; | ||
| /** | ||
| * Optional. [Minimum purchase amount](https://support.google.com/merchants/answer/13837705?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. | ||
| * Optional. The maximum monetary discount a customer can receive for the promotion. This field is only supported with the `Percent off` coupon value type. | ||
| */ | ||
| maxDiscountAmount?: Schema$Price; | ||
| /** | ||
| * Optional. Maximum money off amount for a promotion with `MONEY_OFF_RANGE` coupon value type. At least one of `min_money_off_amount` or `max_money_off_amount` must be present when the coupon value type is `MONEY_OFF_RANGE`. If neither is provided an `INVALID_PROMOTION_MISSING_BENEFIT_OR_RESTRICTION` error is returned. | ||
| */ | ||
| maxMoneyOffAmount?: Schema$Price; | ||
| /** | ||
| * Optional. Maximum percent off for a promotion with `PERCENT_OFF_RANGE` coupon value type. At least one of `min_percent_off` or `max_percent_off` must be present when the coupon value type is `PERCENT_OFF_RANGE`. If neither is provided an `INVALID_PROMOTION_MISSING_BENEFIT_OR_RESTRICTION` error is returned. | ||
| */ | ||
| maxPercentOff?: string | null; | ||
| /** | ||
| * Optional. [Minimum purchase amount](https://support.google.com/merchants/answer/13837705?ref_topic=13773355) for the promotion. | ||
| */ | ||
| minimumPurchaseAmount?: Schema$Price; | ||
| minimumPurchaseQuantity?: string | null; | ||
| /** | ||
| * Optional. The [money off amount](https://support.google.com/merchants/answer/13838101?ref_topic=13773355&sjid=17642868584668136159-NC) offered in the promotion. | ||
| * Optional. Minimum money off amount for a promotion with `MONEY_OFF_RANGE` coupon value type. At least one of `min_money_off_amount` or `max_money_off_amount` must be present when the coupon value type is `MONEY_OFF_RANGE`. If neither is provided an `INVALID_PROMOTION_MISSING_BENEFIT_OR_RESTRICTION` error is returned. | ||
| */ | ||
| minMoneyOffAmount?: Schema$Price; | ||
| /** | ||
| * Optional. Minimum percent off for a promotion with `PERCENT_OFF_RANGE` coupon value type. At least one of `min_percent_off` or `max_percent_off` must be present when the coupon value type is `PERCENT_OFF_RANGE`. If neither is provided an `INVALID_PROMOTION_MISSING_BENEFIT_OR_RESTRICTION` error is returned. | ||
| */ | ||
| minPercentOff?: string | null; | ||
| /** | ||
| * Optional. The [money off amount](https://support.google.com/merchants/answer/13838101?ref_topic=13773355) offered in the promotion. | ||
| */ | ||
| moneyOffAmount?: Schema$Price; | ||
| /** | ||
| * Required. [Type](https://support.google.com/merchants/answer/13837405?ref_topic=13773355&sjid=17642868584668136159-NC) of the promotion. Use this attribute to indicate whether or not customers need a coupon code to redeem your promotion. | ||
| * Required. [Type](https://support.google.com/merchants/answer/13837405?ref_topic=13773355) of the promotion. Use this attribute to indicate whether or not customers need a coupon code to redeem your promotion. | ||
| */ | ||
@@ -158,15 +194,15 @@ offerType?: string | null; | ||
| /** | ||
| * Required. Applicability of the promotion to either all products or [only specific products](https://support.google.com/merchants/answer/6396257?ref_topic=6396150&sjid=17642868584668136159-NC). | ||
| * Optional. Applicability of the promotion to either all products or [only specific products](https://support.google.com/merchants/answer/6396257). Exactly one of `product_applicability` or `event_applicability` must be set. | ||
| */ | ||
| productApplicability?: string | null; | ||
| /** | ||
| * Optional. Product filter by [product type exclusion](https://support.google.com/merchants/answer/13863746?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC). | ||
| * Optional. Product filter by [product type exclusion](https://support.google.com/merchants/answer/13863746?ref_topic=13773355) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355). | ||
| */ | ||
| productTypeExclusion?: string[] | null; | ||
| /** | ||
| * Optional. Product filter by product type for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC). | ||
| * Optional. Product filter by product type for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355). | ||
| */ | ||
| productTypeInclusion?: string[] | null; | ||
| /** | ||
| * Required. The list of destinations (also known as [Marketing methods](https://support.google.com/merchants/answer/15130232)) where the promotion applies to. If you don't specify a destination by including a supported value in your data source, your promotion will display in Shopping ads and free listings by default. You may have previously submitted the following values as destinations for your products: Shopping Actions, Surfaces across Google, Local surfaces across Google. To represent these values use `FREE_LISTINGS`, `FREE_LOCAL_LISTINGS`, `LOCAL_INVENTORY_ADS`. For more details see [Promotion destination](https://support.google.com/merchants/answer/13837465?sjid=5155774230887277618-NC) | ||
| * Required. The list of destinations (also known as [Marketing methods](https://support.google.com/merchants/answer/15130232)) where the promotion applies to. If you don't specify a destination by including a supported value in your data source, your promotion will display in Shopping ads and free listings by default. You may have previously submitted the following values as destinations for your products: Shopping Actions, Surfaces across Google, Local surfaces across Google. To represent these values use `FREE_LISTINGS`, `FREE_LOCAL_LISTINGS`, `LOCAL_INVENTORY_ADS`. For more details see [Promotion destination](https://support.google.com/merchants/answer/13837465) | ||
| */ | ||
@@ -187,2 +223,10 @@ promotionDestinations?: string[] | null; | ||
| /** | ||
| * Optional. A restriction customers must meet before they can redeem the promotion. | ||
| */ | ||
| redemptionRestriction?: string | null; | ||
| /** | ||
| * Optional. A list of [regions](https://support.google.com/merchants/answer/15406457?#howregionswork) where the promotion is applicable. Must be set if `audience` is set to `LOCATION`. | ||
| */ | ||
| regionIdInclusion?: string[] | null; | ||
| /** | ||
| * Optional. Whether the promotion applies to [all stores, or only specified stores](https://support.google.com/merchants/answer/13857563?sjid=17642868584668136159-NC). Local Inventory ads promotions throw an error if no store applicability is included. An `INVALID_ARGUMENT` error is thrown if `store_applicability` is set to `ALL_STORES` and `store_codes_inclusion` or `score_code_exclusion` is set to a value. | ||
@@ -192,7 +236,7 @@ */ | ||
| /** | ||
| * Optional. [Store codes to exclude](https://support.google.com/merchants/answer/13859586?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. The store filter attributes only applies when the `store_applicability` attribute is set to [specific_stores](https://support.google.com/merchants/answer/13857563?ref_topic=13773355&sjid=17642868584668136159-NC). | ||
| * Optional. [Store codes to exclude](https://support.google.com/merchants/answer/13859586?ref_topic=13773355) for the promotion. The store filter attributes only applies when the `store_applicability` attribute is set to [specific_stores](https://support.google.com/merchants/answer/13857563?ref_topic=13773355). | ||
| */ | ||
| storeCodesExclusion?: string[] | null; | ||
| /** | ||
| * Optional. [Store codes to include](https://support.google.com/merchants/answer/13857470?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. The store filter attributes only applies when the `store_applicability` attribute is set to [specific_stores](https://support.google.com/merchants/answer/13857563?ref_topic=13773355&sjid=17642868584668136159-NC). Store code (the store ID from your Business Profile) of the physical store the product is sold in. See the [Local product inventory data specification](https://support.google.com/merchants/answer/3061342) for more information. | ||
| * Optional. [Store codes to include](https://support.google.com/merchants/answer/13857470?ref_topic=13773355) for the promotion. The store filter attributes only applies when the `store_applicability` attribute is set to [specific_stores](https://support.google.com/merchants/answer/13857563?ref_topic=13773355). Store code (the store ID from your Business Profile) of the physical store the product is sold in. See the [Local product inventory data specification](https://support.google.com/merchants/answer/3061342) for more information. | ||
| */ | ||
@@ -199,0 +243,0 @@ storeCodesInclusion?: string[] | null; |
@@ -378,7 +378,7 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Aggregated severity of the issue for all reporting contexts it affects. **This field can be used for filtering the results.** | ||
| * Aggregated severity of the issue for all reporting contexts it affects. Reporting contexts included in the computation of the aggregated severity can be restricted using a filter on the `reporting_context` field. **This field can be used for filtering the results.** | ||
| */ | ||
| aggregatedSeverity?: string | null; | ||
| /** | ||
| * Issue severity per reporting context. | ||
| * Issue severity per reporting context. Reporting contexts included in this list can be restricted using a filter on the `reporting_context` field. | ||
| */ | ||
@@ -726,2 +726,6 @@ severityPerReportingContext?: Schema$IssueSeverityPerReportingContext[]; | ||
| /** | ||
| * Store type to which metrics apply. Can be `ONLINE_STORE` or `LOCAL_STORES`. Segment. For `LOCAL_STORES` store type, further segmentation by a specific store is not available. | ||
| */ | ||
| storeType?: string | null; | ||
| /** | ||
| * Title of the product. Segment. | ||
@@ -777,7 +781,7 @@ */ | ||
| /** | ||
| * Fields available for query in `product_view` table. Products in the current inventory. Products in this table are the same as in Products sub-API but not all product attributes from Products sub-API are available for query in this table. In contrast to Products sub-API, this table allows to filter the returned list of products by product attributes. To retrieve a single product by `id` or list all products, Products sub-API should be used. Values are only set for fields requested explicitly in the request's search query. | ||
| * Fields available for query in `product_view` table. Products in the current inventory. Products in this table are the same as a [Product resource in Products sub-API](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products) but not all product attributes from Products sub-API are available for query in this table. In contrast to Products sub-API, this table allows to filter the returned list of products by product attributes. To retrieve a single product by `id` or list all products, Products sub-API should be used. Values are only set for fields requested explicitly in the request's search query. | ||
| */ | ||
| export interface Schema$ProductView { | ||
| /** | ||
| * Aggregated status. | ||
| * Aggregated status across all reporting contexts. Reporting contexts included in the computation of the aggregated status can be restricted using a filter on the `reporting_context` field. | ||
| */ | ||
@@ -890,2 +894,6 @@ aggregatedReportingContextStatus?: string | null; | ||
| /** | ||
| * Reporting context to restrict the query to. Restricts the reporting contexts returned in `status_per_reporting_context` and `item_issues`, and used to compute `aggregated_reporting_context_status`. **This field can only be used in the `WHERE` clause and cannot be selected in the `SELECT` clause.** | ||
| */ | ||
| reportingContext?: string | null; | ||
| /** | ||
| * Normalized [shipping label](https://support.google.com/merchants/answer/6324504) specified in the data source. | ||
@@ -895,2 +903,6 @@ */ | ||
| /** | ||
| * Detailed product status per reporting context. Reporting contexts included in this list can be restricted using a filter on the `reporting_context` field. Equivalent to `ProductStatus.destination_statuses` in Products API. **This field cannot be used for sorting or filtering the results.** | ||
| */ | ||
| statusPerReportingContext?: Schema$StatusPerReportingContext[]; | ||
| /** | ||
| * Link to the processed image of the product, hosted on the Google infrastructure. | ||
@@ -954,3 +966,3 @@ */ | ||
| /** | ||
| * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to 1000. Values above 5000 are coerced to 5000. | ||
| * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to 1000. Values above 100,000 are coerced to 100,000. | ||
| */ | ||
@@ -963,3 +975,3 @@ pageSize?: number | null; | ||
| /** | ||
| * Required. Query that defines a report to be retrieved. For details on how to construct your query, see the [Query Language guide](/merchant/api/guides/reports/query-language). For the full list of available tables and fields, see the [Available fields](/merchant/api/reference/rest/reports_{api_version\}/accounts.reports). | ||
| * Required. Query that defines a report to be retrieved. For details on how to construct your query, see the [Query Language guide](/merchant/api/guides/reports/query-language). For the full list of available tables and fields, see the Available fields. | ||
| */ | ||
@@ -981,2 +993,23 @@ query?: string | null; | ||
| } | ||
| /** | ||
| * Status of the product for a specific reporting context. Equivalent to `DestinationStatus` in Products API. | ||
| */ | ||
| export interface Schema$StatusPerReportingContext { | ||
| /** | ||
| * List of approved countries in the reporting context, represented in [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for example, `US`. | ||
| */ | ||
| approvedCountries?: string[] | null; | ||
| /** | ||
| * List of disapproved countries in the reporting context, represented in [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for example, `US`. | ||
| */ | ||
| disapprovedCountries?: string[] | null; | ||
| /** | ||
| * List of pending countries in the reporting context, represented in [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for example, `US`. | ||
| */ | ||
| pendingCountries?: string[] | null; | ||
| /** | ||
| * Reporting context the status applies to. | ||
| */ | ||
| reportingContext?: string | null; | ||
| } | ||
| export class Resource$Accounts { | ||
@@ -983,0 +1016,0 @@ context: APIRequestContext; |
@@ -378,7 +378,7 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Aggregated severity of the issue for all reporting contexts it affects. **This field can be used for filtering the results.** | ||
| * Aggregated severity of the issue for all reporting contexts it affects. Reporting contexts included in the computation of the aggregated severity can be restricted using a filter on the `reporting_context` field. **This field can be used for filtering the results.** | ||
| */ | ||
| aggregatedSeverity?: string | null; | ||
| /** | ||
| * Issue severity per reporting context. | ||
| * Issue severity per reporting context. Reporting contexts included in this list can be restricted using a filter on the `reporting_context` field. | ||
| */ | ||
@@ -726,2 +726,6 @@ severityPerReportingContext?: Schema$IssueSeverityPerReportingContext[]; | ||
| /** | ||
| * Store type to which metrics apply. Can be `ONLINE_STORE` or `LOCAL_STORES`. Segment. For `LOCAL_STORES` store type, further segmentation by a specific store is not available. | ||
| */ | ||
| storeType?: string | null; | ||
| /** | ||
| * Title of the product. Segment. | ||
@@ -777,7 +781,7 @@ */ | ||
| /** | ||
| * Fields available for query in `product_view` table. Products in the current inventory. Products in this table are the same as in Products sub-API but not all product attributes from Products sub-API are available for query in this table. In contrast to Products sub-API, this table allows to filter the returned list of products by product attributes. To retrieve a single product by `id` or list all products, Products sub-API should be used. Values are only set for fields requested explicitly in the request's search query. | ||
| * Fields available for query in `product_view` table. Products in the current inventory. Products in this table are the same as a [Product resource in Products sub-API](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products) but not all product attributes from Products sub-API are available for query in this table. In contrast to Products sub-API, this table allows to filter the returned list of products by product attributes. To retrieve a single product by `id` or list all products, Products sub-API should be used. Values are only set for fields requested explicitly in the request's search query. | ||
| */ | ||
| export interface Schema$ProductView { | ||
| /** | ||
| * Aggregated status. | ||
| * Aggregated status across all reporting contexts. Reporting contexts included in the computation of the aggregated status can be restricted using a filter on the `reporting_context` field. | ||
| */ | ||
@@ -890,2 +894,6 @@ aggregatedReportingContextStatus?: string | null; | ||
| /** | ||
| * Reporting context to restrict the query to. Restricts the reporting contexts returned in `status_per_reporting_context` and `item_issues`, and used to compute `aggregated_reporting_context_status`. **This field can only be used in the `WHERE` clause and cannot be selected in the `SELECT` clause.** | ||
| */ | ||
| reportingContext?: string | null; | ||
| /** | ||
| * Normalized [shipping label](https://support.google.com/merchants/answer/6324504) specified in the data source. | ||
@@ -895,2 +903,6 @@ */ | ||
| /** | ||
| * Detailed product status per reporting context. Reporting contexts included in this list can be restricted using a filter on the `reporting_context` field. Equivalent to `ProductStatus.destination_statuses` in Products API. **This field cannot be used for sorting or filtering the results.** | ||
| */ | ||
| statusPerReportingContext?: Schema$StatusPerReportingContext[]; | ||
| /** | ||
| * Link to the processed image of the product, hosted on the Google infrastructure. | ||
@@ -954,3 +966,3 @@ */ | ||
| /** | ||
| * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to 1000. Values above 5000 are coerced to 5000. | ||
| * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to 1000. Values above 100,000 are coerced to 100,000. | ||
| */ | ||
@@ -963,3 +975,3 @@ pageSize?: number | null; | ||
| /** | ||
| * Required. Query that defines a report to be retrieved. For details on how to construct your query, see the [Query Language guide](/merchant/api/guides/reports/query-language). For the full list of available tables and fields, see the [Available fields](/merchant/api/reference/rest/reports_{api_version\}/accounts.reports). | ||
| * Required. Query that defines a report to be retrieved. For details on how to construct your query, see the [Query Language guide](/merchant/api/guides/reports/query-language). For the full list of available tables and fields, see the Available fields. | ||
| */ | ||
@@ -981,2 +993,23 @@ query?: string | null; | ||
| } | ||
| /** | ||
| * Status of the product for a specific reporting context. Equivalent to `DestinationStatus` in Products API. | ||
| */ | ||
| export interface Schema$StatusPerReportingContext { | ||
| /** | ||
| * List of approved countries in the reporting context, represented in [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for example, `US`. | ||
| */ | ||
| approvedCountries?: string[] | null; | ||
| /** | ||
| * List of disapproved countries in the reporting context, represented in [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for example, `US`. | ||
| */ | ||
| disapprovedCountries?: string[] | null; | ||
| /** | ||
| * List of pending countries in the reporting context, represented in [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for example, `US`. | ||
| */ | ||
| pendingCountries?: string[] | null; | ||
| /** | ||
| * Reporting context the status applies to. | ||
| */ | ||
| reportingContext?: string | null; | ||
| } | ||
| export class Resource$Accounts { | ||
@@ -983,0 +1016,0 @@ context: APIRequestContext; |
@@ -99,2 +99,34 @@ "use strict"; | ||
| } | ||
| getSettings(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://observability.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) { | ||
@@ -132,2 +164,34 @@ let params = (paramsOrCallback || | ||
| } | ||
| updateSettings(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://observability.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
@@ -318,2 +382,34 @@ observability_v1.Resource$Folders$Locations = Resource$Folders$Locations; | ||
| } | ||
| getSettings(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://observability.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) { | ||
@@ -351,2 +447,34 @@ let params = (paramsOrCallback || | ||
| } | ||
| updateSettings(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://observability.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
@@ -545,2 +673,34 @@ observability_v1.Resource$Organizations$Locations = Resource$Organizations$Locations; | ||
| } | ||
| getSettings(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://observability.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) { | ||
@@ -578,2 +738,34 @@ let params = (paramsOrCallback || | ||
| } | ||
| updateSettings(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://observability.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
@@ -580,0 +772,0 @@ observability_v1.Resource$Projects$Locations = Resource$Projects$Locations; |
@@ -64,3 +64,2 @@ "use strict"; | ||
| instances; | ||
| operations; | ||
| osPolicyAssignments; | ||
@@ -71,3 +70,2 @@ constructor(context) { | ||
| this.instances = new Resource$Projects$Locations$Instances(this.context); | ||
| this.operations = new Resource$Projects$Locations$Operations(this.context); | ||
| this.osPolicyAssignments = | ||
@@ -395,137 +393,2 @@ new Resource$Projects$Locations$Ospolicyassignments(this.context); | ||
| osconfig_v1.Resource$Projects$Locations$Instances$Vulnerabilityreports = Resource$Projects$Locations$Instances$Vulnerabilityreports; | ||
| class Resource$Projects$Locations$Operations { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| cancel(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://osconfig.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://osconfig.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://osconfig.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://osconfig.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}/operations').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); | ||
| } | ||
| } | ||
| } | ||
| osconfig_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; | ||
| class Resource$Projects$Locations$Ospolicyassignments { | ||
@@ -532,0 +395,0 @@ context; |
@@ -60,3 +60,2 @@ "use strict"; | ||
| instances; | ||
| operations; | ||
| osPolicyAssignments; | ||
@@ -68,3 +67,2 @@ constructor(context) { | ||
| this.instances = new Resource$Projects$Locations$Instances(this.context); | ||
| this.operations = new Resource$Projects$Locations$Operations(this.context); | ||
| this.osPolicyAssignments = | ||
@@ -392,137 +390,2 @@ new Resource$Projects$Locations$Ospolicyassignments(this.context); | ||
| osconfig_v1alpha.Resource$Projects$Locations$Instances$Vulnerabilityreports = Resource$Projects$Locations$Instances$Vulnerabilityreports; | ||
| class Resource$Projects$Locations$Operations { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| cancel(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://osconfig.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://osconfig.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://osconfig.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+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://osconfig.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1alpha/{+name}/operations').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); | ||
| } | ||
| } | ||
| } | ||
| osconfig_v1alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; | ||
| class Resource$Projects$Locations$Ospolicyassignments { | ||
@@ -529,0 +392,0 @@ context; |
@@ -58,2 +58,3 @@ "use strict"; | ||
| context; | ||
| aclPolicies; | ||
| backupCollections; | ||
@@ -65,2 +66,3 @@ clusters; | ||
| this.context = context; | ||
| this.aclPolicies = new Resource$Projects$Locations$Aclpolicies(this.context); | ||
| this.backupCollections = | ||
@@ -104,2 +106,35 @@ new Resource$Projects$Locations$Backupcollections(this.context); | ||
| } | ||
| getSharedRegionalCertificateAuthority(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://redis.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) { | ||
@@ -139,2 +174,169 @@ let params = (paramsOrCallback || | ||
| redis_v1.Resource$Projects$Locations = Resource$Projects$Locations; | ||
| class Resource$Projects$Locations$Aclpolicies { | ||
| context; | ||
| constructor(context) { | ||
| this.context = 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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/aclPolicies').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://redis.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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/aclPolicies').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); | ||
| } | ||
| } | ||
| 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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| redis_v1.Resource$Projects$Locations$Aclpolicies = Resource$Projects$Locations$Aclpolicies; | ||
| class Resource$Projects$Locations$Backupcollections { | ||
@@ -355,5 +557,41 @@ context; | ||
| context; | ||
| tokenAuthUsers; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.tokenAuthUsers = | ||
| new Resource$Projects$Locations$Clusters$Tokenauthusers(this.context); | ||
| } | ||
| addTokenAuthUser(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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+cluster}:addTokenAuthUser').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: ['cluster'], | ||
| pathParams: ['cluster'], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| backup(paramsOrCallback, optionsOrCallback, callback) { | ||
@@ -619,2 +857,250 @@ let params = (paramsOrCallback || | ||
| redis_v1.Resource$Projects$Locations$Clusters = Resource$Projects$Locations$Clusters; | ||
| class Resource$Projects$Locations$Clusters$Tokenauthusers { | ||
| context; | ||
| authTokens; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.authTokens = | ||
| new Resource$Projects$Locations$Clusters$Tokenauthusers$Authtokens(this.context); | ||
| } | ||
| addAuthToken(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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+tokenAuthUser}:addAuthToken').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: ['tokenAuthUser'], | ||
| pathParams: ['tokenAuthUser'], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, 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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://redis.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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/tokenAuthUsers').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); | ||
| } | ||
| } | ||
| } | ||
| redis_v1.Resource$Projects$Locations$Clusters$Tokenauthusers = Resource$Projects$Locations$Clusters$Tokenauthusers; | ||
| class Resource$Projects$Locations$Clusters$Tokenauthusers$Authtokens { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| 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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://redis.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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/authTokens').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); | ||
| } | ||
| } | ||
| } | ||
| redis_v1.Resource$Projects$Locations$Clusters$Tokenauthusers$Authtokens = Resource$Projects$Locations$Clusters$Tokenauthusers$Authtokens; | ||
| class Resource$Projects$Locations$Instances { | ||
@@ -621,0 +1107,0 @@ context; |
@@ -58,2 +58,3 @@ "use strict"; | ||
| context; | ||
| aclPolicies; | ||
| backupCollections; | ||
@@ -65,2 +66,3 @@ clusters; | ||
| this.context = context; | ||
| this.aclPolicies = new Resource$Projects$Locations$Aclpolicies(this.context); | ||
| this.backupCollections = | ||
@@ -104,2 +106,35 @@ new Resource$Projects$Locations$Backupcollections(this.context); | ||
| } | ||
| getSharedRegionalCertificateAuthority(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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta1/{+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) { | ||
@@ -139,2 +174,169 @@ let params = (paramsOrCallback || | ||
| redis_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; | ||
| class Resource$Projects$Locations$Aclpolicies { | ||
| context; | ||
| constructor(context) { | ||
| this.context = 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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta1/{+parent}/aclPolicies').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta1/{+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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta1/{+parent}/aclPolicies').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); | ||
| } | ||
| } | ||
| 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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'PATCH', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| redis_v1beta1.Resource$Projects$Locations$Aclpolicies = Resource$Projects$Locations$Aclpolicies; | ||
| class Resource$Projects$Locations$Backupcollections { | ||
@@ -355,5 +557,41 @@ context; | ||
| context; | ||
| tokenAuthUsers; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.tokenAuthUsers = | ||
| new Resource$Projects$Locations$Clusters$Tokenauthusers(this.context); | ||
| } | ||
| addTokenAuthUser(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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta1/{+cluster}:addTokenAuthUser').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: ['cluster'], | ||
| pathParams: ['cluster'], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| backup(paramsOrCallback, optionsOrCallback, callback) { | ||
@@ -619,2 +857,250 @@ let params = (paramsOrCallback || | ||
| redis_v1beta1.Resource$Projects$Locations$Clusters = Resource$Projects$Locations$Clusters; | ||
| class Resource$Projects$Locations$Clusters$Tokenauthusers { | ||
| context; | ||
| authTokens; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.authTokens = | ||
| new Resource$Projects$Locations$Clusters$Tokenauthusers$Authtokens(this.context); | ||
| } | ||
| addAuthToken(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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta1/{+tokenAuthUser}:addAuthToken').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: ['tokenAuthUser'], | ||
| pathParams: ['tokenAuthUser'], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, 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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta1/{+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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta1/{+parent}/tokenAuthUsers').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); | ||
| } | ||
| } | ||
| } | ||
| redis_v1beta1.Resource$Projects$Locations$Clusters$Tokenauthusers = Resource$Projects$Locations$Clusters$Tokenauthusers; | ||
| class Resource$Projects$Locations$Clusters$Tokenauthusers$Authtokens { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| 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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta1/{+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://redis.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta1/{+parent}/authTokens').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); | ||
| } | ||
| } | ||
| } | ||
| redis_v1beta1.Resource$Projects$Locations$Clusters$Tokenauthusers$Authtokens = Resource$Projects$Locations$Clusters$Tokenauthusers$Authtokens; | ||
| class Resource$Projects$Locations$Instances { | ||
@@ -621,0 +1107,0 @@ context; |
| /*! THIS FILE IS AUTO-GENERATED */ | ||
| import { AuthPlus } from 'googleapis-common'; | ||
| import { saasservicemgmt_v1 } from './v1'; | ||
| import { saasservicemgmt_v1beta1 } from './v1beta1'; | ||
| export declare const VERSIONS: { | ||
| v1: typeof saasservicemgmt_v1.Saasservicemgmt; | ||
| v1beta1: typeof saasservicemgmt_v1beta1.Saasservicemgmt; | ||
| }; | ||
| export declare function saasservicemgmt(version: 'v1'): saasservicemgmt_v1.Saasservicemgmt; | ||
| export declare function saasservicemgmt(options: saasservicemgmt_v1.Options): saasservicemgmt_v1.Saasservicemgmt; | ||
| export declare function saasservicemgmt(version: 'v1beta1'): saasservicemgmt_v1beta1.Saasservicemgmt; | ||
@@ -11,3 +15,4 @@ export declare function saasservicemgmt(options: saasservicemgmt_v1beta1.Options): saasservicemgmt_v1beta1.Saasservicemgmt; | ||
| export { auth }; | ||
| export { saasservicemgmt_v1 }; | ||
| export { saasservicemgmt_v1beta1 }; | ||
| export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, MethodOptions, BodyResponseCallback, } from 'googleapis-common'; |
@@ -15,9 +15,12 @@ "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.AuthPlus = exports.saasservicemgmt_v1beta1 = exports.auth = exports.VERSIONS = void 0; | ||
| exports.AuthPlus = exports.saasservicemgmt_v1beta1 = exports.saasservicemgmt_v1 = exports.auth = exports.VERSIONS = void 0; | ||
| exports.saasservicemgmt = saasservicemgmt; | ||
| /*! THIS FILE IS AUTO-GENERATED */ | ||
| const googleapis_common_1 = require("googleapis-common"); | ||
| const v1_1 = require("./v1"); | ||
| Object.defineProperty(exports, "saasservicemgmt_v1", { enumerable: true, get: function () { return v1_1.saasservicemgmt_v1; } }); | ||
| const v1beta1_1 = require("./v1beta1"); | ||
| Object.defineProperty(exports, "saasservicemgmt_v1beta1", { enumerable: true, get: function () { return v1beta1_1.saasservicemgmt_v1beta1; } }); | ||
| exports.VERSIONS = { | ||
| v1: v1_1.saasservicemgmt_v1.Saasservicemgmt, | ||
| v1beta1: v1beta1_1.saasservicemgmt_v1beta1.Saasservicemgmt, | ||
@@ -24,0 +27,0 @@ }; |
@@ -60,7 +60,5 @@ "use strict"; | ||
| context; | ||
| operations; | ||
| secrets; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.operations = new Resource$Projects$Locations$Operations(this.context); | ||
| this.secrets = new Resource$Projects$Locations$Secrets(this.context); | ||
@@ -134,137 +132,2 @@ } | ||
| secretmanager_v1.Resource$Projects$Locations = Resource$Projects$Locations; | ||
| class Resource$Projects$Locations$Operations { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| cancel(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://secretmanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://secretmanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://secretmanager.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://secretmanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}/operations').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); | ||
| } | ||
| } | ||
| } | ||
| secretmanager_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; | ||
| class Resource$Projects$Locations$Secrets { | ||
@@ -271,0 +134,0 @@ context; |
@@ -60,6 +60,4 @@ "use strict"; | ||
| context; | ||
| operations; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.operations = new Resource$Projects$Locations$Operations(this.context); | ||
| } | ||
@@ -132,137 +130,2 @@ get(paramsOrCallback, optionsOrCallback, callback) { | ||
| secretmanager_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; | ||
| class Resource$Projects$Locations$Operations { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| cancel(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://secretmanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://secretmanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://secretmanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta1/{+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://secretmanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta1/{+name}/operations').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); | ||
| } | ||
| } | ||
| } | ||
| secretmanager_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; | ||
| class Resource$Projects$Secrets { | ||
@@ -269,0 +132,0 @@ context; |
@@ -60,7 +60,5 @@ "use strict"; | ||
| context; | ||
| operations; | ||
| secrets; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.operations = new Resource$Projects$Locations$Operations(this.context); | ||
| this.secrets = new Resource$Projects$Locations$Secrets(this.context); | ||
@@ -134,137 +132,2 @@ } | ||
| secretmanager_v1beta2.Resource$Projects$Locations = Resource$Projects$Locations; | ||
| class Resource$Projects$Locations$Operations { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| cancel(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://secretmanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://secretmanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://secretmanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta2/{+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://secretmanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta2/{+name}/operations').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); | ||
| } | ||
| } | ||
| } | ||
| secretmanager_v1beta2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; | ||
| class Resource$Projects$Locations$Secrets { | ||
@@ -271,0 +134,0 @@ context; |
@@ -138,2 +138,6 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * The API version identifier of the operation that uses interface based versioning (IBV). For example, `"2026-01-01-preview"`. The version identifier generally follows the format of [variant_]date[_decorator]. It should not be parsed because the exact format varies across services. | ||
| */ | ||
| apiVersionIdentifier?: string | null; | ||
| /** | ||
| * Authentication information. | ||
@@ -140,0 +144,0 @@ */ |
@@ -78,6 +78,2 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Output only. The GHP device ID of the device. | ||
| */ | ||
| ghpName?: string | null; | ||
| /** | ||
| * Required. The resource name of the device. For example: "enterprises/XYZ/devices/123". | ||
@@ -163,6 +159,2 @@ */ | ||
| /** | ||
| * Output only. The GHP name of the relation -- e.g., structure/room where the device is assigned to. For example: "homegraph.googleapis.com/Structure/ABC" or "homegraph.googleapis.com/Room/ABC" | ||
| */ | ||
| ghpParent?: string | null; | ||
| /** | ||
| * Output only. The name of the relation -- e.g., structure/room where the device is assigned to. For example: "enterprises/XYZ/structures/ABC" or "enterprises/XYZ/structures/ABC/rooms/123" | ||
@@ -192,6 +184,2 @@ */ | ||
| /** | ||
| * Output only. The unique identifier for the structure in Google Home Platform. Format: homegraph.googleapis.com/Structure/{structure_id\} | ||
| */ | ||
| ghpName?: string | null; | ||
| /** | ||
| * Output only. The resource name of the structure. For example: "enterprises/XYZ/structures/ABC". | ||
@@ -323,3 +311,2 @@ */ | ||
| * // { | ||
| * // "ghpName": "my_ghpName", | ||
| * // "name": "my_name", | ||
@@ -481,3 +468,2 @@ * // "parentRelations": [], | ||
| * // { | ||
| * // "ghpName": "my_ghpName", | ||
| * // "name": "my_name", | ||
@@ -484,0 +470,0 @@ * // "traits": {} |
@@ -92,2 +92,6 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Solar arrays detected on the building. This field is only populated if DETECTED_ARRAYS is included in the request's FindClosestBuildingInsightsRequest.additional_insights. | ||
| */ | ||
| detectedArrays?: Schema$BuildingInsightsDetectedArrays; | ||
| /** | ||
| * Date that the underlying imagery was acquired. This is approximate. | ||
@@ -126,2 +130,15 @@ */ | ||
| /** | ||
| * Information about solar arrays detected on the building. | ||
| */ | ||
| export interface Schema$BuildingInsightsDetectedArrays { | ||
| /** | ||
| * Indicates the detection status of solar arrays for this building. | ||
| */ | ||
| detectionStatus?: string | null; | ||
| /** | ||
| * The date indicating when the latest solar array data was captured. | ||
| */ | ||
| latestCaptureDate?: Schema$Date; | ||
| } | ||
| /** | ||
| * Cost and benefit of an outright purchase of a particular configuration of solar panels with a particular electricity usage. | ||
@@ -188,3 +205,3 @@ */ | ||
| /** | ||
| * The URL for an image of RGB data (aerial photo) of the region. | ||
| * The URL for an image of RGB data (aerial or satellite photo) of the region. | ||
| */ | ||
@@ -629,2 +646,4 @@ rgbUrl?: string | null; | ||
| * const res = await solar.buildingInsights.findClosest({ | ||
| * // Optional. A list of additional_insights to be included in the response. | ||
| * additionalInsights: 'placeholder-value', | ||
| * // Optional. Whether to require exact quality of the imagery. If set to false, the `required_quality` field is interpreted as the minimum required quality, such that HIGH quality imagery may be returned when `required_quality` is set to MEDIUM. If set to true, `required_quality` is interpreted as the exact required quality and only `MEDIUM` quality imagery is returned if `required_quality` is set to `MEDIUM`. | ||
@@ -648,2 +667,3 @@ * exactQualityRequired: 'placeholder-value', | ||
| * // "center": {}, | ||
| * // "detectedArrays": {}, | ||
| * // "imageryDate": {}, | ||
@@ -681,2 +701,6 @@ * // "imageryProcessedDate": {}, | ||
| /** | ||
| * Optional. A list of additional_insights to be included in the response. | ||
| */ | ||
| additionalInsights?: string[]; | ||
| /** | ||
| * Optional. Whether to require exact quality of the imagery. If set to false, the `required_quality` field is interpreted as the minimum required quality, such that HIGH quality imagery may be returned when `required_quality` is set to MEDIUM. If set to true, `required_quality` is interpreted as the exact required quality and only `MEDIUM` quality imagery is returned if `required_quality` is set to `MEDIUM`. | ||
@@ -683,0 +707,0 @@ */ |
@@ -180,3 +180,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Required. The input token. This token is either an external credential issued by a workload identity pool provider, or a short-lived access token issued by Google. If the token is an OIDC JWT, it must use the JWT format defined in [RFC 7523](https://tools.ietf.org/html/rfc7523), and the `subject_token_type` must be either `urn:ietf:params:oauth:token-type:jwt` or `urn:ietf:params:oauth:token-type:id_token`. The following headers are required: - `kid`: The identifier of the signing key securing the JWT. - `alg`: The cryptographic algorithm securing the JWT. Must be `RS256` or `ES256`. The following payload fields are required. For more information, see [RFC 7523, Section 3](https://tools.ietf.org/html/rfc7523#section-3): - `iss`: The issuer of the token. The issuer must provide a discovery document at the URL `/.well-known/openid-configuration`, where `` is the value of this field. The document must be formatted according to section 4.2 of the [OIDC 1.0 Discovery specification](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfigurationResponse). - `iat`: The issue time, in seconds, since the Unix epoch. Must be in the past. - `exp`: The expiration time, in seconds, since the Unix epoch. Must be less than 48 hours after `iat`. Shorter expiration times are more secure. If possible, we recommend setting an expiration time less than 6 hours. - `sub`: The identity asserted in the JWT. - `aud`: For workload identity pools, this must be a value specified in the allowed audiences for the workload identity pool provider, or one of the audiences allowed by default if no audiences were specified. See https://cloud.google.com/iam/docs/reference/rest/v1/projects.locations.workloadIdentityPools.providers#oidc. For workforce pools, this must match the client ID specified in the provider configuration. See https://cloud.google.com/iam/docs/reference/rest/v1/locations.workforcePools.providers#oidc. Example header: ``` { "alg": "RS256", "kid": "us-east-11" \} ``` Example payload: ``` { "iss": "https://accounts.google.com", "iat": 1517963104, "exp": 1517966704, "aud": "//iam.googleapis.com/projects/1234567890123/locations/global/workloadIdentityPools/my-pool/providers/my-provider", "sub": "113475438248934895348", "my_claims": { "additional_claim": "value" \} \} ``` If `subject_token` is for AWS, it must be a serialized `GetCallerIdentity` token. This token contains the same information as a request to the AWS [`GetCallerIdentity()`](https://docs.aws.amazon.com/STS/latest/APIReference/API_GetCallerIdentity) method, as well as the AWS [signature](https://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) for the request information. Use Signature Version 4. Format the request as URL-encoded JSON, and set the `subject_token_type` parameter to `urn:ietf:params:aws:token-type:aws4_request`. The following parameters are required: - `url`: The URL of the AWS STS endpoint for `GetCallerIdentity()`, such as `https://sts.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15`. Regional endpoints are also supported. - `method`: The HTTP request method: `POST`. - `headers`: The HTTP request headers, which must include: - `Authorization`: The request signature. - `x-amz-date`: The time you will send the request, formatted as an [ISO8601 Basic](https://docs.aws.amazon.com/general/latest/gr/sigv4_elements.html#sigv4_elements_date) string. This value is typically set to the current time and is used to help prevent replay attacks. - `host`: The hostname of the `url` field; for example, `sts.amazonaws.com`. - `x-goog-cloud-target-resource`: The full, canonical resource name of the workload identity pool provider, with or without an `https:` prefix. To help ensure data integrity, we recommend including this header in the `SignedHeaders` field of the signed request. For example: //iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/ https://iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/ If you are using temporary security credentials provided by AWS, you must also include the header `x-amz-security-token`, with the value set to the session token. The following example shows a `GetCallerIdentity` token: ``` { "headers": [ {"key": "x-amz-date", "value": "20200815T015049Z"\}, {"key": "Authorization", "value": "AWS4-HMAC-SHA256+Credential=$credential,+SignedHeaders=host;x-amz-date;x-goog-cloud-target-resource,+Signature=$signature"\}, {"key": "x-goog-cloud-target-resource", "value": "//iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/"\}, {"key": "host", "value": "sts.amazonaws.com"\} . ], "method": "POST", "url": "https://sts.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15" \} ``` If the token is a SAML 2.0 assertion, it must use the format defined in [the SAML 2.0 spec](https://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0-cd-02.pdf), and the `subject_token_type` must be `urn:ietf:params:oauth:token-type:saml2`. See [Verification of external credentials](https://cloud.google.com/iam/docs/using-workload-identity-federation#verification_of_external_credentials) for details on how SAML 2.0 assertions are validated during token exchanges. You can also use a Google-issued OAuth 2.0 access token with this field to obtain an access token with new security attributes applied, such as a Credential Access Boundary. In this case, set `subject_token_type` to `urn:ietf:params:oauth:token-type:access_token`. If an access token already contains security attributes, you cannot apply additional security attributes. If the request is for X.509 certificate-based authentication, the `subject_token` must be a JSON-formatted list of X.509 certificates in DER format, as defined in [RFC 7515](https://www.rfc-editor.org/rfc/rfc7515#section-4.1.6). `subject_token_type` must be `urn:ietf:params:oauth:token-type:mtls`. The following example shows a JSON-formatted list of X.509 certificate in DER format: ``` [\"MIIEYDCCA0i...\", \"MCIFFGAGTT0...\"] ``` | ||
| * Required. The input token. This token is either an external credential issued by a workload identity pool provider, or a short-lived access token issued by Google. If the token is an OIDC JWT, it must use the JWT format defined in [RFC 7523](https://tools.ietf.org/html/rfc7523), and the `subject_token_type` must be either `urn:ietf:params:oauth:token-type:jwt` or `urn:ietf:params:oauth:token-type:id_token`. The following headers are required: - `kid`: The identifier of the signing key securing the JWT. - `alg`: The cryptographic algorithm securing the JWT. Must be `RS256` or `ES256`. The following payload fields are required. For more information, see [RFC 7523, Section 3](https://tools.ietf.org/html/rfc7523#section-3): - `iss`: The issuer of the token. The issuer must provide a discovery document at the URL `/.well-known/openid-configuration`, where `` is the value of this field. The document must be formatted according to section 4.2 of the [OIDC 1.0 Discovery specification](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfigurationResponse). - `iat`: The issue time, in seconds, since the Unix epoch. This timestamp must be in the past and no more than 24 hours in the past, or the token will be rejected. Note that this implies the token is only acceptable within a time window of at most 24 hours. - `exp`: The expiration time, in seconds, since the Unix epoch. Shorter expiration times are more secure. If possible, we recommend setting an expiration time less than 6 hours. - `sub`: The identity asserted in the JWT. - `aud`: For workload identity pools, this must be a value specified in the allowed audiences for the workload identity pool provider, or one of the audiences allowed by default if no audiences were specified. See https://cloud.google.com/iam/docs/reference/rest/v1/projects.locations.workloadIdentityPools.providers#oidc. For workforce pools, this must match the client ID specified in the provider configuration. See https://cloud.google.com/iam/docs/reference/rest/v1/locations.workforcePools.providers#oidc. Example header: ``` { "alg": "RS256", "kid": "us-east-11" \} ``` Example payload: ``` { "iss": "https://accounts.google.com", "iat": 1517963104, "exp": 1517966704, "aud": "//iam.googleapis.com/projects/1234567890123/locations/global/workloadIdentityPools/my-pool/providers/my-provider", "sub": "113475438248934895348", "my_claims": { "additional_claim": "value" \} \} ``` If `subject_token` is for AWS, it must be a serialized `GetCallerIdentity` token. This token contains the same information as a request to the AWS [`GetCallerIdentity()`](https://docs.aws.amazon.com/STS/latest/APIReference/API_GetCallerIdentity) method, as well as the AWS [signature](https://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) for the request information. Use Signature Version 4. Format the request as URL-encoded JSON, and set the `subject_token_type` parameter to `urn:ietf:params:aws:token-type:aws4_request`. The following parameters are required: - `url`: The URL of the AWS STS endpoint for `GetCallerIdentity()`, such as `https://sts.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15`. Regional endpoints are also supported. - `method`: The HTTP request method: `POST`. - `headers`: The HTTP request headers, which must include: - `Authorization`: The request signature. - `x-amz-date`: The time you will send the request, formatted as an [ISO8601 Basic](https://docs.aws.amazon.com/general/latest/gr/sigv4_elements.html#sigv4_elements_date) string. This value is typically set to the current time and is used to help prevent replay attacks. - `host`: The hostname of the `url` field; for example, `sts.amazonaws.com`. - `x-goog-cloud-target-resource`: The full, canonical resource name of the workload identity pool provider, with or without an `https:` prefix. To help ensure data integrity, we recommend including this header in the `SignedHeaders` field of the signed request. For example: //iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/ https://iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/ If you are using temporary security credentials provided by AWS, you must also include the header `x-amz-security-token`, with the value set to the session token. The following example shows a `GetCallerIdentity` token: ``` { "headers": [ {"key": "x-amz-date", "value": "20200815T015049Z"\}, {"key": "Authorization", "value": "AWS4-HMAC-SHA256+Credential=$credential,+SignedHeaders=host;x-amz-date;x-goog-cloud-target-resource,+Signature=$signature"\}, {"key": "x-goog-cloud-target-resource", "value": "//iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/"\}, {"key": "host", "value": "sts.amazonaws.com"\} . ], "method": "POST", "url": "https://sts.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15" \} ``` If the token is a SAML 2.0 assertion, it must use the format defined in [the SAML 2.0 spec](https://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0-cd-02.pdf), and the `subject_token_type` must be `urn:ietf:params:oauth:token-type:saml2`. See [Verification of external credentials](https://cloud.google.com/iam/docs/using-workload-identity-federation#verification_of_external_credentials) for details on how SAML 2.0 assertions are validated during token exchanges. You can also use a Google-issued OAuth 2.0 access token with this field to obtain an access token with new security attributes applied, such as a Credential Access Boundary. In this case, set `subject_token_type` to `urn:ietf:params:oauth:token-type:access_token`. If an access token already contains security attributes, you cannot apply additional security attributes. If the request is for X.509 certificate-based authentication, the `subject_token` must be a JSON-formatted list of X.509 certificates in DER format, as defined in [RFC 7515](https://www.rfc-editor.org/rfc/rfc7515#section-4.1.6). `subject_token_type` must be `urn:ietf:params:oauth:token-type:mtls`. The following example shows a JSON-formatted list of X.509 certificate in DER format: ``` [\"MIIEYDCCA0i...\", \"MCIFFGAGTT0...\"] ``` | ||
| */ | ||
@@ -223,3 +223,3 @@ subjectToken?: string | null; | ||
| /** | ||
| * The unpadded, base64url-encoded SHA-256 hash of the certificate's DER encoding and it must be 43 characters long. The resulting token will be bound to this value. | ||
| * The unpadded, url-escaped, base64-encoded SHA-256 hash of the certificate's DER encoding. It must be 43 characters long. The resulting token will be bound to this value. | ||
| */ | ||
@@ -226,0 +226,0 @@ bindCertFingerprint?: string | null; |
@@ -167,3 +167,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Required. The input token. This token is either an external credential issued by a workload identity pool provider, or a short-lived access token issued by Google. If the token is an OIDC JWT, it must use the JWT format defined in [RFC 7523](https://tools.ietf.org/html/rfc7523), and the `subject_token_type` must be either `urn:ietf:params:oauth:token-type:jwt` or `urn:ietf:params:oauth:token-type:id_token`. The following headers are required: - `kid`: The identifier of the signing key securing the JWT. - `alg`: The cryptographic algorithm securing the JWT. Must be `RS256` or `ES256`. The following payload fields are required. For more information, see [RFC 7523, Section 3](https://tools.ietf.org/html/rfc7523#section-3): - `iss`: The issuer of the token. The issuer must provide a discovery document at the URL `/.well-known/openid-configuration`, where `` is the value of this field. The document must be formatted according to section 4.2 of the [OIDC 1.0 Discovery specification](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfigurationResponse). - `iat`: The issue time, in seconds, since the Unix epoch. Must be in the past. - `exp`: The expiration time, in seconds, since the Unix epoch. Must be less than 48 hours after `iat`. Shorter expiration times are more secure. If possible, we recommend setting an expiration time less than 6 hours. - `sub`: The identity asserted in the JWT. - `aud`: For workload identity pools, this must be a value specified in the allowed audiences for the workload identity pool provider, or one of the audiences allowed by default if no audiences were specified. See https://cloud.google.com/iam/docs/reference/rest/v1/projects.locations.workloadIdentityPools.providers#oidc Example header: ``` { "alg": "RS256", "kid": "us-east-11" \} ``` Example payload: ``` { "iss": "https://accounts.google.com", "iat": 1517963104, "exp": 1517966704, "aud": "//iam.googleapis.com/projects/1234567890123/locations/global/workloadIdentityPools/my-pool/providers/my-provider", "sub": "113475438248934895348", "my_claims": { "additional_claim": "value" \} \} ``` If `subject_token` is for AWS, it must be a serialized `GetCallerIdentity` token. This token contains the same information as a request to the AWS [`GetCallerIdentity()`](https://docs.aws.amazon.com/STS/latest/APIReference/API_GetCallerIdentity) method, as well as the AWS [signature](https://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) for the request information. Use Signature Version 4. Format the request as URL-encoded JSON, and set the `subject_token_type` parameter to `urn:ietf:params:aws:token-type:aws4_request`. The following parameters are required: - `url`: The URL of the AWS STS endpoint for `GetCallerIdentity()`, such as `https://sts.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15`. Regional endpoints are also supported. - `method`: The HTTP request method: `POST`. - `headers`: The HTTP request headers, which must include: - `Authorization`: The request signature. - `x-amz-date`: The time you will send the request, formatted as an [ISO8601 Basic](https://docs.aws.amazon.com/general/latest/gr/sigv4_elements.html#sigv4_elements_date) string. This value is typically set to the current time and is used to help prevent replay attacks. - `host`: The hostname of the `url` field; for example, `sts.amazonaws.com`. - `x-goog-cloud-target-resource`: The full, canonical resource name of the workload identity pool provider, with or without an `https:` prefix. To help ensure data integrity, we recommend including this header in the `SignedHeaders` field of the signed request. For example: //iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/ https://iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/ If you are using temporary security credentials provided by AWS, you must also include the header `x-amz-security-token`, with the value set to the session token. The following example shows a `GetCallerIdentity` token: ``` { "headers": [ {"key": "x-amz-date", "value": "20200815T015049Z"\}, {"key": "Authorization", "value": "AWS4-HMAC-SHA256+Credential=$credential,+SignedHeaders=host;x-amz-date;x-goog-cloud-target-resource,+Signature=$signature"\}, {"key": "x-goog-cloud-target-resource", "value": "//iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/"\}, {"key": "host", "value": "sts.amazonaws.com"\} . ], "method": "POST", "url": "https://sts.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15" \} ``` You can also use a Google-issued OAuth 2.0 access token with this field to obtain an access token with new security attributes applied, such as a Credential Access Boundary. In this case, set `subject_token_type` to `urn:ietf:params:oauth:token-type:access_token`. If an access token already contains security attributes, you cannot apply additional security attributes. | ||
| * Required. The input token. This token is either an external credential issued by a workload identity pool provider, or a short-lived access token issued by Google. If the token is an OIDC JWT, it must use the JWT format defined in [RFC 7523](https://tools.ietf.org/html/rfc7523), and the `subject_token_type` must be either `urn:ietf:params:oauth:token-type:jwt` or `urn:ietf:params:oauth:token-type:id_token`. The following headers are required: - `kid`: The identifier of the signing key securing the JWT. - `alg`: The cryptographic algorithm securing the JWT. Must be `RS256` or `ES256`. The following payload fields are required. For more information, see [RFC 7523, Section 3](https://tools.ietf.org/html/rfc7523#section-3): - `iss`: The issuer of the token. The issuer must provide a discovery document at the URL `/.well-known/openid-configuration`, where `` is the value of this field. The document must be formatted according to section 4.2 of the [OIDC 1.0 Discovery specification](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfigurationResponse). - `iat`: The issue time, in seconds, since the Unix epoch. This timestamp must be in the past and no more than 24 hours in the past, or the token will be rejected. Note that this implies the token is only acceptable within a time window of at most 24 hours. - `exp`: The expiration time, in seconds, since the Unix epoch. Shorter expiration times are more secure. If possible, we recommend setting an expiration time less than 6 hours. - `sub`: The identity asserted in the JWT. - `aud`: For workload identity pools, this must be a value specified in the allowed audiences for the workload identity pool provider, or one of the audiences allowed by default if no audiences were specified. See https://cloud.google.com/iam/docs/reference/rest/v1/projects.locations.workloadIdentityPools.providers#oidc Example header: ``` { "alg": "RS256", "kid": "us-east-11" \} ``` Example payload: ``` { "iss": "https://accounts.google.com", "iat": 1517963104, "exp": 1517966704, "aud": "//iam.googleapis.com/projects/1234567890123/locations/global/workloadIdentityPools/my-pool/providers/my-provider", "sub": "113475438248934895348", "my_claims": { "additional_claim": "value" \} \} ``` If `subject_token` is for AWS, it must be a serialized `GetCallerIdentity` token. This token contains the same information as a request to the AWS [`GetCallerIdentity()`](https://docs.aws.amazon.com/STS/latest/APIReference/API_GetCallerIdentity) method, as well as the AWS [signature](https://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) for the request information. Use Signature Version 4. Format the request as URL-encoded JSON, and set the `subject_token_type` parameter to `urn:ietf:params:aws:token-type:aws4_request`. The following parameters are required: - `url`: The URL of the AWS STS endpoint for `GetCallerIdentity()`, such as `https://sts.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15`. Regional endpoints are also supported. - `method`: The HTTP request method: `POST`. - `headers`: The HTTP request headers, which must include: - `Authorization`: The request signature. - `x-amz-date`: The time you will send the request, formatted as an [ISO8601 Basic](https://docs.aws.amazon.com/general/latest/gr/sigv4_elements.html#sigv4_elements_date) string. This value is typically set to the current time and is used to help prevent replay attacks. - `host`: The hostname of the `url` field; for example, `sts.amazonaws.com`. - `x-goog-cloud-target-resource`: The full, canonical resource name of the workload identity pool provider, with or without an `https:` prefix. To help ensure data integrity, we recommend including this header in the `SignedHeaders` field of the signed request. For example: //iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/ https://iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/ If you are using temporary security credentials provided by AWS, you must also include the header `x-amz-security-token`, with the value set to the session token. The following example shows a `GetCallerIdentity` token: ``` { "headers": [ {"key": "x-amz-date", "value": "20200815T015049Z"\}, {"key": "Authorization", "value": "AWS4-HMAC-SHA256+Credential=$credential,+SignedHeaders=host;x-amz-date;x-goog-cloud-target-resource,+Signature=$signature"\}, {"key": "x-goog-cloud-target-resource", "value": "//iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/"\}, {"key": "host", "value": "sts.amazonaws.com"\} . ], "method": "POST", "url": "https://sts.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15" \} ``` You can also use a Google-issued OAuth 2.0 access token with this field to obtain an access token with new security attributes applied, such as a Credential Access Boundary. In this case, set `subject_token_type` to `urn:ietf:params:oauth:token-type:access_token`. If an access token already contains security attributes, you cannot apply additional security attributes. | ||
| */ | ||
@@ -219,3 +219,3 @@ subjectToken?: string | null; | ||
| /** | ||
| * The unpadded, base64url-encoded SHA-256 hash of the certificate's DER encoding and it must be 43 characters long. The resulting token will be bound to this value. | ||
| * The unpadded, url-escaped, base64-encoded SHA-256 hash of the certificate's DER encoding. It must be 43 characters long. The resulting token will be bound to this value. | ||
| */ | ||
@@ -222,0 +222,0 @@ bindCertFingerprint?: string | null; |
@@ -89,5 +89,9 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Optional. Input only. If true, relaxes safety filters for Gemini TTS. Only supported for accounts linked to Invoiced (Offline) Cloud billing accounts. Otherwise, will return result google.rpc.Code.INVALID_ARGUMENT. | ||
| * Optional. Input only. Deprecated, use safety_settings instead. If true, relaxes safety filters for Gemini TTS. | ||
| */ | ||
| relaxSafetyFilters?: boolean | null; | ||
| /** | ||
| * Optional. Input only. This applies to Gemini TTS only. If set, the category specified in the safety setting will be blocked if the harm probability is above the threshold. Otherwise, the safety filter will be disabled by default. | ||
| */ | ||
| safetySettings?: Schema$SafetySettings; | ||
| } | ||
@@ -276,2 +280,24 @@ /** | ||
| /** | ||
| * Safety setting for a single harm category. | ||
| */ | ||
| export interface Schema$SafetySetting { | ||
| /** | ||
| * The harm category to apply the safety setting to. | ||
| */ | ||
| category?: string | null; | ||
| /** | ||
| * The harm block threshold for the safety setting. | ||
| */ | ||
| threshold?: string | null; | ||
| } | ||
| /** | ||
| * Safety settings for the request. | ||
| */ | ||
| export interface Schema$SafetySettings { | ||
| /** | ||
| * The safety settings for the request. | ||
| */ | ||
| settings?: Schema$SafetySetting[]; | ||
| } | ||
| /** | ||
| * The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). | ||
@@ -278,0 +304,0 @@ */ |
@@ -88,5 +88,9 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Optional. Input only. If true, relaxes safety filters for Gemini TTS. Only supported for accounts linked to Invoiced (Offline) Cloud billing accounts. Otherwise, will return result google.rpc.Code.INVALID_ARGUMENT. | ||
| * Optional. Input only. Deprecated, use safety_settings instead. If true, relaxes safety filters for Gemini TTS. | ||
| */ | ||
| relaxSafetyFilters?: boolean | null; | ||
| /** | ||
| * Optional. Input only. This applies to Gemini TTS only. If set, the category specified in the safety setting will be blocked if the harm probability is above the threshold. Otherwise, the safety filter will be disabled by default. | ||
| */ | ||
| safetySettings?: Schema$SafetySettings; | ||
| } | ||
@@ -265,2 +269,24 @@ /** | ||
| /** | ||
| * Safety setting for a single harm category. | ||
| */ | ||
| export interface Schema$SafetySetting { | ||
| /** | ||
| * The harm category to apply the safety setting to. | ||
| */ | ||
| category?: string | null; | ||
| /** | ||
| * The harm block threshold for the safety setting. | ||
| */ | ||
| threshold?: string | null; | ||
| } | ||
| /** | ||
| * Safety settings for the request. | ||
| */ | ||
| export interface Schema$SafetySettings { | ||
| /** | ||
| * The safety settings for the request. | ||
| */ | ||
| settings?: Schema$SafetySetting[]; | ||
| } | ||
| /** | ||
| * The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). | ||
@@ -267,0 +293,0 @@ */ |
@@ -58,2 +58,34 @@ "use strict"; | ||
| } | ||
| generateOrgProfile(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://threatintelligence.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta/{+name}:generateOrgProfile').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
@@ -356,66 +388,2 @@ threatintelligence_v1beta.Resource$Projects = Resource$Projects; | ||
| } | ||
| refreshUriStatus(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://threatintelligence.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta/{+name}:refreshUriStatus').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| reportAlertUri(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://threatintelligence.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta/{+name}:reportAlertUri').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| resolve(paramsOrCallback, optionsOrCallback, callback) { | ||
@@ -422,0 +390,0 @@ let params = (paramsOrCallback || |
@@ -244,3 +244,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Required. Matches the flight identifiers in the request. Note: all IATA codes are capitalized. | ||
| * Identifier. Matches the flight identifiers in the request. Note: all IATA codes are capitalized. | ||
| */ | ||
@@ -267,24 +267,2 @@ flight?: Schema$Flight; | ||
| /** | ||
| * Profile describing the data handling characteristics of an MCP tool. When used within the McpTool.meta field, this message should be packed into a google.protobuf.Any and associated with the key: "google.com/tool.profiles/data_handling" | ||
| */ | ||
| export interface Schema$McpToolDataHandlingProfile { | ||
| /** | ||
| * // The data access level of the tool's inputs. | ||
| */ | ||
| inputDataAccessLevel?: string | null; | ||
| /** | ||
| * The data access level of the tool's outputs. | ||
| */ | ||
| outputDataAccessLevel?: string | null; | ||
| } | ||
| /** | ||
| * Profile describing the lifecycle stage of an MCP tool. When used within the McpTool.meta field, this message should be packed into a google.protobuf.Any and associated with the key: "google.com/tool.profiles/lifecycle" | ||
| */ | ||
| export interface Schema$McpToolLifecycleProfile { | ||
| /** | ||
| * Output only. The current launch state of the MCP tool. | ||
| */ | ||
| launchState?: string | null; | ||
| } | ||
| /** | ||
| * Travel Impact Model version. For more information about the model versioning see [GitHub](https://github.com/google/travel-impact-model/#versioning). | ||
@@ -315,3 +293,3 @@ */ | ||
| /** | ||
| * Required. Matches the flight identifiers in the request. | ||
| * Identifier. Matches the flight identifiers in the request. | ||
| */ | ||
@@ -378,3 +356,3 @@ flight?: Schema$Scope3FlightSegment; | ||
| /** | ||
| * Required. Matches the flight identifiers in the request. Note: all IATA codes are capitalized. | ||
| * Identifier. Matches the flight identifiers in the request. Note: all IATA codes are capitalized. | ||
| */ | ||
@@ -381,0 +359,0 @@ market?: Schema$Market; |
@@ -329,3 +329,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Lists information about the supported locations for this service. | ||
| * Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project\}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. | ||
| * @example | ||
@@ -360,3 +360,3 @@ * ```js | ||
| * const res = await vpcaccess.projects.locations.list({ | ||
| * // Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. | ||
| * // Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. | ||
| * extraLocationTypes: 'placeholder-value', | ||
@@ -402,3 +402,3 @@ * // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). | ||
| /** | ||
| * Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. | ||
| * Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. | ||
| */ | ||
@@ -405,0 +405,0 @@ extraLocationTypes?: string[]; |
@@ -337,3 +337,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Lists information about the supported locations for this service. | ||
| * Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project\}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. | ||
| * @example | ||
@@ -368,3 +368,3 @@ * ```js | ||
| * const res = await vpcaccess.projects.locations.list({ | ||
| * // Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. | ||
| * // Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. | ||
| * extraLocationTypes: 'placeholder-value', | ||
@@ -410,3 +410,3 @@ * // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). | ||
| /** | ||
| * Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. | ||
| * Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. | ||
| */ | ||
@@ -413,0 +413,0 @@ extraLocationTypes?: string[]; |
@@ -349,3 +349,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| /** | ||
| * Lists information about the supported locations for this service. | ||
| * Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project\}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. | ||
| * @example | ||
@@ -380,3 +380,3 @@ * ```js | ||
| * const res = await workflows.projects.locations.list({ | ||
| * // Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. | ||
| * // Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. | ||
| * extraLocationTypes: 'placeholder-value', | ||
@@ -428,3 +428,3 @@ * // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). | ||
| /** | ||
| * Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. | ||
| * Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. | ||
| */ | ||
@@ -431,0 +431,0 @@ extraLocationTypes?: string[]; |
@@ -58,2 +58,3 @@ "use strict"; | ||
| context; | ||
| deployments; | ||
| discoveredprofiles; | ||
@@ -66,2 +67,3 @@ evaluations; | ||
| this.context = context; | ||
| this.deployments = new Resource$Projects$Locations$Deployments(this.context); | ||
| this.discoveredprofiles = | ||
@@ -140,2 +142,278 @@ new Resource$Projects$Locations$Discoveredprofiles(this.context); | ||
| workloadmanager_v1.Resource$Projects$Locations = Resource$Projects$Locations; | ||
| class Resource$Projects$Locations$Deployments { | ||
| context; | ||
| actuations; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.actuations = new Resource$Projects$Locations$Deployments$Actuations(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://workloadmanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://workloadmanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://workloadmanager.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://workloadmanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/deployments').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); | ||
| } | ||
| } | ||
| } | ||
| workloadmanager_v1.Resource$Projects$Locations$Deployments = Resource$Projects$Locations$Deployments; | ||
| class Resource$Projects$Locations$Deployments$Actuations { | ||
| context; | ||
| constructor(context) { | ||
| this.context = 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://workloadmanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/actuations').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://workloadmanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'DELETE', | ||
| 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); | ||
| } | ||
| } | ||
| 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://workloadmanager.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://workloadmanager.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1/{+parent}/actuations').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); | ||
| } | ||
| } | ||
| } | ||
| workloadmanager_v1.Resource$Projects$Locations$Deployments$Actuations = Resource$Projects$Locations$Deployments$Actuations; | ||
| class Resource$Projects$Locations$Discoveredprofiles { | ||
@@ -142,0 +420,0 @@ context; |
@@ -954,2 +954,35 @@ "use strict"; | ||
| } | ||
| pushCredentials(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://workstations.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v1beta/{+workstation}:pushCredentials').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| apiVersion: '', | ||
| }, options), | ||
| params, | ||
| requiredParams: ['workstation'], | ||
| pathParams: ['workstation'], | ||
| context: this.context, | ||
| }; | ||
| if (callback) { | ||
| (0, googleapis_common_1.createAPIRequest)(parameters, callback); | ||
| } | ||
| else { | ||
| return (0, googleapis_common_1.createAPIRequest)(parameters); | ||
| } | ||
| } | ||
| setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { | ||
@@ -956,0 +989,0 @@ let params = (paramsOrCallback || |
@@ -181,2 +181,6 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; | ||
| */ | ||
| fromFusionId?: string | null; | ||
| /** | ||
| * gdata | ||
| */ | ||
| fromHeader?: string | null; | ||
@@ -187,2 +191,6 @@ /** | ||
| fromUrlPath?: string | null; | ||
| /** | ||
| * gdata | ||
| */ | ||
| fusionIdDetectionMetadata?: string | null; | ||
| } | ||
@@ -398,2 +406,6 @@ /** | ||
| */ | ||
| sha512Hash?: string | null; | ||
| /** | ||
| * gdata | ||
| */ | ||
| timestamp?: string | null; | ||
@@ -1150,2 +1162,3 @@ /** | ||
| * // "sha256Hash": "my_sha256Hash", | ||
| * // "sha512Hash": "my_sha512Hash", | ||
| * // "timestamp": "my_timestamp", | ||
@@ -1152,0 +1165,0 @@ * // "token": "my_token" |
@@ -31,2 +31,3 @@ /*! THIS FILE IS AUTO-GENERATED */ | ||
| export { advisorynotifications_v1 } from './apis/advisorynotifications/v1'; | ||
| export { agentregistry_v1alpha } from './apis/agentregistry/v1alpha'; | ||
| export { aiplatform_v1 } from './apis/aiplatform/v1'; | ||
@@ -106,2 +107,4 @@ export { aiplatform_v1beta1 } from './apis/aiplatform/v1beta1'; | ||
| export { certificatemanager_v1 } from './apis/certificatemanager/v1'; | ||
| export { ces_v1 } from './apis/ces/v1'; | ||
| export { ces_v1beta } from './apis/ces/v1beta'; | ||
| export { chat_v1 } from './apis/chat/v1'; | ||
@@ -213,2 +216,4 @@ export { checks_v1alpha } from './apis/checks/v1alpha'; | ||
| export { developerconnect_v1 } from './apis/developerconnect/v1'; | ||
| export { developerknowledge_v1 } from './apis/developerknowledge/v1'; | ||
| export { developerknowledge_v1alpha } from './apis/developerknowledge/v1alpha'; | ||
| export { dfareporting_v3_3 } from './apis/dfareporting/v3.3'; | ||
@@ -309,4 +314,6 @@ export { dfareporting_v3_4 } from './apis/dfareporting/v3.4'; | ||
| export { gmailpostmastertools_v1beta1 } from './apis/gmailpostmastertools/v1beta1'; | ||
| export { gmailpostmastertools_v2 } from './apis/gmailpostmastertools/v2'; | ||
| export { groupsmigration_v1 } from './apis/groupsmigration/v1'; | ||
| export { groupssettings_v1 } from './apis/groupssettings/v1'; | ||
| export { health_v4 } from './apis/health/v4'; | ||
| export { healthcare_v1 } from './apis/healthcare/v1'; | ||
@@ -342,3 +349,2 @@ export { healthcare_v1beta1 } from './apis/healthcare/v1beta1'; | ||
| export { licensing_v1 } from './apis/licensing/v1'; | ||
| export { lifesciences_v2beta } from './apis/lifesciences/v2beta'; | ||
| export { localservices_v1 } from './apis/localservices/v1'; | ||
@@ -486,2 +492,3 @@ export { logging_v2 } from './apis/logging/v2'; | ||
| export { runtimeconfig_v1beta1 } from './apis/runtimeconfig/v1beta1'; | ||
| export { saasservicemgmt_v1 } from './apis/saasservicemgmt/v1'; | ||
| export { saasservicemgmt_v1beta1 } from './apis/saasservicemgmt/v1beta1'; | ||
@@ -488,0 +495,0 @@ export { safebrowsing_v4 } from './apis/safebrowsing/v4'; |
+10
-2
| { | ||
| "name": "googleapis", | ||
| "version": "171.4.0", | ||
| "version": "172.0.0", | ||
| "repository": "googleapis/google-api-nodejs-client", | ||
@@ -98,7 +98,15 @@ "license": "Apache-2.0", | ||
| "server-destroy": "^1.0.1", | ||
| "sinon": "^21.0.0", | ||
| "sinon": "21.0.3", | ||
| "tmp": "^0.2.3", | ||
| "typescript": "^5.8.3", | ||
| "yargs-parser": "^21.1.1" | ||
| }, | ||
| "overrides": { | ||
| "@sinonjs/fake-timers": "15.2.1" | ||
| }, | ||
| "pnpm": { | ||
| "overrides": { | ||
| "@sinonjs/fake-timers": "15.2.1" | ||
| } | ||
| } | ||
| } |
| /*! THIS FILE IS AUTO-GENERATED */ | ||
| import { AuthPlus } from 'googleapis-common'; | ||
| import { lifesciences_v2beta } from './v2beta'; | ||
| export declare const VERSIONS: { | ||
| v2beta: typeof lifesciences_v2beta.Lifesciences; | ||
| }; | ||
| export declare function lifesciences(version: 'v2beta'): lifesciences_v2beta.Lifesciences; | ||
| export declare function lifesciences(options: lifesciences_v2beta.Options): lifesciences_v2beta.Lifesciences; | ||
| declare const auth: AuthPlus; | ||
| export { auth }; | ||
| export { lifesciences_v2beta }; | ||
| export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, MethodOptions, BodyResponseCallback, } from 'googleapis-common'; |
| "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.AuthPlus = exports.lifesciences_v2beta = exports.auth = exports.VERSIONS = void 0; | ||
| exports.lifesciences = lifesciences; | ||
| /*! THIS FILE IS AUTO-GENERATED */ | ||
| const googleapis_common_1 = require("googleapis-common"); | ||
| const v2beta_1 = require("./v2beta"); | ||
| Object.defineProperty(exports, "lifesciences_v2beta", { enumerable: true, get: function () { return v2beta_1.lifesciences_v2beta; } }); | ||
| exports.VERSIONS = { | ||
| v2beta: v2beta_1.lifesciences_v2beta.Lifesciences, | ||
| }; | ||
| function lifesciences(versionOrOptions) { | ||
| return (0, googleapis_common_1.getAPI)('lifesciences', versionOrOptions, exports.VERSIONS, this); | ||
| } | ||
| const auth = new googleapis_common_1.AuthPlus(); | ||
| exports.auth = auth; | ||
| var googleapis_common_2 = require("googleapis-common"); | ||
| Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); |
Sorry, the diff of this file is too big to display
| "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.lifesciences_v2beta = 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 lifesciences_v2beta; | ||
| (function (lifesciences_v2beta) { | ||
| /** | ||
| * Cloud Life Sciences API | ||
| * | ||
| * Cloud Life Sciences is a suite of services and tools for managing, processing, and transforming life sciences data. | ||
| * | ||
| * @example | ||
| * ```js | ||
| * const {google} = require('googleapis'); | ||
| * const lifesciences = google.lifesciences('v2beta'); | ||
| * ``` | ||
| */ | ||
| class Lifesciences { | ||
| context; | ||
| projects; | ||
| constructor(options, google) { | ||
| this.context = { | ||
| _options: options || {}, | ||
| google, | ||
| }; | ||
| this.projects = new Resource$Projects(this.context); | ||
| } | ||
| } | ||
| lifesciences_v2beta.Lifesciences = Lifesciences; | ||
| class Resource$Projects { | ||
| context; | ||
| locations; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.locations = new Resource$Projects$Locations(this.context); | ||
| } | ||
| } | ||
| lifesciences_v2beta.Resource$Projects = Resource$Projects; | ||
| class Resource$Projects$Locations { | ||
| context; | ||
| operations; | ||
| pipelines; | ||
| constructor(context) { | ||
| this.context = context; | ||
| this.operations = new Resource$Projects$Locations$Operations(this.context); | ||
| this.pipelines = new Resource$Projects$Locations$Pipelines(this.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://lifesciences.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v2beta/{+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://lifesciences.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v2beta/{+name}/locations').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); | ||
| } | ||
| } | ||
| } | ||
| lifesciences_v2beta.Resource$Projects$Locations = Resource$Projects$Locations; | ||
| class Resource$Projects$Locations$Operations { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| cancel(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://lifesciences.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v2beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| 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://lifesciences.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v2beta/{+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://lifesciences.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v2beta/{+name}/operations').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); | ||
| } | ||
| } | ||
| } | ||
| lifesciences_v2beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; | ||
| class Resource$Projects$Locations$Pipelines { | ||
| context; | ||
| constructor(context) { | ||
| this.context = context; | ||
| } | ||
| run(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://lifesciences.googleapis.com/'; | ||
| const parameters = { | ||
| options: Object.assign({ | ||
| url: (rootUrl + '/v2beta/{+parent}/pipelines:run').replace(/([^:]\/)\/+/g, '$1'), | ||
| method: 'POST', | ||
| 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); | ||
| } | ||
| } | ||
| } | ||
| lifesciences_v2beta.Resource$Projects$Locations$Pipelines = Resource$Projects$Locations$Pipelines; | ||
| })(lifesciences_v2beta || (exports.lifesciences_v2beta = lifesciences_v2beta = {})); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
206296786
3.33%1843
1.1%3458868
3.1%62
51.22%