New:Socket for Asana Is Now Available.Learn more
Sign In

googleapis

Package Overview
Dependencies
Maintainers
1
Versions
295
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

googleapis - npm Package Compare versions

Comparing version
173.0.0
to
174.0.0
+22
build/src/apis/agentidentity/index.d.ts
/*! THIS FILE IS AUTO-GENERATED */
import { AuthPlus } from 'googleapis-common';
import { agentidentity_v1 } from './v1';
import { agentidentity_v1alpha } from './v1alpha';
import { agentidentity_v1beta } from './v1beta';
export declare const VERSIONS: {
v1: typeof agentidentity_v1.Agentidentity;
v1alpha: typeof agentidentity_v1alpha.Agentidentity;
v1beta: typeof agentidentity_v1beta.Agentidentity;
};
export declare function agentidentity(version: 'v1'): agentidentity_v1.Agentidentity;
export declare function agentidentity(options: agentidentity_v1.Options): agentidentity_v1.Agentidentity;
export declare function agentidentity(version: 'v1alpha'): agentidentity_v1alpha.Agentidentity;
export declare function agentidentity(options: agentidentity_v1alpha.Options): agentidentity_v1alpha.Agentidentity;
export declare function agentidentity(version: 'v1beta'): agentidentity_v1beta.Agentidentity;
export declare function agentidentity(options: agentidentity_v1beta.Options): agentidentity_v1beta.Agentidentity;
declare const auth: AuthPlus;
export { auth };
export { agentidentity_v1 };
export { agentidentity_v1alpha };
export { agentidentity_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.agentidentity_v1beta = exports.agentidentity_v1alpha = exports.agentidentity_v1 = exports.auth = exports.VERSIONS = void 0;
exports.agentidentity = agentidentity;
/*! THIS FILE IS AUTO-GENERATED */
const googleapis_common_1 = require("googleapis-common");
const v1_1 = require("./v1");
Object.defineProperty(exports, "agentidentity_v1", { enumerable: true, get: function () { return v1_1.agentidentity_v1; } });
const v1alpha_1 = require("./v1alpha");
Object.defineProperty(exports, "agentidentity_v1alpha", { enumerable: true, get: function () { return v1alpha_1.agentidentity_v1alpha; } });
const v1beta_1 = require("./v1beta");
Object.defineProperty(exports, "agentidentity_v1beta", { enumerable: true, get: function () { return v1beta_1.agentidentity_v1beta; } });
exports.VERSIONS = {
v1: v1_1.agentidentity_v1.Agentidentity,
v1alpha: v1alpha_1.agentidentity_v1alpha.Agentidentity,
v1beta: v1beta_1.agentidentity_v1beta.Agentidentity,
};
function agentidentity(versionOrOptions) {
return (0, googleapis_common_1.getAPI)('agentidentity', 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.agentidentity_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 agentidentity_v1;
(function (agentidentity_v1) {
/**
* Agent Identity API
*
*
*
* @example
* ```js
* const {google} = require('googleapis');
* const agentidentity = google.agentidentity('v1');
* ```
*/
class Agentidentity {
context;
projects;
constructor(options, google) {
this.context = {
_options: options || {},
google,
};
this.projects = new Resource$Projects(this.context);
}
}
agentidentity_v1.Agentidentity = Agentidentity;
class Resource$Projects {
context;
locations;
constructor(context) {
this.context = context;
this.locations = new Resource$Projects$Locations(this.context);
}
}
agentidentity_v1.Resource$Projects = Resource$Projects;
class Resource$Projects$Locations {
context;
accessSummaries;
authProviders;
constructor(context) {
this.context = context;
this.accessSummaries = new Resource$Projects$Locations$Accesssummaries(this.context);
this.authProviders = new Resource$Projects$Locations$Authproviders(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://agentidentity.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://agentidentity.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);
}
}
}
agentidentity_v1.Resource$Projects$Locations = Resource$Projects$Locations;
class Resource$Projects$Locations$Accesssummaries {
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://agentidentity.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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/accessSummaries').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);
}
}
}
agentidentity_v1.Resource$Projects$Locations$Accesssummaries = Resource$Projects$Locations$Accesssummaries;
class Resource$Projects$Locations$Authproviders {
context;
authorizations;
constructor(context) {
this.context = context;
this.authorizations =
new Resource$Projects$Locations$Authproviders$Authorizations(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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/authProviders').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://agentidentity.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);
}
}
disable(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+name}:disable').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);
}
}
enable(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+name}:enable').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://agentidentity.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);
}
}
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://agentidentity.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);
}
}
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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/authProviders').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://agentidentity.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);
}
}
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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/authProviders:query').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);
}
}
queryWorkloads(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+name}:queryWorkloads').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);
}
}
revokeAuthorization(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+name}:revokeAuthorization').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);
}
}
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://agentidentity.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://agentidentity.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);
}
}
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://agentidentity.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);
}
}
}
agentidentity_v1.Resource$Projects$Locations$Authproviders = Resource$Projects$Locations$Authproviders;
class Resource$Projects$Locations$Authproviders$Authorizations {
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://agentidentity.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://agentidentity.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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/authorizations').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);
}
}
}
agentidentity_v1.Resource$Projects$Locations$Authproviders$Authorizations = Resource$Projects$Locations$Authproviders$Authorizations;
})(agentidentity_v1 || (exports.agentidentity_v1 = agentidentity_v1 = {}));

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.agentidentity_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 agentidentity_v1alpha;
(function (agentidentity_v1alpha) {
/**
* Agent Identity API
*
*
*
* @example
* ```js
* const {google} = require('googleapis');
* const agentidentity = google.agentidentity('v1alpha');
* ```
*/
class Agentidentity {
context;
projects;
constructor(options, google) {
this.context = {
_options: options || {},
google,
};
this.projects = new Resource$Projects(this.context);
}
}
agentidentity_v1alpha.Agentidentity = Agentidentity;
class Resource$Projects {
context;
locations;
constructor(context) {
this.context = context;
this.locations = new Resource$Projects$Locations(this.context);
}
}
agentidentity_v1alpha.Resource$Projects = Resource$Projects;
class Resource$Projects$Locations {
context;
accessSummaries;
authProviders;
constructor(context) {
this.context = context;
this.accessSummaries = new Resource$Projects$Locations$Accesssummaries(this.context);
this.authProviders = new Resource$Projects$Locations$Authproviders(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://agentidentity.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://agentidentity.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);
}
}
}
agentidentity_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations;
class Resource$Projects$Locations$Accesssummaries {
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://agentidentity.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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+parent}/accessSummaries').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);
}
}
}
agentidentity_v1alpha.Resource$Projects$Locations$Accesssummaries = Resource$Projects$Locations$Accesssummaries;
class Resource$Projects$Locations$Authproviders {
context;
authorizations;
constructor(context) {
this.context = context;
this.authorizations =
new Resource$Projects$Locations$Authproviders$Authorizations(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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+parent}/authProviders').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://agentidentity.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);
}
}
disable(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+name}:disable').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);
}
}
enable(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+name}:enable').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://agentidentity.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);
}
}
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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+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);
}
}
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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+parent}/authProviders').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://agentidentity.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);
}
}
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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+parent}/authProviders:query').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);
}
}
queryWorkloads(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+name}:queryWorkloads').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);
}
}
revokeAuthorization(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+name}:revokeAuthorization').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);
}
}
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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+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);
}
}
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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+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);
}
}
}
agentidentity_v1alpha.Resource$Projects$Locations$Authproviders = Resource$Projects$Locations$Authproviders;
class Resource$Projects$Locations$Authproviders$Authorizations {
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://agentidentity.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://agentidentity.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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+parent}/authorizations').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);
}
}
}
agentidentity_v1alpha.Resource$Projects$Locations$Authproviders$Authorizations = Resource$Projects$Locations$Authproviders$Authorizations;
})(agentidentity_v1alpha || (exports.agentidentity_v1alpha = agentidentity_v1alpha = {}));

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.agentidentity_v1beta = 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 agentidentity_v1beta;
(function (agentidentity_v1beta) {
/**
* Agent Identity API
*
*
*
* @example
* ```js
* const {google} = require('googleapis');
* const agentidentity = google.agentidentity('v1beta');
* ```
*/
class Agentidentity {
context;
projects;
constructor(options, google) {
this.context = {
_options: options || {},
google,
};
this.projects = new Resource$Projects(this.context);
}
}
agentidentity_v1beta.Agentidentity = Agentidentity;
class Resource$Projects {
context;
locations;
constructor(context) {
this.context = context;
this.locations = new Resource$Projects$Locations(this.context);
}
}
agentidentity_v1beta.Resource$Projects = Resource$Projects;
class Resource$Projects$Locations {
context;
accessSummaries;
authProviders;
constructor(context) {
this.context = context;
this.accessSummaries = new Resource$Projects$Locations$Accesssummaries(this.context);
this.authProviders = new Resource$Projects$Locations$Authproviders(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://agentidentity.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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+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);
}
}
}
agentidentity_v1beta.Resource$Projects$Locations = Resource$Projects$Locations;
class Resource$Projects$Locations$Accesssummaries {
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://agentidentity.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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+parent}/accessSummaries').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);
}
}
}
agentidentity_v1beta.Resource$Projects$Locations$Accesssummaries = Resource$Projects$Locations$Accesssummaries;
class Resource$Projects$Locations$Authproviders {
context;
authorizations;
constructor(context) {
this.context = context;
this.authorizations =
new Resource$Projects$Locations$Authproviders$Authorizations(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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+parent}/authProviders').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://agentidentity.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);
}
}
disable(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+name}:disable').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);
}
}
enable(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+name}:enable').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://agentidentity.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);
}
}
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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+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);
}
}
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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+parent}/authProviders').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://agentidentity.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);
}
}
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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+parent}/authProviders:query').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);
}
}
queryWorkloads(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+name}:queryWorkloads').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);
}
}
revokeAuthorization(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+name}:revokeAuthorization').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);
}
}
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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+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);
}
}
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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+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);
}
}
}
agentidentity_v1beta.Resource$Projects$Locations$Authproviders = Resource$Projects$Locations$Authproviders;
class Resource$Projects$Locations$Authproviders$Authorizations {
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://agentidentity.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://agentidentity.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://agentidentity.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+parent}/authorizations').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);
}
}
}
agentidentity_v1beta.Resource$Projects$Locations$Authproviders$Authorizations = Resource$Projects$Locations$Authproviders$Authorizations;
})(agentidentity_v1beta || (exports.agentidentity_v1beta = agentidentity_v1beta = {}));
/*! THIS FILE IS AUTO-GENERATED */
import { AuthPlus } from 'googleapis-common';
import { agentidentitycredentials_v1 } from './v1';
import { agentidentitycredentials_v1alpha } from './v1alpha';
import { agentidentitycredentials_v1beta } from './v1beta';
export declare const VERSIONS: {
v1: typeof agentidentitycredentials_v1.Agentidentitycredentials;
v1alpha: typeof agentidentitycredentials_v1alpha.Agentidentitycredentials;
v1beta: typeof agentidentitycredentials_v1beta.Agentidentitycredentials;
};
export declare function agentidentitycredentials(version: 'v1'): agentidentitycredentials_v1.Agentidentitycredentials;
export declare function agentidentitycredentials(options: agentidentitycredentials_v1.Options): agentidentitycredentials_v1.Agentidentitycredentials;
export declare function agentidentitycredentials(version: 'v1alpha'): agentidentitycredentials_v1alpha.Agentidentitycredentials;
export declare function agentidentitycredentials(options: agentidentitycredentials_v1alpha.Options): agentidentitycredentials_v1alpha.Agentidentitycredentials;
export declare function agentidentitycredentials(version: 'v1beta'): agentidentitycredentials_v1beta.Agentidentitycredentials;
export declare function agentidentitycredentials(options: agentidentitycredentials_v1beta.Options): agentidentitycredentials_v1beta.Agentidentitycredentials;
declare const auth: AuthPlus;
export { auth };
export { agentidentitycredentials_v1 };
export { agentidentitycredentials_v1alpha };
export { agentidentitycredentials_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.agentidentitycredentials_v1beta = exports.agentidentitycredentials_v1alpha = exports.agentidentitycredentials_v1 = exports.auth = exports.VERSIONS = void 0;
exports.agentidentitycredentials = agentidentitycredentials;
/*! THIS FILE IS AUTO-GENERATED */
const googleapis_common_1 = require("googleapis-common");
const v1_1 = require("./v1");
Object.defineProperty(exports, "agentidentitycredentials_v1", { enumerable: true, get: function () { return v1_1.agentidentitycredentials_v1; } });
const v1alpha_1 = require("./v1alpha");
Object.defineProperty(exports, "agentidentitycredentials_v1alpha", { enumerable: true, get: function () { return v1alpha_1.agentidentitycredentials_v1alpha; } });
const v1beta_1 = require("./v1beta");
Object.defineProperty(exports, "agentidentitycredentials_v1beta", { enumerable: true, get: function () { return v1beta_1.agentidentitycredentials_v1beta; } });
exports.VERSIONS = {
v1: v1_1.agentidentitycredentials_v1.Agentidentitycredentials,
v1alpha: v1alpha_1.agentidentitycredentials_v1alpha.Agentidentitycredentials,
v1beta: v1beta_1.agentidentitycredentials_v1beta.Agentidentitycredentials,
};
function agentidentitycredentials(versionOrOptions) {
return (0, googleapis_common_1.getAPI)('agentidentitycredentials', 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 agentidentitycredentials_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;
}
/**
* Agent Identity Credentials API
*
* agentidentitycredentials.googleapis.com API.
*
* @example
* ```js
* const {google} = require('googleapis');
* const agentidentitycredentials = google.agentidentitycredentials('v1');
* ```
*/
export class Agentidentitycredentials {
context: APIRequestContext;
projects: Resource$Projects;
constructor(options: GlobalOptions, google?: GoogleConfigurable);
}
/**
* Indicates the user has rejected the permission delegation or cancelled the request.
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1_ConsentRejected {
}
/**
* Request message for FinalizeCredentials.
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1_FinalizeCredentialsRequest {
/**
* Required. The same consent_nonce value that was provided during redirect in the UriConsentRequired metadata.
*/
consentNonce?: string | null;
/**
* Required. The identity of the end user.
*/
userId?: string | null;
/**
* Required. The encrypted state passed back from the consent flow.
*/
userIdValidationState?: string | null;
}
/**
* Response message for FinalizeCredentials. Intentionally empty
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1_FinalizeCredentialsResponse {
}
/**
* Indicates that the credential retrieval is pending. The caller should retry the RetrieveCredentials request after some time.
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1_Pending {
}
/**
* Request message for RetrieveCredentials.
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1_RetrieveCredentialsRequest {
/**
* Optional. The URI to redirect the user to after consent is completed. This field is required for authproviders using the 3-legged OAuth flow. For other authprovider types, this field is unused but not rejected.
*/
continueUri?: string | null;
/**
* Optional. Input only. Set this field only if the previous token was expired or invalid. This value must be the full, previously returned token string. Will trigger a refresh of the access token with a stored refresh token, if possible, or a new consent flow.
*/
forceRefreshToken?: string | null;
/**
* Optional. The OAuth scopes required for this access.
*/
scopes?: string[] | null;
/**
* Required. The identity of the end user.
*/
userId?: string | null;
}
/**
* Response message for RetrieveCredentials. Contains the access tokens and related artifacts.
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1_RetrieveCredentialsResponse {
/**
* Message indicating consent was rejected.
*/
consentRejected?: Schema$GoogleCloudAgentidentitycredentialsV1_ConsentRejected;
/**
* Message indicating credential retrieval is pending.
*/
pending?: Schema$GoogleCloudAgentidentitycredentialsV1_Pending;
/**
* Message indicating credentials were successfully retrieved.
*/
success?: Schema$GoogleCloudAgentidentitycredentialsV1_Success;
/**
* Message indicating uri based consent is required.
*/
uriConsentRequired?: Schema$GoogleCloudAgentidentitycredentialsV1_UriConsentRequired;
}
/**
* Message indicating successful retrieval of credentials.
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1_Success {
/**
* The expiration time of the token. This does not guarantee that the token will be valid until this time, since the token could be revoked earlier. There could also be clock skew between the auth provider and the client so it may expire slightly earlier. If not set, the token might be permanent or it may be that the service does not (or cannot) know when it will expire.
*/
expireTime?: string | null;
/**
* The HTTP header name where the token should be placed.
*/
header?: string | null;
/**
* The scopes actually associated with the retrieved token. End users may have rejected some requested scopes, or the third-party authorization servers can return a different set of scopes than what was asked for. Callers should verify that all required scopes for their intended use are included in this list.
*/
scopes?: string[] | null;
/**
* The retrieved access token or credential for the end user. On MCPTool call, for an invalid token OAuth spec says this should return 401 or 403, but MCPServers may implement this differently. If you get any flavor of `PERMISSION_DENIED`, retry your original request to RetrieveCredentials with force_refresh_token set to the expired/invalid token string, which will fetch a new token or initiate a new consent flow.
*/
token?: string | null;
}
/**
* Indicates that the user must visit the provided URI to consent to delegate permission to the agent to act on their behalf. The caller can either poll the `RetrieveCredentials` method, or await the /ValidateUserId callback
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1_UriConsentRequired {
/**
* Output only. The URL where the user should be redirected to grant consent. This will always be present.
*/
authorizationUri?: string | null;
/**
* Output only. A one-time, randomly generated value that validates the entire consent flow is handled by a single user, avoiding CSRF attacks. It must be submitted with the FinalizeCredentials request to complete the OAuth exchange. This will always be present. Implemented per https://www.rfc-editor.org/rfc/rfc6819#section-5.3.5
*/
consentNonce?: string | null;
/**
* Output only. The unique ID of the credentials retrieval operation.
*/
uid?: string | null;
}
export class Resource$Projects {
context: APIRequestContext;
locations: Resource$Projects$Locations;
constructor(context: APIRequestContext);
}
export class Resource$Projects$Locations {
context: APIRequestContext;
authProviders: Resource$Projects$Locations$Authproviders;
constructor(context: APIRequestContext);
}
export class Resource$Projects$Locations$Authproviders {
context: APIRequestContext;
credentials: Resource$Projects$Locations$Authproviders$Credentials;
constructor(context: APIRequestContext);
}
export class Resource$Projects$Locations$Authproviders$Credentials {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* Finalizes the credentials after a successful consent flow.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/agentidentitycredentials.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 agentidentitycredentials = google.agentidentitycredentials('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 agentidentitycredentials.projects.locations.authProviders.credentials.finalize(
* {
* // Required. The resource name of the AuthProvider. Format: `projects/{project\}/locations/{location\}/authProviders/{auth_provider\}`
* authProvider:
* 'projects/my-project/locations/my-location/authProviders/my-authProvider',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {
* // "consentNonce": "my_consentNonce",
* // "userId": "my_userId",
* // "userIdValidationState": "my_userIdValidationState"
* // }
* },
* },
* );
* console.log(res.data);
*
* // Example response
* // {}
* }
*
* 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.
*/
finalize(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Finalize, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
finalize(params?: Params$Resource$Projects$Locations$Authproviders$Credentials$Finalize, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudAgentidentitycredentialsV1_FinalizeCredentialsResponse>>;
finalize(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Finalize, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
finalize(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Finalize, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1_FinalizeCredentialsResponse>, callback: BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1_FinalizeCredentialsResponse>): void;
finalize(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Finalize, callback: BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1_FinalizeCredentialsResponse>): void;
finalize(callback: BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1_FinalizeCredentialsResponse>): void;
/**
* Retrieves authorization credentials for an authprovider, or indicates what action needs to be taken to obtain credentials. If the `token` field in the response is populated, credential retrieval was successful. If one of the fields in the `status` oneof is populated, further action is required to obtain credentials, such as redirecting the user for consent. View comments on `RetrieveCredentialsResponse` for more information.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/agentidentitycredentials.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 agentidentitycredentials = google.agentidentitycredentials('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 agentidentitycredentials.projects.locations.authProviders.credentials.retrieve(
* {
* // Required. The parent resource name of the AuthProvider. Format: `projects/{project\}/locations/{location\}/authProviders/{auth_provider\}`
* authProvider:
* 'projects/my-project/locations/my-location/authProviders/my-authProvider',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {
* // "continueUri": "my_continueUri",
* // "forceRefreshToken": "my_forceRefreshToken",
* // "scopes": [],
* // "userId": "my_userId"
* // }
* },
* },
* );
* console.log(res.data);
*
* // Example response
* // {
* // "consentRejected": {},
* // "pending": {},
* // "success": {},
* // "uriConsentRequired": {}
* // }
* }
*
* 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.
*/
retrieve(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Retrieve, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
retrieve(params?: Params$Resource$Projects$Locations$Authproviders$Credentials$Retrieve, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudAgentidentitycredentialsV1_RetrieveCredentialsResponse>>;
retrieve(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Retrieve, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
retrieve(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Retrieve, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1_RetrieveCredentialsResponse>, callback: BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1_RetrieveCredentialsResponse>): void;
retrieve(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Retrieve, callback: BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1_RetrieveCredentialsResponse>): void;
retrieve(callback: BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1_RetrieveCredentialsResponse>): void;
}
export interface Params$Resource$Projects$Locations$Authproviders$Credentials$Finalize extends StandardParameters {
/**
* Required. The resource name of the AuthProvider. Format: `projects/{project\}/locations/{location\}/authProviders/{auth_provider\}`
*/
authProvider?: string;
/**
* Request body metadata
*/
requestBody?: Schema$GoogleCloudAgentidentitycredentialsV1_FinalizeCredentialsRequest;
}
export interface Params$Resource$Projects$Locations$Authproviders$Credentials$Retrieve extends StandardParameters {
/**
* Required. The parent resource name of the AuthProvider. Format: `projects/{project\}/locations/{location\}/authProviders/{auth_provider\}`
*/
authProvider?: string;
/**
* Request body metadata
*/
requestBody?: Schema$GoogleCloudAgentidentitycredentialsV1_RetrieveCredentialsRequest;
}
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.agentidentitycredentials_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 agentidentitycredentials_v1;
(function (agentidentitycredentials_v1) {
/**
* Agent Identity Credentials API
*
* agentidentitycredentials.googleapis.com API.
*
* @example
* ```js
* const {google} = require('googleapis');
* const agentidentitycredentials = google.agentidentitycredentials('v1');
* ```
*/
class Agentidentitycredentials {
context;
projects;
constructor(options, google) {
this.context = {
_options: options || {},
google,
};
this.projects = new Resource$Projects(this.context);
}
}
agentidentitycredentials_v1.Agentidentitycredentials = Agentidentitycredentials;
class Resource$Projects {
context;
locations;
constructor(context) {
this.context = context;
this.locations = new Resource$Projects$Locations(this.context);
}
}
agentidentitycredentials_v1.Resource$Projects = Resource$Projects;
class Resource$Projects$Locations {
context;
authProviders;
constructor(context) {
this.context = context;
this.authProviders = new Resource$Projects$Locations$Authproviders(this.context);
}
}
agentidentitycredentials_v1.Resource$Projects$Locations = Resource$Projects$Locations;
class Resource$Projects$Locations$Authproviders {
context;
credentials;
constructor(context) {
this.context = context;
this.credentials =
new Resource$Projects$Locations$Authproviders$Credentials(this.context);
}
}
agentidentitycredentials_v1.Resource$Projects$Locations$Authproviders = Resource$Projects$Locations$Authproviders;
class Resource$Projects$Locations$Authproviders$Credentials {
context;
constructor(context) {
this.context = context;
}
finalize(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://agentidentitycredentials.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+authProvider}/credentials:finalize').replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
apiVersion: '',
}, options),
params,
requiredParams: ['authProvider'],
pathParams: ['authProvider'],
context: this.context,
};
if (callback) {
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
}
else {
return (0, googleapis_common_1.createAPIRequest)(parameters);
}
}
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://agentidentitycredentials.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+authProvider}/credentials:retrieve').replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
apiVersion: '',
}, options),
params,
requiredParams: ['authProvider'],
pathParams: ['authProvider'],
context: this.context,
};
if (callback) {
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
}
else {
return (0, googleapis_common_1.createAPIRequest)(parameters);
}
}
}
agentidentitycredentials_v1.Resource$Projects$Locations$Authproviders$Credentials = Resource$Projects$Locations$Authproviders$Credentials;
})(agentidentitycredentials_v1 || (exports.agentidentitycredentials_v1 = agentidentitycredentials_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 agentidentitycredentials_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;
}
/**
* Agent Identity Credentials API
*
* agentidentitycredentials.googleapis.com API.
*
* @example
* ```js
* const {google} = require('googleapis');
* const agentidentitycredentials = google.agentidentitycredentials('v1alpha');
* ```
*/
export class Agentidentitycredentials {
context: APIRequestContext;
projects: Resource$Projects;
constructor(options: GlobalOptions, google?: GoogleConfigurable);
}
/**
* Indicates the user has rejected the permission delegation or cancelled the request.
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1alpha_ConsentRejected {
}
/**
* Request message for FinalizeCredentials.
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1alpha_FinalizeCredentialsRequest {
/**
* Required. The same consent_nonce value that was provided during redirect in the UriConsentRequired metadata.
*/
consentNonce?: string | null;
/**
* Required. The identity of the end user.
*/
userId?: string | null;
/**
* Required. The encrypted state passed back from the consent flow.
*/
userIdValidationState?: string | null;
}
/**
* Response message for FinalizeCredentials. Intentionally empty
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1alpha_FinalizeCredentialsResponse {
}
/**
* Indicates that the credential retrieval is pending. The caller should retry the RetrieveCredentials request after some time.
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1alpha_Pending {
}
/**
* Request message for RetrieveCredentials.
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1alpha_RetrieveCredentialsRequest {
/**
* Optional. The URI to redirect the user to after consent is completed. This field is required for authproviders using the 3-legged OAuth flow. For other authprovider types, this field is unused but not rejected.
*/
continueUri?: string | null;
/**
* Optional. Input only. Set this field only if the previous token was expired or invalid. This value must be the full, previously returned token string. Will trigger a refresh of the access token with a stored refresh token, if possible, or a new consent flow.
*/
forceRefreshToken?: string | null;
/**
* Optional. The OAuth scopes required for this access.
*/
scopes?: string[] | null;
/**
* Required. The identity of the end user.
*/
userId?: string | null;
}
/**
* Response message for RetrieveCredentials. Contains the access tokens and related artifacts.
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1alpha_RetrieveCredentialsResponse {
/**
* Message indicating consent was rejected.
*/
consentRejected?: Schema$GoogleCloudAgentidentitycredentialsV1alpha_ConsentRejected;
/**
* Message indicating credential retrieval is pending.
*/
pending?: Schema$GoogleCloudAgentidentitycredentialsV1alpha_Pending;
/**
* Message indicating credentials were successfully retrieved.
*/
success?: Schema$GoogleCloudAgentidentitycredentialsV1alpha_Success;
/**
* Message indicating uri based consent is required.
*/
uriConsentRequired?: Schema$GoogleCloudAgentidentitycredentialsV1alpha_UriConsentRequired;
}
/**
* Message indicating successful retrieval of credentials.
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1alpha_Success {
/**
* The expiration time of the token. This does not guarantee that the token will be valid until this time, since the token could be revoked earlier. There could also be clock skew between the auth provider and the client so it may expire slightly earlier. If not set, the token might be permanent or it may be that the service does not (or cannot) know when it will expire.
*/
expireTime?: string | null;
/**
* The HTTP header name where the token should be placed.
*/
header?: string | null;
/**
* The scopes actually associated with the retrieved token. End users may have rejected some requested scopes, or the third-party authorization servers can return a different set of scopes than what was asked for. Callers should verify that all required scopes for their intended use are included in this list.
*/
scopes?: string[] | null;
/**
* The retrieved access token or credential for the end user. On MCPTool call, for an invalid token OAuth spec says this should return 401 or 403, but MCPServers may implement this differently. If you get any flavor of `PERMISSION_DENIED`, retry your original request to RetrieveCredentials with force_refresh_token set to the expired/invalid token string, which will fetch a new token or initiate a new consent flow.
*/
token?: string | null;
}
/**
* Indicates that the user must visit the provided URI to consent to delegate permission to the agent to act on their behalf. The caller can either poll the `RetrieveCredentials` method, or await the /ValidateUserId callback
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1alpha_UriConsentRequired {
/**
* Output only. The URL where the user should be redirected to grant consent. This will always be present.
*/
authorizationUri?: string | null;
/**
* Output only. A one-time, randomly generated value that validates the entire consent flow is handled by a single user, avoiding CSRF attacks. It must be submitted with the FinalizeCredentials request to complete the OAuth exchange. This will always be present. Implemented per https://www.rfc-editor.org/rfc/rfc6819#section-5.3.5
*/
consentNonce?: string | null;
/**
* Output only. The unique ID of the credentials retrieval operation.
*/
uid?: string | null;
}
export class Resource$Projects {
context: APIRequestContext;
locations: Resource$Projects$Locations;
constructor(context: APIRequestContext);
}
export class Resource$Projects$Locations {
context: APIRequestContext;
authProviders: Resource$Projects$Locations$Authproviders;
constructor(context: APIRequestContext);
}
export class Resource$Projects$Locations$Authproviders {
context: APIRequestContext;
credentials: Resource$Projects$Locations$Authproviders$Credentials;
constructor(context: APIRequestContext);
}
export class Resource$Projects$Locations$Authproviders$Credentials {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* Finalizes the credentials after a successful consent flow.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/agentidentitycredentials.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 agentidentitycredentials = google.agentidentitycredentials('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 agentidentitycredentials.projects.locations.authProviders.credentials.finalize(
* {
* // Required. The resource name of the AuthProvider. Format: `projects/{project\}/locations/{location\}/authProviders/{auth_provider\}`
* authProvider:
* 'projects/my-project/locations/my-location/authProviders/my-authProvider',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {
* // "consentNonce": "my_consentNonce",
* // "userId": "my_userId",
* // "userIdValidationState": "my_userIdValidationState"
* // }
* },
* },
* );
* console.log(res.data);
*
* // Example response
* // {}
* }
*
* 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.
*/
finalize(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Finalize, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
finalize(params?: Params$Resource$Projects$Locations$Authproviders$Credentials$Finalize, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudAgentidentitycredentialsV1alpha_FinalizeCredentialsResponse>>;
finalize(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Finalize, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
finalize(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Finalize, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1alpha_FinalizeCredentialsResponse>, callback: BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1alpha_FinalizeCredentialsResponse>): void;
finalize(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Finalize, callback: BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1alpha_FinalizeCredentialsResponse>): void;
finalize(callback: BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1alpha_FinalizeCredentialsResponse>): void;
/**
* Retrieves authorization credentials for an authprovider, or indicates what action needs to be taken to obtain credentials. If the `token` field in the response is populated, credential retrieval was successful. If one of the fields in the `status` oneof is populated, further action is required to obtain credentials, such as redirecting the user for consent. View comments on `RetrieveCredentialsResponse` for more information.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/agentidentitycredentials.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 agentidentitycredentials = google.agentidentitycredentials('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 agentidentitycredentials.projects.locations.authProviders.credentials.retrieve(
* {
* // Required. The parent resource name of the AuthProvider. Format: `projects/{project\}/locations/{location\}/authProviders/{auth_provider\}`
* authProvider:
* 'projects/my-project/locations/my-location/authProviders/my-authProvider',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {
* // "continueUri": "my_continueUri",
* // "forceRefreshToken": "my_forceRefreshToken",
* // "scopes": [],
* // "userId": "my_userId"
* // }
* },
* },
* );
* console.log(res.data);
*
* // Example response
* // {
* // "consentRejected": {},
* // "pending": {},
* // "success": {},
* // "uriConsentRequired": {}
* // }
* }
*
* 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.
*/
retrieve(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Retrieve, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
retrieve(params?: Params$Resource$Projects$Locations$Authproviders$Credentials$Retrieve, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudAgentidentitycredentialsV1alpha_RetrieveCredentialsResponse>>;
retrieve(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Retrieve, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
retrieve(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Retrieve, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1alpha_RetrieveCredentialsResponse>, callback: BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1alpha_RetrieveCredentialsResponse>): void;
retrieve(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Retrieve, callback: BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1alpha_RetrieveCredentialsResponse>): void;
retrieve(callback: BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1alpha_RetrieveCredentialsResponse>): void;
}
export interface Params$Resource$Projects$Locations$Authproviders$Credentials$Finalize extends StandardParameters {
/**
* Required. The resource name of the AuthProvider. Format: `projects/{project\}/locations/{location\}/authProviders/{auth_provider\}`
*/
authProvider?: string;
/**
* Request body metadata
*/
requestBody?: Schema$GoogleCloudAgentidentitycredentialsV1alpha_FinalizeCredentialsRequest;
}
export interface Params$Resource$Projects$Locations$Authproviders$Credentials$Retrieve extends StandardParameters {
/**
* Required. The parent resource name of the AuthProvider. Format: `projects/{project\}/locations/{location\}/authProviders/{auth_provider\}`
*/
authProvider?: string;
/**
* Request body metadata
*/
requestBody?: Schema$GoogleCloudAgentidentitycredentialsV1alpha_RetrieveCredentialsRequest;
}
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.agentidentitycredentials_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 agentidentitycredentials_v1alpha;
(function (agentidentitycredentials_v1alpha) {
/**
* Agent Identity Credentials API
*
* agentidentitycredentials.googleapis.com API.
*
* @example
* ```js
* const {google} = require('googleapis');
* const agentidentitycredentials = google.agentidentitycredentials('v1alpha');
* ```
*/
class Agentidentitycredentials {
context;
projects;
constructor(options, google) {
this.context = {
_options: options || {},
google,
};
this.projects = new Resource$Projects(this.context);
}
}
agentidentitycredentials_v1alpha.Agentidentitycredentials = Agentidentitycredentials;
class Resource$Projects {
context;
locations;
constructor(context) {
this.context = context;
this.locations = new Resource$Projects$Locations(this.context);
}
}
agentidentitycredentials_v1alpha.Resource$Projects = Resource$Projects;
class Resource$Projects$Locations {
context;
authProviders;
constructor(context) {
this.context = context;
this.authProviders = new Resource$Projects$Locations$Authproviders(this.context);
}
}
agentidentitycredentials_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations;
class Resource$Projects$Locations$Authproviders {
context;
credentials;
constructor(context) {
this.context = context;
this.credentials =
new Resource$Projects$Locations$Authproviders$Credentials(this.context);
}
}
agentidentitycredentials_v1alpha.Resource$Projects$Locations$Authproviders = Resource$Projects$Locations$Authproviders;
class Resource$Projects$Locations$Authproviders$Credentials {
context;
constructor(context) {
this.context = context;
}
finalize(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://agentidentitycredentials.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+authProvider}/credentials:finalize').replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
apiVersion: '',
}, options),
params,
requiredParams: ['authProvider'],
pathParams: ['authProvider'],
context: this.context,
};
if (callback) {
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
}
else {
return (0, googleapis_common_1.createAPIRequest)(parameters);
}
}
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://agentidentitycredentials.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+authProvider}/credentials:retrieve').replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
apiVersion: '',
}, options),
params,
requiredParams: ['authProvider'],
pathParams: ['authProvider'],
context: this.context,
};
if (callback) {
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
}
else {
return (0, googleapis_common_1.createAPIRequest)(parameters);
}
}
}
agentidentitycredentials_v1alpha.Resource$Projects$Locations$Authproviders$Credentials = Resource$Projects$Locations$Authproviders$Credentials;
})(agentidentitycredentials_v1alpha || (exports.agentidentitycredentials_v1alpha = agentidentitycredentials_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 agentidentitycredentials_v1beta {
export interface Options extends GlobalOptions {
version: 'v1beta';
}
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;
}
/**
* Agent Identity Credentials API
*
* agentidentitycredentials.googleapis.com API.
*
* @example
* ```js
* const {google} = require('googleapis');
* const agentidentitycredentials = google.agentidentitycredentials('v1beta');
* ```
*/
export class Agentidentitycredentials {
context: APIRequestContext;
projects: Resource$Projects;
constructor(options: GlobalOptions, google?: GoogleConfigurable);
}
/**
* Indicates the user has rejected the permission delegation or cancelled the request.
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1beta_ConsentRejected {
}
/**
* Request message for FinalizeCredentials.
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1beta_FinalizeCredentialsRequest {
/**
* Required. The same consent_nonce value that was provided during redirect in the UriConsentRequired metadata.
*/
consentNonce?: string | null;
/**
* Required. The identity of the end user.
*/
userId?: string | null;
/**
* Required. The encrypted state passed back from the consent flow.
*/
userIdValidationState?: string | null;
}
/**
* Response message for FinalizeCredentials. Intentionally empty
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1beta_FinalizeCredentialsResponse {
}
/**
* Indicates that the credential retrieval is pending. The caller should retry the RetrieveCredentials request after some time.
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1beta_Pending {
}
/**
* Request message for RetrieveCredentials.
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1beta_RetrieveCredentialsRequest {
/**
* Optional. The URI to redirect the user to after consent is completed. This field is required for authproviders using the 3-legged OAuth flow. For other authprovider types, this field is unused but not rejected.
*/
continueUri?: string | null;
/**
* Optional. Input only. Set this field only if the previous token was expired or invalid. This value must be the full, previously returned token string. Will trigger a refresh of the access token with a stored refresh token, if possible, or a new consent flow.
*/
forceRefreshToken?: string | null;
/**
* Optional. The OAuth scopes required for this access.
*/
scopes?: string[] | null;
/**
* Required. The identity of the end user.
*/
userId?: string | null;
}
/**
* Response message for RetrieveCredentials. Contains the access tokens and related artifacts.
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1beta_RetrieveCredentialsResponse {
/**
* Message indicating consent was rejected.
*/
consentRejected?: Schema$GoogleCloudAgentidentitycredentialsV1beta_ConsentRejected;
/**
* Message indicating credential retrieval is pending.
*/
pending?: Schema$GoogleCloudAgentidentitycredentialsV1beta_Pending;
/**
* Message indicating credentials were successfully retrieved.
*/
success?: Schema$GoogleCloudAgentidentitycredentialsV1beta_Success;
/**
* Message indicating uri based consent is required.
*/
uriConsentRequired?: Schema$GoogleCloudAgentidentitycredentialsV1beta_UriConsentRequired;
}
/**
* Message indicating successful retrieval of credentials.
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1beta_Success {
/**
* The expiration time of the token. This does not guarantee that the token will be valid until this time, since the token could be revoked earlier. There could also be clock skew between the auth provider and the client so it may expire slightly earlier. If not set, the token might be permanent or it may be that the service does not (or cannot) know when it will expire.
*/
expireTime?: string | null;
/**
* The HTTP header name where the token should be placed.
*/
header?: string | null;
/**
* The scopes actually associated with the retrieved token. End users may have rejected some requested scopes, or the third-party authorization servers can return a different set of scopes than what was asked for. Callers should verify that all required scopes for their intended use are included in this list.
*/
scopes?: string[] | null;
/**
* The retrieved access token or credential for the end user. On MCPTool call, for an invalid token OAuth spec says this should return 401 or 403, but MCPServers may implement this differently. If you get any flavor of `PERMISSION_DENIED`, retry your original request to RetrieveCredentials with force_refresh_token set to the expired/invalid token string, which will fetch a new token or initiate a new consent flow.
*/
token?: string | null;
}
/**
* Indicates that the user must visit the provided URI to consent to delegate permission to the agent to act on their behalf. The caller can either poll the `RetrieveCredentials` method, or await the /ValidateUserId callback
*/
export interface Schema$GoogleCloudAgentidentitycredentialsV1beta_UriConsentRequired {
/**
* Output only. The URL where the user should be redirected to grant consent. This will always be present.
*/
authorizationUri?: string | null;
/**
* Output only. A one-time, randomly generated value that validates the entire consent flow is handled by a single user, avoiding CSRF attacks. It must be submitted with the FinalizeCredentials request to complete the OAuth exchange. This will always be present. Implemented per https://www.rfc-editor.org/rfc/rfc6819#section-5.3.5
*/
consentNonce?: string | null;
/**
* Output only. The unique ID of the credentials retrieval operation.
*/
uid?: string | null;
}
export class Resource$Projects {
context: APIRequestContext;
locations: Resource$Projects$Locations;
constructor(context: APIRequestContext);
}
export class Resource$Projects$Locations {
context: APIRequestContext;
authProviders: Resource$Projects$Locations$Authproviders;
constructor(context: APIRequestContext);
}
export class Resource$Projects$Locations$Authproviders {
context: APIRequestContext;
credentials: Resource$Projects$Locations$Authproviders$Credentials;
constructor(context: APIRequestContext);
}
export class Resource$Projects$Locations$Authproviders$Credentials {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* Finalizes the credentials after a successful consent flow.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/agentidentitycredentials.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 agentidentitycredentials = google.agentidentitycredentials('v1beta');
*
* 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 agentidentitycredentials.projects.locations.authProviders.credentials.finalize(
* {
* // Required. The resource name of the AuthProvider. Format: `projects/{project\}/locations/{location\}/authProviders/{auth_provider\}`
* authProvider:
* 'projects/my-project/locations/my-location/authProviders/my-authProvider',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {
* // "consentNonce": "my_consentNonce",
* // "userId": "my_userId",
* // "userIdValidationState": "my_userIdValidationState"
* // }
* },
* },
* );
* console.log(res.data);
*
* // Example response
* // {}
* }
*
* 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.
*/
finalize(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Finalize, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
finalize(params?: Params$Resource$Projects$Locations$Authproviders$Credentials$Finalize, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudAgentidentitycredentialsV1beta_FinalizeCredentialsResponse>>;
finalize(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Finalize, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
finalize(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Finalize, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1beta_FinalizeCredentialsResponse>, callback: BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1beta_FinalizeCredentialsResponse>): void;
finalize(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Finalize, callback: BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1beta_FinalizeCredentialsResponse>): void;
finalize(callback: BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1beta_FinalizeCredentialsResponse>): void;
/**
* Retrieves authorization credentials for an authprovider, or indicates what action needs to be taken to obtain credentials. If the `token` field in the response is populated, credential retrieval was successful. If one of the fields in the `status` oneof is populated, further action is required to obtain credentials, such as redirecting the user for consent. View comments on `RetrieveCredentialsResponse` for more information.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/agentidentitycredentials.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 agentidentitycredentials = google.agentidentitycredentials('v1beta');
*
* 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 agentidentitycredentials.projects.locations.authProviders.credentials.retrieve(
* {
* // Required. The parent resource name of the AuthProvider. Format: `projects/{project\}/locations/{location\}/authProviders/{auth_provider\}`
* authProvider:
* 'projects/my-project/locations/my-location/authProviders/my-authProvider',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {
* // "continueUri": "my_continueUri",
* // "forceRefreshToken": "my_forceRefreshToken",
* // "scopes": [],
* // "userId": "my_userId"
* // }
* },
* },
* );
* console.log(res.data);
*
* // Example response
* // {
* // "consentRejected": {},
* // "pending": {},
* // "success": {},
* // "uriConsentRequired": {}
* // }
* }
*
* 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.
*/
retrieve(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Retrieve, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
retrieve(params?: Params$Resource$Projects$Locations$Authproviders$Credentials$Retrieve, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudAgentidentitycredentialsV1beta_RetrieveCredentialsResponse>>;
retrieve(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Retrieve, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
retrieve(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Retrieve, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1beta_RetrieveCredentialsResponse>, callback: BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1beta_RetrieveCredentialsResponse>): void;
retrieve(params: Params$Resource$Projects$Locations$Authproviders$Credentials$Retrieve, callback: BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1beta_RetrieveCredentialsResponse>): void;
retrieve(callback: BodyResponseCallback<Schema$GoogleCloudAgentidentitycredentialsV1beta_RetrieveCredentialsResponse>): void;
}
export interface Params$Resource$Projects$Locations$Authproviders$Credentials$Finalize extends StandardParameters {
/**
* Required. The resource name of the AuthProvider. Format: `projects/{project\}/locations/{location\}/authProviders/{auth_provider\}`
*/
authProvider?: string;
/**
* Request body metadata
*/
requestBody?: Schema$GoogleCloudAgentidentitycredentialsV1beta_FinalizeCredentialsRequest;
}
export interface Params$Resource$Projects$Locations$Authproviders$Credentials$Retrieve extends StandardParameters {
/**
* Required. The parent resource name of the AuthProvider. Format: `projects/{project\}/locations/{location\}/authProviders/{auth_provider\}`
*/
authProvider?: string;
/**
* Request body metadata
*/
requestBody?: Schema$GoogleCloudAgentidentitycredentialsV1beta_RetrieveCredentialsRequest;
}
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.agentidentitycredentials_v1beta = 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 agentidentitycredentials_v1beta;
(function (agentidentitycredentials_v1beta) {
/**
* Agent Identity Credentials API
*
* agentidentitycredentials.googleapis.com API.
*
* @example
* ```js
* const {google} = require('googleapis');
* const agentidentitycredentials = google.agentidentitycredentials('v1beta');
* ```
*/
class Agentidentitycredentials {
context;
projects;
constructor(options, google) {
this.context = {
_options: options || {},
google,
};
this.projects = new Resource$Projects(this.context);
}
}
agentidentitycredentials_v1beta.Agentidentitycredentials = Agentidentitycredentials;
class Resource$Projects {
context;
locations;
constructor(context) {
this.context = context;
this.locations = new Resource$Projects$Locations(this.context);
}
}
agentidentitycredentials_v1beta.Resource$Projects = Resource$Projects;
class Resource$Projects$Locations {
context;
authProviders;
constructor(context) {
this.context = context;
this.authProviders = new Resource$Projects$Locations$Authproviders(this.context);
}
}
agentidentitycredentials_v1beta.Resource$Projects$Locations = Resource$Projects$Locations;
class Resource$Projects$Locations$Authproviders {
context;
credentials;
constructor(context) {
this.context = context;
this.credentials =
new Resource$Projects$Locations$Authproviders$Credentials(this.context);
}
}
agentidentitycredentials_v1beta.Resource$Projects$Locations$Authproviders = Resource$Projects$Locations$Authproviders;
class Resource$Projects$Locations$Authproviders$Credentials {
context;
constructor(context) {
this.context = context;
}
finalize(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://agentidentitycredentials.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+authProvider}/credentials:finalize').replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
apiVersion: '',
}, options),
params,
requiredParams: ['authProvider'],
pathParams: ['authProvider'],
context: this.context,
};
if (callback) {
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
}
else {
return (0, googleapis_common_1.createAPIRequest)(parameters);
}
}
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://agentidentitycredentials.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+authProvider}/credentials:retrieve').replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
apiVersion: '',
}, options),
params,
requiredParams: ['authProvider'],
pathParams: ['authProvider'],
context: this.context,
};
if (callback) {
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
}
else {
return (0, googleapis_common_1.createAPIRequest)(parameters);
}
}
}
agentidentitycredentials_v1beta.Resource$Projects$Locations$Authproviders$Credentials = Resource$Projects$Locations$Authproviders$Credentials;
})(agentidentitycredentials_v1beta || (exports.agentidentitycredentials_v1beta = agentidentitycredentials_v1beta = {}));

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_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 agentregistry_v1;
(function (agentregistry_v1) {
/**
* 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('v1');
* ```
*/
class Agentregistry {
context;
projects;
constructor(options, google) {
this.context = {
_options: options || {},
google,
};
this.projects = new Resource$Projects(this.context);
}
}
agentregistry_v1.Agentregistry = Agentregistry;
class Resource$Projects {
context;
locations;
constructor(context) {
this.context = context;
this.locations = new Resource$Projects$Locations(this.context);
}
}
agentregistry_v1.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 + '/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://agentregistry.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);
}
}
}
agentregistry_v1.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 + '/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://agentregistry.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+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 + '/v1/{+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_v1.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 + '/v1/{+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 + '/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);
}
}
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 + '/v1/{+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 + '/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://agentregistry.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+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 + '/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);
}
}
}
agentregistry_v1.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 + '/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://agentregistry.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+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_v1.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 + '/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://agentregistry.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+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 + '/v1/{+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_v1.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 + '/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://agentregistry.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://agentregistry.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://agentregistry.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);
}
}
}
agentregistry_v1.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 + '/v1/{+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 + '/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://agentregistry.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://agentregistry.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+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 + '/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);
}
}
}
agentregistry_v1.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services;
})(agentregistry_v1 || (exports.agentregistry_v1 = agentregistry_v1 = {}));
/*! THIS FILE IS AUTO-GENERATED */
import { AuthPlus } from 'googleapis-common';
import { cloudproductregistry_v1 } from './v1';
export declare const VERSIONS: {
v1: typeof cloudproductregistry_v1.Cloudproductregistry;
};
export declare function cloudproductregistry(version: 'v1'): cloudproductregistry_v1.Cloudproductregistry;
export declare function cloudproductregistry(options: cloudproductregistry_v1.Options): cloudproductregistry_v1.Cloudproductregistry;
declare const auth: AuthPlus;
export { auth };
export { cloudproductregistry_v1 };
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.cloudproductregistry_v1 = exports.auth = exports.VERSIONS = void 0;
exports.cloudproductregistry = cloudproductregistry;
/*! THIS FILE IS AUTO-GENERATED */
const googleapis_common_1 = require("googleapis-common");
const v1_1 = require("./v1");
Object.defineProperty(exports, "cloudproductregistry_v1", { enumerable: true, get: function () { return v1_1.cloudproductregistry_v1; } });
exports.VERSIONS = {
v1: v1_1.cloudproductregistry_v1.Cloudproductregistry,
};
function cloudproductregistry(versionOrOptions) {
return (0, googleapis_common_1.getAPI)('cloudproductregistry', 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 cloudproductregistry_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;
}
/**
* Cloud Product Registry API
*
* cloudproductregistry.googleapis.com API.
*
* @example
* ```js
* const {google} = require('googleapis');
* const cloudproductregistry = google.cloudproductregistry('v1');
* ```
*/
export class Cloudproductregistry {
context: APIRequestContext;
logicalProducts: Resource$Logicalproducts;
productSuites: Resource$Productsuites;
constructor(options: GlobalOptions, google?: GoogleConfigurable);
}
/**
* Response message for ListLogicalProducts.
*/
export interface Schema$ListLogicalProductsResponse {
/**
* Matched LogicalProducts
*/
logicalProducts?: Schema$LogicalProduct[];
/**
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
*/
nextPageToken?: string | null;
}
/**
* Response message for ListLogicalProductVariants.
*/
export interface Schema$ListLogicalProductVariantsResponse {
/**
* Matched LogicalProductVariants
*/
logicalProductVariants?: Schema$LogicalProductVariant[];
/**
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
*/
nextPageToken?: string | null;
}
/**
* Response message for ListProductSuites.
*/
export interface Schema$ListProductSuitesResponse {
/**
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
*/
nextPageToken?: string | null;
/**
* Matched ProductSuites
*/
productSuites?: Schema$ProductSuite[];
}
/**
* Represents an independent service offering that can be provisioned by a customer.
*/
export interface Schema$LogicalProduct {
/**
* Output only. Current Lifecycle state of the logical product.
*/
lifecycleState?: string | null;
/**
* Identifier. The resource name of the LogicalProduct. Format: logicalProducts/{logical_product\}.
*/
name?: string | null;
/**
* Product suite associated with the logical product. Format: productSuites/{product_suite\}.
*/
productSuite?: string | null;
/**
* Output only. Indicates whether the logical product has been replaced. If `false`, the product is active. If `true`, the product has been replaced by another type, and the `replacement` field contains the resource name of that replacement.
*/
replaced?: boolean | null;
/**
* Output only. The resource name of the Logical Entity that the logical product is replaced by. This field is only populated when this logical product is replaced by some other type. Eg: logicalProducts/{logical_product\}/variants/{variant\}, productSuites/{product_suite\}, etc.
*/
replacement?: string | null;
/**
* Display name of the LogicalProduct.
*/
title?: string | null;
/**
* Output only. Child variant resource references. Format: logicalProducts/{logical_product\}/variants/{variant\}
*/
variants?: string[] | null;
}
/**
* Represents a distinct offering derived from a primary product that retains core functionalities but offers specialized features for a specific market segment.
*/
export interface Schema$LogicalProductVariant {
/**
* Output only. Current Lifecycle state of the logical product variant.
*/
lifecycleState?: string | null;
/**
* Identifier. The resource name of the LogicalProductVariant. Format: logicalProducts/{logical_product\}/variants/{variant\}
*/
name?: string | null;
/**
* Output only. Indicates whether the logical product variant has been replaced. If `false`, the variant is active. If `true`, the variant has been replaced by another type, and the `replacement` field contains the resource name of that replacement.
*/
replaced?: boolean | null;
/**
* Output only. The resource name of the Logical Entity that the logical product variant is replaced by. This field is only populated when this logical product variant is replaced by some other type. Eg: logicalProducts/{logical_product\}, productSuites/{product_suite\}, etc.
*/
replacement?: string | null;
/**
* Display name of the LogicalProductVariant.
*/
title?: string | null;
}
/**
* Response message for LookupEntity.
*/
export interface Schema$LookupEntityResponse {
/**
* Matched LogicalProduct.
*/
logicalProduct?: Schema$LogicalProduct;
/**
* Matched LogicalProductVariant.
*/
logicalProductVariant?: Schema$LogicalProductVariant;
/**
* Matched ProductSuite.
*/
productSuite?: Schema$ProductSuite;
}
/**
* Represents a unified grouping of products sharing a common brand and market positioning.
*/
export interface Schema$ProductSuite {
/**
* Output only. LogicalProducts under this suite. Format: logicalProducts/{logical_product\}
*/
logicalProducts?: string[] | null;
/**
* Identifier. The resource name of the ProductSuite. Format: productSuites/{product_suite\}
*/
name?: string | null;
/**
* Output only. Indicates whether the product suite has been replaced. If `false`, the product suite is active. If `true`, the product suite has been replaced by another type, and the `replacement` field contains the resource name of that replacement.
*/
replaced?: boolean | null;
/**
* Output only. The resource name of the Logical Entity that the product suite is replaced by. This field is only populated when this product suite is replaced by some other type. Eg: logicalProducts/{logical_product\}, logicalProducts/{logical_product\}/variants/{variant\}, etc.
*/
replacement?: string | null;
/**
* Title of the ProductSuite.
*/
title?: string | null;
}
export class Resource$Logicalproducts {
context: APIRequestContext;
variants: Resource$Logicalproducts$Variants;
constructor(context: APIRequestContext);
/**
* Gets details of a LogicalProduct.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/cloudproductregistry.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 cloudproductregistry = google.cloudproductregistry('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: [],
* });
*
* // 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 cloudproductregistry.logicalProducts.get({
* // Required. The name of the LogicalProduct to retrieve. Format: logicalProducts/{logical_product\}
* name: 'logicalProducts/my-logicalProduct',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "lifecycleState": "my_lifecycleState",
* // "name": "my_name",
* // "productSuite": "my_productSuite",
* // "replaced": false,
* // "replacement": "my_replacement",
* // "title": "my_title",
* // "variants": []
* // }
* }
*
* 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$Logicalproducts$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
get(params?: Params$Resource$Logicalproducts$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$LogicalProduct>>;
get(params: Params$Resource$Logicalproducts$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
get(params: Params$Resource$Logicalproducts$Get, options: MethodOptions | BodyResponseCallback<Schema$LogicalProduct>, callback: BodyResponseCallback<Schema$LogicalProduct>): void;
get(params: Params$Resource$Logicalproducts$Get, callback: BodyResponseCallback<Schema$LogicalProduct>): void;
get(callback: BodyResponseCallback<Schema$LogicalProduct>): void;
/**
* Lists LogicalProducts matching given criteria.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/cloudproductregistry.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 cloudproductregistry = google.cloudproductregistry('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: [],
* });
*
* // 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 cloudproductregistry.logicalProducts.list({
* // Optional. The filter expression for listing logical products. Filter syntax: https://google.aip.dev/160 Supported fields: suite_id
* filter: 'placeholder-value',
* // Optional. The maximum number of logical products to return. The service may return fewer than this value. If unspecified, at most 100 logical products will be returned. The maximum value is 500; values above 500 will be coerced to 500.
* pageSize: 'placeholder-value',
* // Optional. A page token, received from a previous `ListLogicalProducts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListLogicalProducts` must match the call that provided the page token.
* pageToken: 'placeholder-value',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "logicalProducts": [],
* // "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$Logicalproducts$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
list(params?: Params$Resource$Logicalproducts$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListLogicalProductsResponse>>;
list(params: Params$Resource$Logicalproducts$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
list(params: Params$Resource$Logicalproducts$List, options: MethodOptions | BodyResponseCallback<Schema$ListLogicalProductsResponse>, callback: BodyResponseCallback<Schema$ListLogicalProductsResponse>): void;
list(params: Params$Resource$Logicalproducts$List, callback: BodyResponseCallback<Schema$ListLogicalProductsResponse>): void;
list(callback: BodyResponseCallback<Schema$ListLogicalProductsResponse>): void;
/**
* Look up entities.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/cloudproductregistry.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 cloudproductregistry = google.cloudproductregistry('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: [],
* });
*
* // 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 cloudproductregistry.logicalProducts.lookupEntity({
* // Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product\} logicalProducts/{logical_product\}/variants/{variant\} productSuites/{product_suite\}
* lookupUri: 'logicalProducts/my-logicalProduct',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "logicalProduct": {},
* // "logicalProductVariant": {},
* // "productSuite": {}
* // }
* }
*
* 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.
*/
lookupEntity(params: Params$Resource$Logicalproducts$Lookupentity, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
lookupEntity(params?: Params$Resource$Logicalproducts$Lookupentity, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$LookupEntityResponse>>;
lookupEntity(params: Params$Resource$Logicalproducts$Lookupentity, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
lookupEntity(params: Params$Resource$Logicalproducts$Lookupentity, options: MethodOptions | BodyResponseCallback<Schema$LookupEntityResponse>, callback: BodyResponseCallback<Schema$LookupEntityResponse>): void;
lookupEntity(params: Params$Resource$Logicalproducts$Lookupentity, callback: BodyResponseCallback<Schema$LookupEntityResponse>): void;
lookupEntity(callback: BodyResponseCallback<Schema$LookupEntityResponse>): void;
}
export interface Params$Resource$Logicalproducts$Get extends StandardParameters {
/**
* Required. The name of the LogicalProduct to retrieve. Format: logicalProducts/{logical_product\}
*/
name?: string;
}
export interface Params$Resource$Logicalproducts$List extends StandardParameters {
/**
* Optional. The filter expression for listing logical products. Filter syntax: https://google.aip.dev/160 Supported fields: suite_id
*/
filter?: string;
/**
* Optional. The maximum number of logical products to return. The service may return fewer than this value. If unspecified, at most 100 logical products will be returned. The maximum value is 500; values above 500 will be coerced to 500.
*/
pageSize?: number;
/**
* Optional. A page token, received from a previous `ListLogicalProducts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListLogicalProducts` must match the call that provided the page token.
*/
pageToken?: string;
}
export interface Params$Resource$Logicalproducts$Lookupentity extends StandardParameters {
/**
* Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product\} logicalProducts/{logical_product\}/variants/{variant\} productSuites/{product_suite\}
*/
lookupUri?: string;
}
export class Resource$Logicalproducts$Variants {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* Get details of a LogicalProductVariant.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/cloudproductregistry.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 cloudproductregistry = google.cloudproductregistry('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: [],
* });
*
* // 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 cloudproductregistry.logicalProducts.variants.get({
* // Required. The name of the LogicalProductVariant to retrieve. Format: logicalProducts/{logical_product\}/variants/{variant\}
* name: 'logicalProducts/my-logicalProduct/variants/my-variant',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "lifecycleState": "my_lifecycleState",
* // "name": "my_name",
* // "replaced": false,
* // "replacement": "my_replacement",
* // "title": "my_title"
* // }
* }
*
* 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$Logicalproducts$Variants$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
get(params?: Params$Resource$Logicalproducts$Variants$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$LogicalProductVariant>>;
get(params: Params$Resource$Logicalproducts$Variants$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
get(params: Params$Resource$Logicalproducts$Variants$Get, options: MethodOptions | BodyResponseCallback<Schema$LogicalProductVariant>, callback: BodyResponseCallback<Schema$LogicalProductVariant>): void;
get(params: Params$Resource$Logicalproducts$Variants$Get, callback: BodyResponseCallback<Schema$LogicalProductVariant>): void;
get(callback: BodyResponseCallback<Schema$LogicalProductVariant>): void;
/**
* Lists LogicalProductVariants matching given criteria.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/cloudproductregistry.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 cloudproductregistry = google.cloudproductregistry('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: [],
* });
*
* // 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 cloudproductregistry.logicalProducts.variants.list({
* // Optional. The maximum number of logical product variants to return. The service may return fewer than this value. If unspecified, at most 100 logical product variants will be returned. The maximum value is 500; values above 500 will be coerced to 500.
* pageSize: 'placeholder-value',
* // Optional. A page token, received from a previous `ListLogicalProductVariants` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListLogicalProductVariants` must match the call that provided the page token.
* pageToken: 'placeholder-value',
* // Required. Parent logical product id. Format: logicalProducts/{logical_product\}
* parent: 'logicalProducts/my-logicalProduct',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "logicalProductVariants": [],
* // "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$Logicalproducts$Variants$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
list(params?: Params$Resource$Logicalproducts$Variants$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListLogicalProductVariantsResponse>>;
list(params: Params$Resource$Logicalproducts$Variants$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
list(params: Params$Resource$Logicalproducts$Variants$List, options: MethodOptions | BodyResponseCallback<Schema$ListLogicalProductVariantsResponse>, callback: BodyResponseCallback<Schema$ListLogicalProductVariantsResponse>): void;
list(params: Params$Resource$Logicalproducts$Variants$List, callback: BodyResponseCallback<Schema$ListLogicalProductVariantsResponse>): void;
list(callback: BodyResponseCallback<Schema$ListLogicalProductVariantsResponse>): void;
/**
* Look up entities.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/cloudproductregistry.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 cloudproductregistry = google.cloudproductregistry('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: [],
* });
*
* // 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 cloudproductregistry.logicalProducts.variants.lookupEntity({
* // Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product\} logicalProducts/{logical_product\}/variants/{variant\} productSuites/{product_suite\}
* lookupUri: 'logicalProducts/my-logicalProduct/variants/my-variant',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "logicalProduct": {},
* // "logicalProductVariant": {},
* // "productSuite": {}
* // }
* }
*
* 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.
*/
lookupEntity(params: Params$Resource$Logicalproducts$Variants$Lookupentity, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
lookupEntity(params?: Params$Resource$Logicalproducts$Variants$Lookupentity, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$LookupEntityResponse>>;
lookupEntity(params: Params$Resource$Logicalproducts$Variants$Lookupentity, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
lookupEntity(params: Params$Resource$Logicalproducts$Variants$Lookupentity, options: MethodOptions | BodyResponseCallback<Schema$LookupEntityResponse>, callback: BodyResponseCallback<Schema$LookupEntityResponse>): void;
lookupEntity(params: Params$Resource$Logicalproducts$Variants$Lookupentity, callback: BodyResponseCallback<Schema$LookupEntityResponse>): void;
lookupEntity(callback: BodyResponseCallback<Schema$LookupEntityResponse>): void;
}
export interface Params$Resource$Logicalproducts$Variants$Get extends StandardParameters {
/**
* Required. The name of the LogicalProductVariant to retrieve. Format: logicalProducts/{logical_product\}/variants/{variant\}
*/
name?: string;
}
export interface Params$Resource$Logicalproducts$Variants$List extends StandardParameters {
/**
* Optional. The maximum number of logical product variants to return. The service may return fewer than this value. If unspecified, at most 100 logical product variants will be returned. The maximum value is 500; values above 500 will be coerced to 500.
*/
pageSize?: number;
/**
* Optional. A page token, received from a previous `ListLogicalProductVariants` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListLogicalProductVariants` must match the call that provided the page token.
*/
pageToken?: string;
/**
* Required. Parent logical product id. Format: logicalProducts/{logical_product\}
*/
parent?: string;
}
export interface Params$Resource$Logicalproducts$Variants$Lookupentity extends StandardParameters {
/**
* Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product\} logicalProducts/{logical_product\}/variants/{variant\} productSuites/{product_suite\}
*/
lookupUri?: string;
}
export class Resource$Productsuites {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* Get details of a ProductSuite.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/cloudproductregistry.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 cloudproductregistry = google.cloudproductregistry('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: [],
* });
*
* // 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 cloudproductregistry.productSuites.get({
* // Required. The name of the ProductSuite to retrieve. Format: productSuites/{product_suite\}
* name: 'productSuites/my-productSuite',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "logicalProducts": [],
* // "name": "my_name",
* // "replaced": false,
* // "replacement": "my_replacement",
* // "title": "my_title"
* // }
* }
*
* 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$Productsuites$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
get(params?: Params$Resource$Productsuites$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ProductSuite>>;
get(params: Params$Resource$Productsuites$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
get(params: Params$Resource$Productsuites$Get, options: MethodOptions | BodyResponseCallback<Schema$ProductSuite>, callback: BodyResponseCallback<Schema$ProductSuite>): void;
get(params: Params$Resource$Productsuites$Get, callback: BodyResponseCallback<Schema$ProductSuite>): void;
get(callback: BodyResponseCallback<Schema$ProductSuite>): void;
/**
* Lists ProductSuites.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/cloudproductregistry.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 cloudproductregistry = google.cloudproductregistry('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: [],
* });
*
* // 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 cloudproductregistry.productSuites.list({
* // Optional. The maximum number of suites to return. The service may return fewer than this value. If unspecified, at most 100 suites will be returned. The maximum value is 500; values above 500 will be coerced to 500.
* pageSize: 'placeholder-value',
* // Optional. A page token, received from a previous `ListProductSuites` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListProductSuites` must match the call that provided the page token.
* pageToken: 'placeholder-value',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "nextPageToken": "my_nextPageToken",
* // "productSuites": []
* // }
* }
*
* 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$Productsuites$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
list(params?: Params$Resource$Productsuites$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListProductSuitesResponse>>;
list(params: Params$Resource$Productsuites$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
list(params: Params$Resource$Productsuites$List, options: MethodOptions | BodyResponseCallback<Schema$ListProductSuitesResponse>, callback: BodyResponseCallback<Schema$ListProductSuitesResponse>): void;
list(params: Params$Resource$Productsuites$List, callback: BodyResponseCallback<Schema$ListProductSuitesResponse>): void;
list(callback: BodyResponseCallback<Schema$ListProductSuitesResponse>): void;
/**
* Look up entities.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/cloudproductregistry.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 cloudproductregistry = google.cloudproductregistry('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: [],
* });
*
* // 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 cloudproductregistry.productSuites.lookupEntity({
* // Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product\} logicalProducts/{logical_product\}/variants/{variant\} productSuites/{product_suite\}
* lookupUri: 'productSuites/my-productSuite',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "logicalProduct": {},
* // "logicalProductVariant": {},
* // "productSuite": {}
* // }
* }
*
* 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.
*/
lookupEntity(params: Params$Resource$Productsuites$Lookupentity, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
lookupEntity(params?: Params$Resource$Productsuites$Lookupentity, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$LookupEntityResponse>>;
lookupEntity(params: Params$Resource$Productsuites$Lookupentity, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
lookupEntity(params: Params$Resource$Productsuites$Lookupentity, options: MethodOptions | BodyResponseCallback<Schema$LookupEntityResponse>, callback: BodyResponseCallback<Schema$LookupEntityResponse>): void;
lookupEntity(params: Params$Resource$Productsuites$Lookupentity, callback: BodyResponseCallback<Schema$LookupEntityResponse>): void;
lookupEntity(callback: BodyResponseCallback<Schema$LookupEntityResponse>): void;
}
export interface Params$Resource$Productsuites$Get extends StandardParameters {
/**
* Required. The name of the ProductSuite to retrieve. Format: productSuites/{product_suite\}
*/
name?: string;
}
export interface Params$Resource$Productsuites$List extends StandardParameters {
/**
* Optional. The maximum number of suites to return. The service may return fewer than this value. If unspecified, at most 100 suites will be returned. The maximum value is 500; values above 500 will be coerced to 500.
*/
pageSize?: number;
/**
* Optional. A page token, received from a previous `ListProductSuites` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListProductSuites` must match the call that provided the page token.
*/
pageToken?: string;
}
export interface Params$Resource$Productsuites$Lookupentity extends StandardParameters {
/**
* Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product\} logicalProducts/{logical_product\}/variants/{variant\} productSuites/{product_suite\}
*/
lookupUri?: 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.cloudproductregistry_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 cloudproductregistry_v1;
(function (cloudproductregistry_v1) {
/**
* Cloud Product Registry API
*
* cloudproductregistry.googleapis.com API.
*
* @example
* ```js
* const {google} = require('googleapis');
* const cloudproductregistry = google.cloudproductregistry('v1');
* ```
*/
class Cloudproductregistry {
context;
logicalProducts;
productSuites;
constructor(options, google) {
this.context = {
_options: options || {},
google,
};
this.logicalProducts = new Resource$Logicalproducts(this.context);
this.productSuites = new Resource$Productsuites(this.context);
}
}
cloudproductregistry_v1.Cloudproductregistry = Cloudproductregistry;
class Resource$Logicalproducts {
context;
variants;
constructor(context) {
this.context = context;
this.variants = new Resource$Logicalproducts$Variants(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://cloudproductregistry.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://cloudproductregistry.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/logicalProducts').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);
}
}
lookupEntity(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://cloudproductregistry.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+lookupUri}:lookupEntity').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
apiVersion: '',
}, options),
params,
requiredParams: ['lookupUri'],
pathParams: ['lookupUri'],
context: this.context,
};
if (callback) {
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
}
else {
return (0, googleapis_common_1.createAPIRequest)(parameters);
}
}
}
cloudproductregistry_v1.Resource$Logicalproducts = Resource$Logicalproducts;
class Resource$Logicalproducts$Variants {
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://cloudproductregistry.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://cloudproductregistry.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/variants').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);
}
}
lookupEntity(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://cloudproductregistry.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+lookupUri}:lookupEntity').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
apiVersion: '',
}, options),
params,
requiredParams: ['lookupUri'],
pathParams: ['lookupUri'],
context: this.context,
};
if (callback) {
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
}
else {
return (0, googleapis_common_1.createAPIRequest)(parameters);
}
}
}
cloudproductregistry_v1.Resource$Logicalproducts$Variants = Resource$Logicalproducts$Variants;
class Resource$Productsuites {
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://cloudproductregistry.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://cloudproductregistry.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/productSuites').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);
}
}
lookupEntity(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://cloudproductregistry.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+lookupUri}:lookupEntity').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
apiVersion: '',
}, options),
params,
requiredParams: ['lookupUri'],
pathParams: ['lookupUri'],
context: this.context,
};
if (callback) {
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
}
else {
return (0, googleapis_common_1.createAPIRequest)(parameters);
}
}
}
cloudproductregistry_v1.Resource$Productsuites = Resource$Productsuites;
})(cloudproductregistry_v1 || (exports.cloudproductregistry_v1 = cloudproductregistry_v1 = {}));
/*! THIS FILE IS AUTO-GENERATED */
import { AuthPlus } from 'googleapis-common';
import { databasecenter_v1beta } from './v1beta';
export declare const VERSIONS: {
v1beta: typeof databasecenter_v1beta.Databasecenter;
};
export declare function databasecenter(version: 'v1beta'): databasecenter_v1beta.Databasecenter;
export declare function databasecenter(options: databasecenter_v1beta.Options): databasecenter_v1beta.Databasecenter;
declare const auth: AuthPlus;
export { auth };
export { databasecenter_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.databasecenter_v1beta = exports.auth = exports.VERSIONS = void 0;
exports.databasecenter = databasecenter;
/*! THIS FILE IS AUTO-GENERATED */
const googleapis_common_1 = require("googleapis-common");
const v1beta_1 = require("./v1beta");
Object.defineProperty(exports, "databasecenter_v1beta", { enumerable: true, get: function () { return v1beta_1.databasecenter_v1beta; } });
exports.VERSIONS = {
v1beta: v1beta_1.databasecenter_v1beta.Databasecenter,
};
function databasecenter(versionOrOptions) {
return (0, googleapis_common_1.getAPI)('databasecenter', 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.databasecenter_v1beta = 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 databasecenter_v1beta;
(function (databasecenter_v1beta) {
/**
* Database Center API
*
* Database Center offers a comprehensive, organization-wide platform for monitoring database fleet health across various products. It simplifies management and reduces risk by automatically aggregating and summarizing key health signals, removing the need for custom dashboards. The platform provides a unified view through its dashboard and API, enabling teams focused on reliability, compliance, security, cost, and administration to quickly identify and address relevant issues within their database fleets.
*
* @example
* ```js
* const {google} = require('googleapis');
* const databasecenter = google.databasecenter('v1beta');
* ```
*/
class Databasecenter {
context;
folders;
organizations;
projects;
v1beta;
constructor(options, google) {
this.context = {
_options: options || {},
google,
};
this.folders = new Resource$Folders(this.context);
this.organizations = new Resource$Organizations(this.context);
this.projects = new Resource$Projects(this.context);
this.v1beta = new Resource$V1beta(this.context);
}
}
databasecenter_v1beta.Databasecenter = Databasecenter;
class Resource$Folders {
context;
constructor(context) {
this.context = context;
}
aggregateQueryStats(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://databasecenter.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+parent}:aggregateQueryStats').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);
}
}
}
databasecenter_v1beta.Resource$Folders = Resource$Folders;
class Resource$Organizations {
context;
constructor(context) {
this.context = context;
}
aggregateQueryStats(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://databasecenter.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+parent}:aggregateQueryStats').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);
}
}
}
databasecenter_v1beta.Resource$Organizations = Resource$Organizations;
class Resource$Projects {
context;
constructor(context) {
this.context = context;
}
aggregateQueryStats(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://databasecenter.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+parent}:aggregateQueryStats').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);
}
}
}
databasecenter_v1beta.Resource$Projects = Resource$Projects;
class Resource$V1beta {
context;
constructor(context) {
this.context = context;
}
aggregateFleet(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://databasecenter.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta:aggregateFleet').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);
}
}
aggregateIssueStats(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://databasecenter.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta:aggregateIssueStats').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);
}
}
queryDatabaseResourceGroups(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://databasecenter.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta:queryDatabaseResourceGroups').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);
}
}
queryIssues(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://databasecenter.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta:queryIssues').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);
}
}
queryProducts(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://databasecenter.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta:queryProducts').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);
}
}
}
databasecenter_v1beta.Resource$V1beta = Resource$V1beta;
})(databasecenter_v1beta || (exports.databasecenter_v1beta = databasecenter_v1beta = {}));
/*! THIS FILE IS AUTO-GENERATED */
import { AuthPlus } from 'googleapis-common';
import { firebasecrashlytics_v1alpha } from './v1alpha';
export declare const VERSIONS: {
v1alpha: typeof firebasecrashlytics_v1alpha.Firebasecrashlytics;
};
export declare function firebasecrashlytics(version: 'v1alpha'): firebasecrashlytics_v1alpha.Firebasecrashlytics;
export declare function firebasecrashlytics(options: firebasecrashlytics_v1alpha.Options): firebasecrashlytics_v1alpha.Firebasecrashlytics;
declare const auth: AuthPlus;
export { auth };
export { firebasecrashlytics_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.firebasecrashlytics_v1alpha = exports.auth = exports.VERSIONS = void 0;
exports.firebasecrashlytics = firebasecrashlytics;
/*! THIS FILE IS AUTO-GENERATED */
const googleapis_common_1 = require("googleapis-common");
const v1alpha_1 = require("./v1alpha");
Object.defineProperty(exports, "firebasecrashlytics_v1alpha", { enumerable: true, get: function () { return v1alpha_1.firebasecrashlytics_v1alpha; } });
exports.VERSIONS = {
v1alpha: v1alpha_1.firebasecrashlytics_v1alpha.Firebasecrashlytics,
};
function firebasecrashlytics(versionOrOptions) {
return (0, googleapis_common_1.getAPI)('firebasecrashlytics', 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.firebasecrashlytics_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 firebasecrashlytics_v1alpha;
(function (firebasecrashlytics_v1alpha) {
/**
* Firebase Crashlytics API
*
* This service provides an API for mobile app developers to request deletion of user&#39;s crash reports.
*
* @example
* ```js
* const {google} = require('googleapis');
* const firebasecrashlytics = google.firebasecrashlytics('v1alpha');
* ```
*/
class Firebasecrashlytics {
context;
projects;
constructor(options, google) {
this.context = {
_options: options || {},
google,
};
this.projects = new Resource$Projects(this.context);
}
}
firebasecrashlytics_v1alpha.Firebasecrashlytics = Firebasecrashlytics;
class Resource$Projects {
context;
apps;
constructor(context) {
this.context = context;
this.apps = new Resource$Projects$Apps(this.context);
}
}
firebasecrashlytics_v1alpha.Resource$Projects = Resource$Projects;
class Resource$Projects$Apps {
context;
events;
issues;
reports;
users;
constructor(context) {
this.context = context;
this.events = new Resource$Projects$Apps$Events(this.context);
this.issues = new Resource$Projects$Apps$Issues(this.context);
this.reports = new Resource$Projects$Apps$Reports(this.context);
this.users = new Resource$Projects$Apps$Users(this.context);
}
}
firebasecrashlytics_v1alpha.Resource$Projects$Apps = Resource$Projects$Apps;
class Resource$Projects$Apps$Events {
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://firebasecrashlytics.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+parent}/events:batchGet').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);
}
}
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://firebasecrashlytics.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+parent}/events').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);
}
}
}
firebasecrashlytics_v1alpha.Resource$Projects$Apps$Events = Resource$Projects$Apps$Events;
class Resource$Projects$Apps$Issues {
context;
notes;
constructor(context) {
this.context = context;
this.notes = new Resource$Projects$Apps$Issues$Notes(this.context);
}
batchUpdate(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://firebasecrashlytics.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+parent}/issues:batchUpdate').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://firebasecrashlytics.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);
}
}
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://firebasecrashlytics.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);
}
}
}
firebasecrashlytics_v1alpha.Resource$Projects$Apps$Issues = Resource$Projects$Apps$Issues;
class Resource$Projects$Apps$Issues$Notes {
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://firebasecrashlytics.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+parent}/notes').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://firebasecrashlytics.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);
}
}
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://firebasecrashlytics.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+parent}/notes').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);
}
}
}
firebasecrashlytics_v1alpha.Resource$Projects$Apps$Issues$Notes = Resource$Projects$Apps$Issues$Notes;
class Resource$Projects$Apps$Reports {
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://firebasecrashlytics.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://firebasecrashlytics.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+parent}/reports').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);
}
}
}
firebasecrashlytics_v1alpha.Resource$Projects$Apps$Reports = Resource$Projects$Apps$Reports;
class Resource$Projects$Apps$Users {
context;
constructor(context) {
this.context = context;
}
deleteCrashReports(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://firebasecrashlytics.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);
}
}
}
firebasecrashlytics_v1alpha.Resource$Projects$Apps$Users = Resource$Projects$Apps$Users;
})(firebasecrashlytics_v1alpha || (exports.firebasecrashlytics_v1alpha = firebasecrashlytics_v1alpha = {}));

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

+2
-2

@@ -86,3 +86,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* The externally visible ID of the ad unit which can be used to integrate with the AdMob SDK. This is a read only property. Example: ca-app-pub-9876543210987654/0123456789
* The externally visible ID of the ad unit which can be used to integrate with AdMob. This is a read only property. Example: ca-app-pub-9876543210987654/0123456789
*/

@@ -112,3 +112,3 @@ adUnitId?: string | null;

/**
* The externally visible ID of the app which can be used to integrate with the AdMob SDK. This is a read only property. Example: ca-app-pub-9876543210987654~0123456789
* The externally visible ID of the app which can be used to integrate with AdMob. This is a read only property. Example: ca-app-pub-9876543210987654~0123456789
*/

@@ -115,0 +115,0 @@ appId?: string | null;

/*! THIS FILE IS AUTO-GENERATED */
import { AuthPlus } from 'googleapis-common';
import { agentregistry_v1 } from './v1';
import { agentregistry_v1alpha } from './v1alpha';
export declare const VERSIONS: {
v1: typeof agentregistry_v1.Agentregistry;
v1alpha: typeof agentregistry_v1alpha.Agentregistry;
};
export declare function agentregistry(version: 'v1'): agentregistry_v1.Agentregistry;
export declare function agentregistry(options: agentregistry_v1.Options): agentregistry_v1.Agentregistry;
export declare function agentregistry(version: 'v1alpha'): agentregistry_v1alpha.Agentregistry;

@@ -11,3 +15,4 @@ export declare function agentregistry(options: agentregistry_v1alpha.Options): agentregistry_v1alpha.Agentregistry;

export { auth };
export { agentregistry_v1 };
export { agentregistry_v1alpha };
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.agentregistry_v1alpha = exports.auth = exports.VERSIONS = void 0;
exports.AuthPlus = exports.agentregistry_v1alpha = exports.agentregistry_v1 = exports.auth = exports.VERSIONS = void 0;
exports.agentregistry = agentregistry;
/*! THIS FILE IS AUTO-GENERATED */
const googleapis_common_1 = require("googleapis-common");
const v1_1 = require("./v1");
Object.defineProperty(exports, "agentregistry_v1", { enumerable: true, get: function () { return v1_1.agentregistry_v1; } });
const v1alpha_1 = require("./v1alpha");
Object.defineProperty(exports, "agentregistry_v1alpha", { enumerable: true, get: function () { return v1alpha_1.agentregistry_v1alpha; } });
exports.VERSIONS = {
v1: v1_1.agentregistry_v1.Agentregistry,
v1alpha: v1alpha_1.agentregistry_v1alpha.Agentregistry,

@@ -24,0 +27,0 @@ };

@@ -63,3 +63,5 @@ "use strict";

operations;
publishers;
services;
skills;
constructor(context) {

@@ -72,3 +74,5 @@ this.context = context;

this.operations = new Resource$Projects$Locations$Operations(this.context);
this.publishers = new Resource$Projects$Locations$Publishers(this.context);
this.services = new Resource$Projects$Locations$Services(this.context);
this.skills = new Resource$Projects$Locations$Skills(this.context);
}

@@ -753,2 +757,73 @@ get(paramsOrCallback, optionsOrCallback, callback) {

agentregistry_v1alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations;
class Resource$Projects$Locations$Publishers {
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}/publishers').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$Publishers = Resource$Projects$Locations$Publishers;
class Resource$Projects$Locations$Services {

@@ -921,2 +996,340 @@ context;

agentregistry_v1alpha.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services;
class Resource$Projects$Locations$Skills {
context;
revisions;
constructor(context) {
this.context = context;
this.revisions = new Resource$Projects$Locations$Skills$Revisions(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://agentregistry.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+parent}/skills').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}/skills').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);
}
}
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}/skills: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);
}
}
}
agentregistry_v1alpha.Resource$Projects$Locations$Skills = Resource$Projects$Locations$Skills;
class Resource$Projects$Locations$Skills$Revisions {
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}/revisions').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}/revisions').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$Skills$Revisions = Resource$Projects$Locations$Skills$Revisions;
})(agentregistry_v1alpha || (exports.agentregistry_v1alpha = agentregistry_v1alpha = {}));

@@ -38,3 +38,5 @@ "use strict";

assuredworkloads;
folders;
organizations;
projects;
constructor(options, google) {

@@ -46,3 +48,5 @@ this.context = {

this.assuredworkloads = new Resource$Assuredworkloads(this.context);
this.folders = new Resource$Folders(this.context);
this.organizations = new Resource$Organizations(this.context);
this.projects = new Resource$Projects(this.context);
}

@@ -123,2 +127,223 @@ }

assuredworkloads_v1.Resource$Assuredworkloads = Resource$Assuredworkloads;
class Resource$Folders {
context;
locations;
constructor(context) {
this.context = context;
this.locations = new Resource$Folders$Locations(this.context);
}
}
assuredworkloads_v1.Resource$Folders = Resource$Folders;
class Resource$Folders$Locations {
context;
dbFindingSummaries;
dbFrameworkComplianceReports;
dbFrameworkComplianceSummaries;
constructor(context) {
this.context = context;
this.dbFindingSummaries =
new Resource$Folders$Locations$Dbfindingsummaries(this.context);
this.dbFrameworkComplianceReports =
new Resource$Folders$Locations$Dbframeworkcompliancereports(this.context);
this.dbFrameworkComplianceSummaries =
new Resource$Folders$Locations$Dbframeworkcompliancesummaries(this.context);
}
}
assuredworkloads_v1.Resource$Folders$Locations = Resource$Folders$Locations;
class Resource$Folders$Locations$Dbfindingsummaries {
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://assuredworkloads.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/dbFindingSummaries').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);
}
}
}
assuredworkloads_v1.Resource$Folders$Locations$Dbfindingsummaries = Resource$Folders$Locations$Dbfindingsummaries;
class Resource$Folders$Locations$Dbframeworkcompliancereports {
context;
dbControlComplianceSummaries;
constructor(context) {
this.context = context;
this.dbControlComplianceSummaries =
new Resource$Folders$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries(this.context);
}
aggregate(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+name}:aggregate').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);
}
}
fetch(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+name}:fetch').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);
}
}
}
assuredworkloads_v1.Resource$Folders$Locations$Dbframeworkcompliancereports = Resource$Folders$Locations$Dbframeworkcompliancereports;
class Resource$Folders$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries {
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://assuredworkloads.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/dbControlComplianceSummaries').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);
}
}
}
assuredworkloads_v1.Resource$Folders$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries = Resource$Folders$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries;
class Resource$Folders$Locations$Dbframeworkcompliancesummaries {
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://assuredworkloads.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/dbFrameworkComplianceSummaries').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);
}
}
}
assuredworkloads_v1.Resource$Folders$Locations$Dbframeworkcompliancesummaries = Resource$Folders$Locations$Dbframeworkcompliancesummaries;
class Resource$Organizations {

@@ -135,2 +360,5 @@ context;

context;
dbFindingSummaries;
dbFrameworkComplianceReports;
dbFrameworkComplianceSummaries;
operations;

@@ -140,2 +368,8 @@ workloads;

this.context = context;
this.dbFindingSummaries =
new Resource$Organizations$Locations$Dbfindingsummaries(this.context);
this.dbFrameworkComplianceReports =
new Resource$Organizations$Locations$Dbframeworkcompliancereports(this.context);
this.dbFrameworkComplianceSummaries =
new Resource$Organizations$Locations$Dbframeworkcompliancesummaries(this.context);
this.operations = new Resource$Organizations$Locations$Operations(this.context);

@@ -146,2 +380,198 @@ this.workloads = new Resource$Organizations$Locations$Workloads(this.context);

assuredworkloads_v1.Resource$Organizations$Locations = Resource$Organizations$Locations;
class Resource$Organizations$Locations$Dbfindingsummaries {
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://assuredworkloads.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/dbFindingSummaries').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);
}
}
}
assuredworkloads_v1.Resource$Organizations$Locations$Dbfindingsummaries = Resource$Organizations$Locations$Dbfindingsummaries;
class Resource$Organizations$Locations$Dbframeworkcompliancereports {
context;
dbControlComplianceSummaries;
constructor(context) {
this.context = context;
this.dbControlComplianceSummaries =
new Resource$Organizations$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries(this.context);
}
aggregate(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+name}:aggregate').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);
}
}
fetch(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+name}:fetch').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);
}
}
}
assuredworkloads_v1.Resource$Organizations$Locations$Dbframeworkcompliancereports = Resource$Organizations$Locations$Dbframeworkcompliancereports;
class Resource$Organizations$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries {
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://assuredworkloads.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/dbControlComplianceSummaries').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);
}
}
}
assuredworkloads_v1.Resource$Organizations$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries = Resource$Organizations$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries;
class Resource$Organizations$Locations$Dbframeworkcompliancesummaries {
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://assuredworkloads.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/dbFrameworkComplianceSummaries').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);
}
}
}
assuredworkloads_v1.Resource$Organizations$Locations$Dbframeworkcompliancesummaries = Resource$Organizations$Locations$Dbframeworkcompliancesummaries;
class Resource$Organizations$Locations$Operations {

@@ -666,2 +1096,35 @@ context;

}
batchAcknowledgeViolations(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+parent}/violations:batchAcknowledgeViolations').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) {

@@ -735,2 +1198,223 @@ let params = (paramsOrCallback ||

assuredworkloads_v1.Resource$Organizations$Locations$Workloads$Violations = Resource$Organizations$Locations$Workloads$Violations;
class Resource$Projects {
context;
locations;
constructor(context) {
this.context = context;
this.locations = new Resource$Projects$Locations(this.context);
}
}
assuredworkloads_v1.Resource$Projects = Resource$Projects;
class Resource$Projects$Locations {
context;
dbFindingSummaries;
dbFrameworkComplianceReports;
dbFrameworkComplianceSummaries;
constructor(context) {
this.context = context;
this.dbFindingSummaries =
new Resource$Projects$Locations$Dbfindingsummaries(this.context);
this.dbFrameworkComplianceReports =
new Resource$Projects$Locations$Dbframeworkcompliancereports(this.context);
this.dbFrameworkComplianceSummaries =
new Resource$Projects$Locations$Dbframeworkcompliancesummaries(this.context);
}
}
assuredworkloads_v1.Resource$Projects$Locations = Resource$Projects$Locations;
class Resource$Projects$Locations$Dbfindingsummaries {
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://assuredworkloads.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/dbFindingSummaries').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);
}
}
}
assuredworkloads_v1.Resource$Projects$Locations$Dbfindingsummaries = Resource$Projects$Locations$Dbfindingsummaries;
class Resource$Projects$Locations$Dbframeworkcompliancereports {
context;
dbControlComplianceSummaries;
constructor(context) {
this.context = context;
this.dbControlComplianceSummaries =
new Resource$Projects$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries(this.context);
}
aggregate(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+name}:aggregate').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);
}
}
fetch(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+name}:fetch').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);
}
}
}
assuredworkloads_v1.Resource$Projects$Locations$Dbframeworkcompliancereports = Resource$Projects$Locations$Dbframeworkcompliancereports;
class Resource$Projects$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries {
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://assuredworkloads.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/dbControlComplianceSummaries').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);
}
}
}
assuredworkloads_v1.Resource$Projects$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries = Resource$Projects$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries;
class Resource$Projects$Locations$Dbframeworkcompliancesummaries {
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://assuredworkloads.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/dbFrameworkComplianceSummaries').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);
}
}
}
assuredworkloads_v1.Resource$Projects$Locations$Dbframeworkcompliancesummaries = Resource$Projects$Locations$Dbframeworkcompliancesummaries;
})(assuredworkloads_v1 || (exports.assuredworkloads_v1 = assuredworkloads_v1 = {}));

@@ -38,3 +38,5 @@ "use strict";

assuredworkloads;
folders;
organizations;
projects;
constructor(options, google) {

@@ -46,3 +48,5 @@ this.context = {

this.assuredworkloads = new Resource$Assuredworkloads(this.context);
this.folders = new Resource$Folders(this.context);
this.organizations = new Resource$Organizations(this.context);
this.projects = new Resource$Projects(this.context);
}

@@ -123,8 +127,231 @@ }

assuredworkloads_v1beta1.Resource$Assuredworkloads = Resource$Assuredworkloads;
class Resource$Folders {
context;
locations;
constructor(context) {
this.context = context;
this.locations = new Resource$Folders$Locations(this.context);
}
}
assuredworkloads_v1beta1.Resource$Folders = Resource$Folders;
class Resource$Folders$Locations {
context;
dbFindingSummaries;
dbFrameworkComplianceReports;
dbFrameworkComplianceSummaries;
constructor(context) {
this.context = context;
this.dbFindingSummaries =
new Resource$Folders$Locations$Dbfindingsummaries(this.context);
this.dbFrameworkComplianceReports =
new Resource$Folders$Locations$Dbframeworkcompliancereports(this.context);
this.dbFrameworkComplianceSummaries =
new Resource$Folders$Locations$Dbframeworkcompliancesummaries(this.context);
}
}
assuredworkloads_v1beta1.Resource$Folders$Locations = Resource$Folders$Locations;
class Resource$Folders$Locations$Dbfindingsummaries {
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://assuredworkloads.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta1/{+parent}/dbFindingSummaries').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);
}
}
}
assuredworkloads_v1beta1.Resource$Folders$Locations$Dbfindingsummaries = Resource$Folders$Locations$Dbfindingsummaries;
class Resource$Folders$Locations$Dbframeworkcompliancereports {
context;
dbControlComplianceSummaries;
constructor(context) {
this.context = context;
this.dbControlComplianceSummaries =
new Resource$Folders$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries(this.context);
}
aggregate(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+name}:aggregate').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);
}
}
fetch(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+name}:fetch').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);
}
}
}
assuredworkloads_v1beta1.Resource$Folders$Locations$Dbframeworkcompliancereports = Resource$Folders$Locations$Dbframeworkcompliancereports;
class Resource$Folders$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries {
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://assuredworkloads.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta1/{+parent}/dbControlComplianceSummaries').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);
}
}
}
assuredworkloads_v1beta1.Resource$Folders$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries = Resource$Folders$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries;
class Resource$Folders$Locations$Dbframeworkcompliancesummaries {
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://assuredworkloads.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta1/{+parent}/dbFrameworkComplianceSummaries').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);
}
}
}
assuredworkloads_v1beta1.Resource$Folders$Locations$Dbframeworkcompliancesummaries = Resource$Folders$Locations$Dbframeworkcompliancesummaries;
class Resource$Organizations {
context;
locations;
violations;
constructor(context) {
this.context = context;
this.locations = new Resource$Organizations$Locations(this.context);
this.violations = new Resource$Organizations$Violations(this.context);
}

@@ -135,7 +362,18 @@ }

context;
dbFindingSummaries;
dbFrameworkComplianceReports;
dbFrameworkComplianceSummaries;
operations;
violations;
workloads;
constructor(context) {
this.context = context;
this.dbFindingSummaries =
new Resource$Organizations$Locations$Dbfindingsummaries(this.context);
this.dbFrameworkComplianceReports =
new Resource$Organizations$Locations$Dbframeworkcompliancereports(this.context);
this.dbFrameworkComplianceSummaries =
new Resource$Organizations$Locations$Dbframeworkcompliancesummaries(this.context);
this.operations = new Resource$Organizations$Locations$Operations(this.context);
this.violations = new Resource$Organizations$Locations$Violations(this.context);
this.workloads = new Resource$Organizations$Locations$Workloads(this.context);

@@ -145,2 +383,198 @@ }

assuredworkloads_v1beta1.Resource$Organizations$Locations = Resource$Organizations$Locations;
class Resource$Organizations$Locations$Dbfindingsummaries {
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://assuredworkloads.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta1/{+parent}/dbFindingSummaries').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);
}
}
}
assuredworkloads_v1beta1.Resource$Organizations$Locations$Dbfindingsummaries = Resource$Organizations$Locations$Dbfindingsummaries;
class Resource$Organizations$Locations$Dbframeworkcompliancereports {
context;
dbControlComplianceSummaries;
constructor(context) {
this.context = context;
this.dbControlComplianceSummaries =
new Resource$Organizations$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries(this.context);
}
aggregate(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+name}:aggregate').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);
}
}
fetch(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+name}:fetch').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);
}
}
}
assuredworkloads_v1beta1.Resource$Organizations$Locations$Dbframeworkcompliancereports = Resource$Organizations$Locations$Dbframeworkcompliancereports;
class Resource$Organizations$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries {
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://assuredworkloads.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta1/{+parent}/dbControlComplianceSummaries').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);
}
}
}
assuredworkloads_v1beta1.Resource$Organizations$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries = Resource$Organizations$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries;
class Resource$Organizations$Locations$Dbframeworkcompliancesummaries {
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://assuredworkloads.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta1/{+parent}/dbFrameworkComplianceSummaries').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);
}
}
}
assuredworkloads_v1beta1.Resource$Organizations$Locations$Dbframeworkcompliancesummaries = Resource$Organizations$Locations$Dbframeworkcompliancesummaries;
class Resource$Organizations$Locations$Operations {

@@ -217,2 +651,43 @@ context;

assuredworkloads_v1beta1.Resource$Organizations$Locations$Operations = Resource$Organizations$Locations$Operations;
class Resource$Organizations$Locations$Violations {
context;
constructor(context) {
this.context = context;
}
batchAcknowledgeViolations(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+parent}/violations:batchAcknowledgeViolations').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);
}
}
}
assuredworkloads_v1beta1.Resource$Organizations$Locations$Violations = Resource$Organizations$Locations$Violations;
class Resource$Organizations$Locations$Workloads {

@@ -633,2 +1108,36 @@ context;

}
batchAcknowledgeViolations(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+parent}/violations:batchAcknowledgeViolations').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) {

@@ -702,2 +1211,264 @@ let params = (paramsOrCallback ||

assuredworkloads_v1beta1.Resource$Organizations$Locations$Workloads$Violations = Resource$Organizations$Locations$Workloads$Violations;
class Resource$Organizations$Violations {
context;
constructor(context) {
this.context = context;
}
batchAcknowledgeViolations(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+parent}/violations:batchAcknowledgeViolations').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);
}
}
}
assuredworkloads_v1beta1.Resource$Organizations$Violations = Resource$Organizations$Violations;
class Resource$Projects {
context;
locations;
constructor(context) {
this.context = context;
this.locations = new Resource$Projects$Locations(this.context);
}
}
assuredworkloads_v1beta1.Resource$Projects = Resource$Projects;
class Resource$Projects$Locations {
context;
dbFindingSummaries;
dbFrameworkComplianceReports;
dbFrameworkComplianceSummaries;
constructor(context) {
this.context = context;
this.dbFindingSummaries =
new Resource$Projects$Locations$Dbfindingsummaries(this.context);
this.dbFrameworkComplianceReports =
new Resource$Projects$Locations$Dbframeworkcompliancereports(this.context);
this.dbFrameworkComplianceSummaries =
new Resource$Projects$Locations$Dbframeworkcompliancesummaries(this.context);
}
}
assuredworkloads_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations;
class Resource$Projects$Locations$Dbfindingsummaries {
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://assuredworkloads.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta1/{+parent}/dbFindingSummaries').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);
}
}
}
assuredworkloads_v1beta1.Resource$Projects$Locations$Dbfindingsummaries = Resource$Projects$Locations$Dbfindingsummaries;
class Resource$Projects$Locations$Dbframeworkcompliancereports {
context;
dbControlComplianceSummaries;
constructor(context) {
this.context = context;
this.dbControlComplianceSummaries =
new Resource$Projects$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries(this.context);
}
aggregate(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+name}:aggregate').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);
}
}
fetch(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+name}:fetch').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);
}
}
}
assuredworkloads_v1beta1.Resource$Projects$Locations$Dbframeworkcompliancereports = Resource$Projects$Locations$Dbframeworkcompliancereports;
class Resource$Projects$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries {
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://assuredworkloads.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta1/{+parent}/dbControlComplianceSummaries').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);
}
}
}
assuredworkloads_v1beta1.Resource$Projects$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries = Resource$Projects$Locations$Dbframeworkcompliancereports$Dbcontrolcompliancesummaries;
class Resource$Projects$Locations$Dbframeworkcompliancesummaries {
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://assuredworkloads.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta1/{+parent}/dbFrameworkComplianceSummaries').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);
}
}
}
assuredworkloads_v1beta1.Resource$Projects$Locations$Dbframeworkcompliancesummaries = Resource$Projects$Locations$Dbframeworkcompliancesummaries;
})(assuredworkloads_v1beta1 || (exports.assuredworkloads_v1beta1 = assuredworkloads_v1beta1 = {}));

@@ -25,5 +25,5 @@ "use strict";

/**
* BigLake API
* Lakehouse API
*
* The BigLake API provides access to BigLake Metastore, a serverless, fully managed, and highly available metastore for open-source data that can be used for querying Apache Iceberg tables in BigQuery.
* The Lakehouse API (formerly BigLake API) provides access to a serverless, fully managed, and highly available metastore that provides a single source of truth for your data lakehouse. It lets multiple engines—including Apache Spark, Google Managed Spark, Apache Flink, Trino and BigQuery—share tables and metadata for key open formats (Apache Iceberg, Apache Hive), and query the same copy of data. Plus, through the Lakehouse runtime catalog federation seamlessly unite your lakehouse ecosystem, letting Iceberg compatible engines on Google Cloud (BigQuery, Google Managed Spark) discover and analyze enterprise data across Snowflake, Databricks, and AWS Glue.
*

@@ -30,0 +30,0 @@ * @example

@@ -573,2 +573,35 @@ "use strict";

}
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://bigqueryreservation.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);
}
}
}

@@ -575,0 +608,0 @@ bigqueryreservation_v1.Resource$Projects$Locations$Reservationgroups = Resource$Projects$Locations$Reservationgroups;

@@ -25,3 +25,3 @@ "use strict";

/**
* blogger API
* Blogger API
*

@@ -28,0 +28,0 @@ * The Blogger API provides access to posts, comments and pages of a Blogger blog.

@@ -675,2 +675,34 @@ "use strict";

}
transferOwnership(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/calendar/v3/calendars/{calendarId}/transferOwnership').replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
apiVersion: '',
}, options),
params,
requiredParams: ['calendarId', 'newDataOwner', 'useAdminAccess'],
pathParams: ['calendarId'],
context: this.context,
};
if (callback) {
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
}
else {
return (0, googleapis_common_1.createAPIRequest)(parameters);
}
}
update(paramsOrCallback, optionsOrCallback, callback) {

@@ -677,0 +709,0 @@ let params = (paramsOrCallback || {});

@@ -161,3 +161,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Optional. When set to true the request will fail if there are any warnings during validation and the details will be included in the error_details. Otherwise warnings are treated as non-blocking and will be ignored for validation but will be included in the response for inspection. Defaults to `false` if unset.
* Optional. When set to true the request will fail if there are any warnings during validation and the details will be included in the `error.details`. Otherwise warnings are treated as non-blocking and will be ignored for validation but will be included in the response for inspection. Defaults to `false` if unset.
*/

@@ -248,3 +248,3 @@ blockOnWarnings?: boolean | null;

/**
* The reason for the warning. This is a constant value that identifies the proximate cause of the warning. This should be at most 63 characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE.
* The reason for the warning. This is a constant value that identifies the proximate cause of the warning.
*/

@@ -251,0 +251,0 @@ reason?: string | null;

@@ -40,2 +40,3 @@ "use strict";

media;
organizations;
constructor(options, google) {

@@ -49,2 +50,3 @@ this.context = {

this.media = new Resource$Media(this.context);
this.organizations = new Resource$Organizations(this.context);
}

@@ -564,2 +566,250 @@ }

cloudsupport_v2.Resource$Media = Resource$Media;
class Resource$Organizations {
context;
supportEventSubscriptions;
constructor(context) {
this.context = context;
this.supportEventSubscriptions =
new Resource$Organizations$Supporteventsubscriptions(this.context);
}
}
cloudsupport_v2.Resource$Organizations = Resource$Organizations;
class Resource$Organizations$Supporteventsubscriptions {
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://cloudsupport.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2/{+parent}/supportEventSubscriptions').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://cloudsupport.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2/{+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);
}
}
expunge(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2/{+name}:expunge').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://cloudsupport.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://cloudsupport.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2/{+parent}/supportEventSubscriptions').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://cloudsupport.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2/{+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);
}
}
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://cloudsupport.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2/{+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);
}
}
}
cloudsupport_v2.Resource$Organizations$Supporteventsubscriptions = Resource$Organizations$Supporteventsubscriptions;
})(cloudsupport_v2 || (exports.cloudsupport_v2 = cloudsupport_v2 = {}));

@@ -40,2 +40,3 @@ "use strict";

media;
organizations;
constructor(options, google) {

@@ -49,2 +50,3 @@ this.context = {

this.media = new Resource$Media(this.context);
this.organizations = new Resource$Organizations(this.context);
}

@@ -595,2 +597,250 @@ }

cloudsupport_v2beta.Resource$Media = Resource$Media;
class Resource$Organizations {
context;
supportEventSubscriptions;
constructor(context) {
this.context = context;
this.supportEventSubscriptions =
new Resource$Organizations$Supporteventsubscriptions(this.context);
}
}
cloudsupport_v2beta.Resource$Organizations = Resource$Organizations;
class Resource$Organizations$Supporteventsubscriptions {
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://cloudsupport.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2beta/{+parent}/supportEventSubscriptions').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://cloudsupport.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2beta/{+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);
}
}
expunge(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2beta/{+name}:expunge').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://cloudsupport.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://cloudsupport.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2beta/{+parent}/supportEventSubscriptions').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://cloudsupport.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2beta/{+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);
}
}
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://cloudsupport.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2beta/{+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);
}
}
}
cloudsupport_v2beta.Resource$Organizations$Supporteventsubscriptions = Resource$Organizations$Supporteventsubscriptions;
})(cloudsupport_v2beta || (exports.cloudsupport_v2beta = cloudsupport_v2beta = {}));

@@ -107,5 +107,7 @@ "use strict";

context;
operations;
queues;
constructor(context) {
this.context = context;
this.operations = new Resource$Projects$Locations$Operations(this.context);
this.queues = new Resource$Projects$Locations$Queues(this.context);

@@ -243,2 +245,41 @@ }

cloudtasks_v2beta2.Resource$Projects$Locations = Resource$Projects$Locations;
class Resource$Projects$Locations$Operations {
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://cloudtasks.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2beta2/{+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);
}
}
}
cloudtasks_v2beta2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations;
class Resource$Projects$Locations$Queues {

@@ -644,2 +685,68 @@ context;

}
batchCreate(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2beta2/{+parent}/tasks:batchCreate').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);
}
}
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://cloudtasks.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2beta2/{+parent}/tasks: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);
}
}
buffer(paramsOrCallback, optionsOrCallback, callback) {

@@ -646,0 +753,0 @@ let params = (paramsOrCallback ||

@@ -58,5 +58,7 @@ "use strict";

context;
operations;
queues;
constructor(context) {
this.context = context;
this.operations = new Resource$Projects$Locations$Operations(this.context);
this.queues = new Resource$Projects$Locations$Queues(this.context);

@@ -194,2 +196,41 @@ }

cloudtasks_v2beta3.Resource$Projects$Locations = Resource$Projects$Locations;
class Resource$Projects$Locations$Operations {
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://cloudtasks.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2beta3/{+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);
}
}
}
cloudtasks_v2beta3.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations;
class Resource$Projects$Locations$Queues {

@@ -562,2 +603,68 @@ context;

}
batchCreate(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2beta3/{+parent}/tasks:batchCreate').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);
}
}
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://cloudtasks.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2beta3/{+parent}/tasks: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);
}
}
buffer(paramsOrCallback, optionsOrCallback, callback) {

@@ -564,0 +671,0 @@ let params = (paramsOrCallback ||

@@ -96,3 +96,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Project ID of the Cloud project where the trace data is stored.
* Required. Project ID of the Cloud project where the trace data is stored.
*/

@@ -105,3 +105,3 @@ projectId?: string | null;

/**
* Globally unique identifier for the trace. This identifier is a 128-bit numeric value formatted as a 32-byte hex string. For example, `382d4f4c6b7bb2f4a972559d9085001d`. The numeric value should not be zero.
* Required. Globally unique identifier for the trace. This identifier is a 128-bit numeric value formatted as a 32-byte hex string. For example, `382d4f4c6b7bb2f4a972559d9085001d`. The numeric value should not be zero.
*/

@@ -124,11 +124,11 @@ traceId?: string | null;

/**
* End time of the span in seconds and nanoseconds from the UNIX epoch.
* Required. End time of the span in seconds and nanoseconds from the UNIX epoch.
*/
endTime?: string | null;
/**
* Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `RPC_CLIENT` and `RPC_SERVER` to identify queueing latency associated with the span.
* Optional. Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `RPC_CLIENT` and `RPC_SERVER` to identify queueing latency associated with the span.
*/
kind?: string | null;
/**
* Collection of labels associated with the span. Label keys must be less than 128 bytes. Label values must be less than 16 KiB. Some keys might have predefined meaning, and you can also create your own. For more information, see [Cloud Trace labels](https://cloud.google.com/trace/docs/trace-labels).
* Optional. Collection of labels associated with the span. Label keys must be less than 128 bytes. Label values must be less than 16 KiB. Some keys might have predefined meaning, and you can also create your own. For more information, see [Cloud Trace labels](https://cloud.google.com/trace/docs/trace-labels).
*/

@@ -139,3 +139,3 @@ labels?: {

/**
* Name of the span. Must be less than 128 bytes. The span name is sanitized and displayed in the Trace tool in the Google Cloud Platform Console. The name may be a method name or some other per-call site name. For the same executable and the same call point, a best practice is to use a consistent name, which makes it easier to correlate cross-trace spans.
* Required. Name of the span. Must be less than 128 bytes. The span name is sanitized and displayed in the Trace tool in the Google Cloud Platform Console. The name may be a method name or some other per-call site name. For the same executable and the same call point, a best practice is to use a consistent name, which makes it easier to correlate cross-trace spans.
*/

@@ -148,7 +148,7 @@ name?: string | null;

/**
* Identifier for the span. Must be a 64-bit integer other than 0 and unique within a trace. For example, `2205310701640571284`.
* Required. Identifier for the span. Must be a 64-bit integer other than 0 and unique within a trace. For example, `2205310701640571284`.
*/
spanId?: string | null;
/**
* Start time of the span in seconds and nanoseconds from the UNIX epoch.
* Required. Start time of the span in seconds and nanoseconds from the UNIX epoch.
*/

@@ -345,3 +345,3 @@ startTime?: string | null;

* const res = await cloudtrace.projects.traces.list({
* // End of the time interval (inclusive) during which the trace data was collected from the application.
* // Required. End of the time interval (inclusive) during which the trace data was collected from the application.
* endTime: 'placeholder-value',

@@ -354,7 +354,7 @@ * // Optional. A filter against properties of the trace. See [filter syntax documentation](https://cloud.google.com/trace/docs/trace-filters) for details.

* pageSize: 'placeholder-value',
* // Token identifying the page of results to return. If provided, use the value of the `next_page_token` field from a previous request.
* // Optional. Token identifying the page of results to return. If provided, use the value of the `next_page_token` field from a previous request.
* pageToken: 'placeholder-value',
* // Required. ID of the Cloud project where the trace data is stored.
* projectId: 'placeholder-value',
* // Start of the time interval (inclusive) during which the trace data was collected from the application.
* // Required. Start of the time interval (inclusive) during which the trace data was collected from the application.
* startTime: 'placeholder-value',

@@ -404,3 +404,3 @@ * // Optional. Type of data returned for traces in the list. Default is `MINIMAL`.

/**
* End of the time interval (inclusive) during which the trace data was collected from the application.
* Required. End of the time interval (inclusive) during which the trace data was collected from the application.
*/

@@ -421,3 +421,3 @@ endTime?: string;

/**
* Token identifying the page of results to return. If provided, use the value of the `next_page_token` field from a previous request.
* Optional. Token identifying the page of results to return. If provided, use the value of the `next_page_token` field from a previous request.
*/

@@ -430,3 +430,3 @@ pageToken?: string;

/**
* Start of the time interval (inclusive) during which the trace data was collected from the application.
* Required. Start of the time interval (inclusive) during which the trace data was collected from the application.
*/

@@ -433,0 +433,0 @@ startTime?: string;

@@ -78,7 +78,7 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* A set of attributes on the annotation. You can have up to 4 attributes per Annotation.
* Optional. A set of attributes on the annotation. You can have up to 4 attributes per Annotation.
*/
attributes?: Schema$Attributes;
/**
* A user-supplied message describing the event. The maximum length for the description is 256 bytes.
* Optional. A user-supplied message describing the event. The maximum length for the description is 256 bytes.
*/

@@ -92,3 +92,3 @@ description?: Schema$TruncatableString;

/**
* A set of attributes. Each attribute's key can be up to 128 bytes long. The value can be a string up to 256 bytes, a signed 64-bit integer, or the boolean values `true` or `false`. For example: "/instance_id": { "string_value": { "value": "my-instance" \} \} "/http/request_bytes": { "int_value": 300 \} "example.com/myattribute": { "bool_value": false \}
* Optional. A set of attributes. Each attribute's key can be up to 128 bytes long. The value can be a string up to 256 bytes, a signed 64-bit integer, or the boolean values `true` or `false`. For example: "/instance_id": { "string_value": { "value": "my-instance" \} \} "/http/request_bytes": { "int_value": 300 \} "example.com/myattribute": { "bool_value": false \}
*/

@@ -99,3 +99,3 @@ attributeMap?: {

/**
* The number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes. If this value is 0 then all attributes are valid.
* Optional. The number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes. If this value is 0 then all attributes are valid.
*/

@@ -109,11 +109,11 @@ droppedAttributesCount?: number | null;

/**
* A Boolean value represented by `true` or `false`.
* Optional. A Boolean value represented by `true` or `false`.
*/
boolValue?: boolean | null;
/**
* A 64-bit signed integer.
* Optional. A 64-bit signed integer.
*/
intValue?: string | null;
/**
* A string up to 256 bytes long.
* Optional. A string up to 256 bytes long.
*/

@@ -141,15 +141,15 @@ stringValue?: Schema$TruncatableString;

/**
* A set of attributes on the link. Up to 32 attributes can be specified per link.
* Optional. A set of attributes on the link. Up to 32 attributes can be specified per link.
*/
attributes?: Schema$Attributes;
/**
* The `[SPAN_ID]` for a span within a trace.
* Optional. The `[SPAN_ID]` for a span within a trace.
*/
spanId?: string | null;
/**
* The `[TRACE_ID]` for a trace within a project.
* Optional. The `[TRACE_ID]` for a trace within a project.
*/
traceId?: string | null;
/**
* The relationship of the current span relative to the linked span.
* Optional. The relationship of the current span relative to the linked span.
*/

@@ -163,7 +163,7 @@ type?: string | null;

/**
* The number of dropped links after the maximum size was enforced. If this value is 0, then no links were dropped.
* Optional. The number of dropped links after the maximum size was enforced. If this value is 0, then no links were dropped.
*/
droppedLinksCount?: number | null;
/**
* A collection of links.
* Optional. A collection of links.
*/

@@ -177,15 +177,15 @@ link?: Schema$Link[];

/**
* The number of compressed bytes sent or received. If missing, the compressed size is assumed to be the same size as the uncompressed size.
* Optional. The number of compressed bytes sent or received. If missing, the compressed size is assumed to be the same size as the uncompressed size.
*/
compressedSizeBytes?: string | null;
/**
* An identifier for the MessageEvent's message that can be used to match `SENT` and `RECEIVED` MessageEvents.
* Optional. An identifier for the MessageEvent's message that can be used to match `SENT` and `RECEIVED` MessageEvents.
*/
id?: string | null;
/**
* Type of MessageEvent. Indicates whether the message was sent or received.
* Optional. Type of MessageEvent. Indicates whether the message was sent or received.
*/
type?: string | null;
/**
* The number of uncompressed bytes sent or received.
* Optional. The number of uncompressed bytes sent or received.
*/

@@ -199,7 +199,7 @@ uncompressedSizeBytes?: string | null;

/**
* A unique identifier for the module, usually a hash of its contents (up to 128 bytes).
* Optional. A unique identifier for the module, usually a hash of its contents (up to 128 bytes).
*/
buildId?: Schema$TruncatableString;
/**
* For example: main binary, kernel modules, and dynamic libraries such as libc.so, sharedlib.so (up to 256 bytes).
* Optional. For example: main binary, kernel modules, and dynamic libraries such as libc.so, sharedlib.so (up to 256 bytes).
*/

@@ -213,3 +213,3 @@ module?: Schema$TruncatableString;

/**
* A set of attributes on the span. You can have up to 32 attributes per span.
* Optional. A set of attributes on the span. You can have up to 32 attributes per span.
*/

@@ -230,11 +230,11 @@ attributes?: Schema$Attributes;

/**
* Links associated with the span. You can have up to 128 links per Span.
* Optional. Links associated with the span. You can have up to 128 links per Span.
*/
links?: Schema$Links;
/**
* Required. The resource name of the span in the following format: * `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]` `[TRACE_ID]` is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. It should not be zero. `[SPAN_ID]` is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array. It should not be zero. .
* Identifier. The resource name of the span in the following format: * `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]` `[TRACE_ID]` is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. It should not be zero. `[SPAN_ID]` is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array. It should not be zero. .
*/
name?: string | null;
/**
* The `[SPAN_ID]` of this span's parent span. If this is a root span, then this field must be empty.
* Optional. The `[SPAN_ID]` of this span's parent span. If this is a root span, then this field must be empty.
*/

@@ -255,3 +255,3 @@ parentSpanId?: string | null;

/**
* Stack trace captured at the start of the span.
* Optional. Stack trace captured at the start of the span.
*/

@@ -268,3 +268,3 @@ stackTrace?: Schema$StackTrace;

/**
* A set of time events. You can have up to 32 annotations and 128 message events per span.
* Optional. A set of time events. You can have up to 32 annotations and 128 message events per span.
*/

@@ -278,27 +278,27 @@ timeEvents?: Schema$TimeEvents;

/**
* The column number where the function call appears, if available. This is important in JavaScript because of its anonymous functions.
* Optional. The column number where the function call appears, if available. This is important in JavaScript because of its anonymous functions.
*/
columnNumber?: string | null;
/**
* The name of the source file where the function call appears (up to 256 bytes).
* Optional. The name of the source file where the function call appears (up to 256 bytes).
*/
fileName?: Schema$TruncatableString;
/**
* The fully-qualified name that uniquely identifies the function or method that is active in this frame (up to 1024 bytes).
* Optional. The fully-qualified name that uniquely identifies the function or method that is active in this frame (up to 1024 bytes).
*/
functionName?: Schema$TruncatableString;
/**
* The line number in `file_name` where the function call appears.
* Optional. The line number in `file_name` where the function call appears.
*/
lineNumber?: string | null;
/**
* The binary module from where the code was loaded.
* Optional. The binary module from where the code was loaded.
*/
loadModule?: Schema$Module;
/**
* An un-mangled function name, if `function_name` is mangled. To get information about name mangling, run [this search](https://www.google.com/search?q=cxx+name+mangling). The name can be fully-qualified (up to 1024 bytes).
* Optional. An un-mangled function name, if `function_name` is mangled. To get information about name mangling, run [this search](https://www.google.com/search?q=cxx+name+mangling). The name can be fully-qualified (up to 1024 bytes).
*/
originalFunctionName?: Schema$TruncatableString;
/**
* The version of the deployed source code (up to 128 bytes).
* Optional. The version of the deployed source code (up to 128 bytes).
*/

@@ -312,7 +312,7 @@ sourceVersion?: Schema$TruncatableString;

/**
* The number of stack frames that were dropped because there were too many stack frames. If this value is 0, then no stack frames were dropped.
* Optional. The number of stack frames that were dropped because there were too many stack frames. If this value is 0, then no stack frames were dropped.
*/
droppedFramesCount?: number | null;
/**
* Stack frames in this call stack.
* Optional. Stack frames in this call stack.
*/

@@ -326,7 +326,7 @@ frame?: Schema$StackFrame[];

/**
* Stack frames in this stack trace. A maximum of 128 frames are allowed.
* Optional. Stack frames in this stack trace. A maximum of 128 frames are allowed.
*/
stackFrames?: Schema$StackFrames;
/**
* The hash ID is used to conserve network bandwidth for duplicate stack traces within a single trace. Often multiple spans will have identical stack traces. The first occurrence of a stack trace should contain both the `stackFrame` content and a value in `stackTraceHashId`. Subsequent spans within the same request can refer to that stack trace by only setting `stackTraceHashId`.
* Optional. The hash ID is used to conserve network bandwidth for duplicate stack traces within a single trace. Often multiple spans will have identical stack traces. The first occurrence of a stack trace should contain both the `stackFrame` content and a value in `stackTraceHashId`. Subsequent spans within the same request can refer to that stack trace by only setting `stackTraceHashId`.
*/

@@ -367,3 +367,3 @@ stackTraceHashId?: string | null;

/**
* The timestamp indicating the time the event occurred.
* Optional. The timestamp indicating the time the event occurred.
*/

@@ -377,11 +377,11 @@ time?: string | null;

/**
* The number of dropped annotations in all the included time events. If the value is 0, then no annotations were dropped.
* Optional. The number of dropped annotations in all the included time events. If the value is 0, then no annotations were dropped.
*/
droppedAnnotationsCount?: number | null;
/**
* The number of dropped message events in all the included time events. If the value is 0, then no message events were dropped.
* Optional. The number of dropped message events in all the included time events. If the value is 0, then no message events were dropped.
*/
droppedMessageEventsCount?: number | null;
/**
* A collection of `TimeEvent`s.
* Optional. A collection of `TimeEvent`s.
*/

@@ -395,7 +395,7 @@ timeEvent?: Schema$TimeEvent[];

/**
* The number of bytes removed from the original string. If this value is 0, then the string was not shortened.
* Optional. The number of bytes removed from the original string. If this value is 0, then the string was not shortened.
*/
truncatedByteCount?: number | null;
/**
* The shortened string. For example, if the original string is 500 bytes long and the limit of the string is 128 bytes, then `value` contains the first 128 bytes of the 500-byte string. Truncation always happens on a UTF8 character boundary. If there are multi-byte characters in the string, then the length of the shortened string might be less than the size limit.
* Optional. The shortened string. For example, if the original string is 500 bytes long and the limit of the string is 128 bytes, then `value` contains the first 128 bytes of the 500-byte string. Truncation always happens on a UTF8 character boundary. If there are multi-byte characters in the string, then the length of the shortened string might be less than the size limit.
*/

@@ -530,3 +530,3 @@ value?: string | null;

* const res = await cloudtrace.projects.traces.spans.createSpan({
* // Required. The resource name of the span in the following format: * `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]` `[TRACE_ID]` is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. It should not be zero. `[SPAN_ID]` is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array. It should not be zero. .
* // Identifier. The resource name of the span in the following format: * `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]` `[TRACE_ID]` is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. It should not be zero. `[SPAN_ID]` is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array. It should not be zero. .
* name: 'projects/my-project/traces/my-trace/spans/my-span',

@@ -597,3 +597,3 @@ *

/**
* Required. The resource name of the span in the following format: * `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]` `[TRACE_ID]` is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. It should not be zero. `[SPAN_ID]` is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array. It should not be zero. .
* Identifier. The resource name of the span in the following format: * `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]` `[TRACE_ID]` is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. It should not be zero. `[SPAN_ID]` is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array. It should not be zero. .
*/

@@ -600,0 +600,0 @@ name?: string;

@@ -38,2 +38,3 @@ "use strict";

accountTypes;
adEvents;
audienceMembers;

@@ -48,2 +49,3 @@ events;

this.accountTypes = new Resource$Accounttypes(this.context);
this.adEvents = new Resource$Adevents(this.context);
this.audienceMembers = new Resource$Audiencemembers(this.context);

@@ -716,2 +718,40 @@ this.events = new Resource$Events(this.context);

datamanager_v1.Resource$Accounttypes$Accounts$Userlists = Resource$Accounttypes$Accounts$Userlists;
class Resource$Adevents {
context;
constructor(context) {
this.context = context;
}
ingest(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/adEvents:ingest').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);
}
}
}
datamanager_v1.Resource$Adevents = Resource$Adevents;
class Resource$Audiencemembers {

@@ -786,2 +826,34 @@ context;

}
removeAll(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/audienceMembers:removeAll').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);
}
}
}

@@ -788,0 +860,0 @@ datamanager_v1.Resource$Audiencemembers = Resource$Audiencemembers;

@@ -361,3 +361,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Immutable. The sources of the pipeline (for example, Dataplex). The keys and values are set by the corresponding sources during pipeline creation.
* Immutable. The sources of the pipeline (for example, Knowledge Catalog). The keys and values are set by the corresponding sources during pipeline creation.
*/

@@ -364,0 +364,0 @@ pipelineSources?: {

@@ -71,5 +71,67 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

documents: Resource$Documents;
v1: Resource$V1;
constructor(options: GlobalOptions, google?: GoogleConfigurable);
}
/**
* An answer to a query.
*/
export interface Schema$Answer {
/**
* Contains the text of the answer.
*/
answerText?: string | null;
/**
* Output only. Contains citations for the answer.
*/
citations?: Schema$AnswerCitation[];
/**
* Output only. Contains references for the answer.
*/
references?: Schema$AnswerReference[];
}
/**
* Citation info for a segment.
*/
export interface Schema$AnswerCitation {
/**
* Output only. Indicates the end of the segment, measured in bytes (UTF-8 unicode), exclusive. If there are multi-byte characters, such as non-ASCII characters, the index measurement is longer than the string length.
*/
endIndex?: number | null;
/**
* Output only. Contains citation sources for the attributed segment.
*/
sources?: Schema$CitationSource[];
/**
* Output only. Indicates the start of the segment, measured in bytes (UTF-8 unicode), inclusive. If there are multi-byte characters, such as non-ASCII characters, the index measurement is longer than the string length.
*/
startIndex?: number | 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;
}
/**
* Represents a reference to a source.
*/
export interface Schema$AnswerReference {
/**
* Output only. The reference document.
*/
documentReference?: Schema$DocumentReference;
}
/**
* Response message for DeveloperKnowledge.BatchGetDocuments.

@@ -84,2 +146,11 @@ */

/**
* Citation source.
*/
export interface Schema$CitationSource {
/**
* Output only. Contains the index of the Answer.AnswerReference in the `references` repeated field.
*/
referenceIndex?: number | null;
}
/**
* A Document represents a piece of content from the Developer Knowledge corpus.

@@ -93,2 +164,6 @@ */

/**
* Output only. The length of the `content` field in bytes.
*/
contentLengthBytes?: number | null;
/**
* Output only. Specifies the data source of the document. Example data source: `firebase.google.com`

@@ -144,2 +219,11 @@ */

/**
* Represents a reference to a document.
*/
export interface Schema$DocumentReference {
/**
* Output only. Contains the document chunk. The `document_chunk.id` field is not set and will be empty.
*/
documentChunk?: Schema$DocumentChunk;
}
/**
* Response message for DeveloperKnowledge.SearchDocumentChunks.

@@ -191,3 +275,3 @@ */

* 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` If you are changing the batch size, consider the value of `maxConcurrentGCSFetches` constant in the service implementation: http://cs///depot/google3/devrel/boq/developerknowledge/service/developerknowledge.go
* // 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',

@@ -264,2 +348,3 @@ * // Optional. Specifies the DocumentView of the document. If unspecified, DeveloperKnowledge.BatchGetDocuments defaults to `DOCUMENT_VIEW_CONTENT`.

* // "content": "my_content",
* // "contentLengthBytes": 0,
* // "dataSource": "my_dataSource",

@@ -324,5 +409,5 @@ * // "description": "my_description",

* 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.
* // 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"`. Note: Field names must be in `snake_case` (e.g., `data_source`). Values on the right-hand side of filtering expressions must be string literals enclosed in double quotes (e.g., `"docs.cloud.google.com"`). 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.
* // 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 100; values above 100 will be coerced to 100.
* pageSize: 'placeholder-value',

@@ -364,3 +449,3 @@ * // Optional. Contains a page token, received from a previous `SearchDocumentChunks` call. Provide this to retrieve the subsequent page.

/**
* 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` If you are changing the batch size, consider the value of `maxConcurrentGCSFetches` constant in the service implementation: http://cs///depot/google3/devrel/boq/developerknowledge/service/developerknowledge.go
* 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`
*/

@@ -385,7 +470,7 @@ names?: string[];

/**
* 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.
* 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"`. Note: Field names must be in `snake_case` (e.g., `data_source`). Values on the right-hand side of filtering expressions must be string literals enclosed in double quotes (e.g., `"docs.cloud.google.com"`). 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.
* 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 100; values above 100 will be coerced to 100.
*/

@@ -402,3 +487,78 @@ pageSize?: number;

}
export class Resource$V1 {
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('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.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$V1$Answerquery, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
answerQuery(params?: Params$Resource$V1$Answerquery, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$AnswerQueryResponse>>;
answerQuery(params: Params$Resource$V1$Answerquery, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
answerQuery(params: Params$Resource$V1$Answerquery, options: MethodOptions | BodyResponseCallback<Schema$AnswerQueryResponse>, callback: BodyResponseCallback<Schema$AnswerQueryResponse>): void;
answerQuery(params: Params$Resource$V1$Answerquery, callback: BodyResponseCallback<Schema$AnswerQueryResponse>): void;
answerQuery(callback: BodyResponseCallback<Schema$AnswerQueryResponse>): void;
}
export interface Params$Resource$V1$Answerquery extends StandardParameters {
/**
* Request body metadata
*/
requestBody?: Schema$AnswerQueryRequest;
}
export {};
}

@@ -38,2 +38,3 @@ "use strict";

documents;
v1;
constructor(options, google) {

@@ -45,2 +46,3 @@ this.context = {

this.documents = new Resource$Documents(this.context);
this.v1 = new Resource$V1(this.context);
}

@@ -151,2 +153,40 @@ }

developerknowledge_v1.Resource$Documents = Resource$Documents;
class Resource$V1 {
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 + '/v1: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_v1.Resource$V1 = Resource$V1;
})(developerknowledge_v1 || (exports.developerknowledge_v1 = developerknowledge_v1 = {}));

@@ -82,4 +82,29 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

answerText?: string | null;
/**
* Output only. Contains citations for the answer.
*/
citations?: Schema$AnswerCitation[];
/**
* Output only. Contains references for the answer.
*/
references?: Schema$AnswerReference[];
}
/**
* Citation info for a segment.
*/
export interface Schema$AnswerCitation {
/**
* Output only. Indicates the end of the segment, measured in bytes (UTF-8 unicode), exclusive. If there are multi-byte characters, such as non-ASCII characters, the index measurement is longer than the string length.
*/
endIndex?: number | null;
/**
* Output only. Contains citation sources for the attributed segment.
*/
sources?: Schema$CitationSource[];
/**
* Output only. Indicates the start of the segment, measured in bytes (UTF-8 unicode), inclusive. If there are multi-byte characters, such as non-ASCII characters, the index measurement is longer than the string length.
*/
startIndex?: number | null;
}
/**
* Request message for DeveloperKnowledge.AnswerQuery.

@@ -103,2 +128,11 @@ */

/**
* Represents a reference to a source.
*/
export interface Schema$AnswerReference {
/**
* Output only. The reference document.
*/
documentReference?: Schema$DocumentReference;
}
/**
* Response message for DeveloperKnowledge.BatchGetDocuments.

@@ -113,2 +147,11 @@ */

/**
* Citation source.
*/
export interface Schema$CitationSource {
/**
* Output only. Contains the index of the Answer.AnswerReference in the `references` repeated field.
*/
referenceIndex?: number | null;
}
/**
* A Document represents a piece of content from the Developer Knowledge corpus.

@@ -122,2 +165,6 @@ */

/**
* Output only. The length of the `content` field in bytes.
*/
contentLengthBytes?: number | null;
/**
* Output only. Specifies the data source of the document. Example data source: `firebase.google.com`

@@ -173,2 +220,11 @@ */

/**
* Represents a reference to a document.
*/
export interface Schema$DocumentReference {
/**
* Output only. Contains the document chunk. The `document_chunk.id` field is not set and will be empty.
*/
documentChunk?: Schema$DocumentChunk;
}
/**
* Response message for DeveloperKnowledge.SearchDocumentChunks.

@@ -220,3 +276,3 @@ */

* 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` If you are changing the batch size, consider the value of `maxConcurrentGCSFetches` constant in the service implementation: http://cs///depot/google3/devrel/boq/developerknowledge/service/developerknowledge.go
* // 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',

@@ -293,2 +349,3 @@ * // Optional. Specifies the DocumentView of the document. If unspecified, DeveloperKnowledge.BatchGetDocuments defaults to `DOCUMENT_VIEW_CONTENT`.

* // "content": "my_content",
* // "contentLengthBytes": 0,
* // "dataSource": "my_dataSource",

@@ -353,5 +410,5 @@ * // "description": "my_description",

* 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.
* // 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"`. Note: Field names must be in `snake_case` (e.g., `data_source`). Values on the right-hand side of filtering expressions must be string literals enclosed in double quotes (e.g., `"docs.cloud.google.com"`). 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.
* // 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 100; values above 100 will be coerced to 100.
* pageSize: 'placeholder-value',

@@ -393,3 +450,3 @@ * // Optional. Contains a page token, received from a previous `SearchDocumentChunks` call. Provide this to retrieve the subsequent page.

/**
* 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` If you are changing the batch size, consider the value of `maxConcurrentGCSFetches` constant in the service implementation: http://cs///depot/google3/devrel/boq/developerknowledge/service/developerknowledge.go
* 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`
*/

@@ -414,7 +471,7 @@ names?: string[];

/**
* 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.
* 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"`. Note: Field names must be in `snake_case` (e.g., `data_source`). Values on the right-hand side of filtering expressions must be string literals enclosed in double quotes (e.g., `"docs.cloud.google.com"`). 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.
* 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 100; values above 100 will be coerced to 100.
*/

@@ -421,0 +478,0 @@ pageSize?: number;

@@ -6,3 +6,2 @@ /*! THIS FILE IS AUTO-GENERATED */

import { dfareporting_v3_5 } from './v3.5';
import { dfareporting_v4 } from './v4';
import { dfareporting_v5 } from './v5';

@@ -13,3 +12,2 @@ export declare const VERSIONS: {

'v3.5': typeof dfareporting_v3_5.Dfareporting;
v4: typeof dfareporting_v4.Dfareporting;
v5: typeof dfareporting_v5.Dfareporting;

@@ -23,4 +21,2 @@ };

export declare function dfareporting(options: dfareporting_v3_5.Options): dfareporting_v3_5.Dfareporting;
export declare function dfareporting(version: 'v4'): dfareporting_v4.Dfareporting;
export declare function dfareporting(options: dfareporting_v4.Options): dfareporting_v4.Dfareporting;
export declare function dfareporting(version: 'v5'): dfareporting_v5.Dfareporting;

@@ -33,4 +29,3 @@ export declare function dfareporting(options: dfareporting_v5.Options): dfareporting_v5.Dfareporting;

export { dfareporting_v3_5 };
export { dfareporting_v4 };
export { dfareporting_v5 };
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.dfareporting_v5 = exports.dfareporting_v4 = exports.dfareporting_v3_5 = exports.dfareporting_v3_4 = exports.dfareporting_v3_3 = exports.auth = exports.VERSIONS = void 0;
exports.AuthPlus = exports.dfareporting_v5 = exports.dfareporting_v3_5 = exports.dfareporting_v3_4 = exports.dfareporting_v3_3 = exports.auth = exports.VERSIONS = void 0;
exports.dfareporting = dfareporting;

@@ -26,4 +26,2 @@ /*! THIS FILE IS AUTO-GENERATED */

Object.defineProperty(exports, "dfareporting_v3_5", { enumerable: true, get: function () { return v3_5_1.dfareporting_v3_5; } });
const v4_1 = require("./v4");
Object.defineProperty(exports, "dfareporting_v4", { enumerable: true, get: function () { return v4_1.dfareporting_v4; } });
const v5_1 = require("./v5");

@@ -35,3 +33,2 @@ Object.defineProperty(exports, "dfareporting_v5", { enumerable: true, get: function () { return v5_1.dfareporting_v5; } });

'v3.5': v3_5_1.dfareporting_v3_5.Dfareporting,
v4: v4_1.dfareporting_v4.Dfareporting,
v5: v5_1.dfareporting_v5.Dfareporting,

@@ -38,0 +35,0 @@ };

@@ -146,2 +146,6 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Optional. 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.

@@ -316,3 +320,3 @@ */

/**
* Required. Along with `light_on_duration `, define the blink rate of LED flashes. Resolution defined by [proto.Duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration)
* Required. Along with `light_on_duration`, define the blink rate of LED flashes. Resolution defined by [proto.Duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration)
*/

@@ -352,2 +356,6 @@ lightOffDuration?: string | null;

/**
* Firebase Installation ID to send a message to.
*/
fid?: string | null;
/**
* Output Only. The identifier of the message sent, in the format of `projects/x/messages/{message_id\}`.

@@ -361,3 +369,3 @@ */

/**
* Registration token to send a message to.
* Deprecated: Use `fid` instead. Registration token to send a message to. During the transition period, this field also accepts a Firebase Installation ID (FID).
*/

@@ -507,2 +515,3 @@ token?: string | null;

* // "fcmOptions": {},
* // "fid": "my_fid",
* // "name": "my_name",

@@ -509,0 +518,0 @@ * // "notification": {},

@@ -136,3 +136,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* The percentage of accepted messages that were delayed due to message throttling, such as [collapsible message throttling](https://firebase.google.com/docs/cloud-messaging/concept-options#collapsible_throttling) or [maximum message rate throttling](https://firebase.google.com/docs/cloud-messaging/concept-options#device_throttling).
* The percentage of accepted messages that were delayed due to message throttling, such as [collapsible message throttling](https://firebase.google.com/docs/cloud-messaging/concept-options#collapsible_throttling).
*/

@@ -139,0 +139,0 @@ delayedMessageThrottled?: number | null;

@@ -61,2 +61,3 @@ "use strict";

operations;
sharePools;
constructor(context) {

@@ -67,2 +68,3 @@ this.context = context;

this.operations = new Resource$Projects$Locations$Operations(this.context);
this.sharePools = new Resource$Projects$Locations$Sharepools(this.context);
}

@@ -1113,2 +1115,75 @@ get(paramsOrCallback, optionsOrCallback, callback) {

file_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations;
class Resource$Projects$Locations$Sharepools {
context;
constructor(context) {
this.context = context;
}
acquireShare(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://file.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta1/{+parent}:acquireShare').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);
}
}
releaseShare(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://file.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta1/{+parent}:releaseShare').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);
}
}
}
file_v1beta1.Resource$Projects$Locations$Sharepools = Resource$Projects$Locations$Sharepools;
})(file_v1beta1 || (exports.file_v1beta1 = file_v1beta1 = {}));

@@ -25,3 +25,3 @@ "use strict";

/**
* Firebase Data Connect API
* Firebase SQL Connect API
*

@@ -28,0 +28,0 @@ * 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.

@@ -25,3 +25,3 @@ "use strict";

/**
* Firebase Data Connect API
* Firebase SQL Connect API
*

@@ -28,0 +28,0 @@ * 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.

@@ -96,3 +96,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Immutable. Location of the default bucket.
* Required. Immutable. Location of the default bucket.
*/

@@ -99,0 +99,0 @@ location?: string | null;

@@ -52,6 +52,70 @@ "use strict";

domainStats;
users;
constructor(context) {
this.context = context;
this.domainStats = new Resource$Domains$Domainstats(this.context);
this.users = new Resource$Domains$Users(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://gmailpostmastertools.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2/domains').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);
}
}
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://gmailpostmastertools.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2/{+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) {

@@ -120,2 +184,34 @@ let params = (paramsOrCallback || {});

}
getVerificationToken(paramsOrCallback, optionsOrCallback, callback) {
let params = (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) {

@@ -152,2 +248,33 @@ let params = (paramsOrCallback || {});

}
verify(paramsOrCallback, optionsOrCallback, callback) {
let params = (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}:verify').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);
}
}
}

@@ -194,2 +321,169 @@ gmailpostmastertools_v2.Resource$Domains = Resource$Domains;

gmailpostmastertools_v2.Resource$Domains$Domainstats = Resource$Domains$Domainstats;
class Resource$Domains$Users {
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://gmailpostmastertools.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2/{+parent}/users').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://gmailpostmastertools.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2/{+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://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/{+parent}/users').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://gmailpostmastertools.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v2/{+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);
}
}
}
gmailpostmastertools_v2.Resource$Domains$Users = Resource$Domains$Users;
class Resource$Domainstats {

@@ -196,0 +490,0 @@ context;

@@ -38,2 +38,3 @@ "use strict";

projects;
shl;
users;

@@ -46,2 +47,3 @@ constructor(options, google) {

this.projects = new Resource$Projects(this.context);
this.shl = new Resource$Shl(this.context);
this.users = new Resource$Users(this.context);

@@ -334,2 +336,90 @@ }

health_v4.Resource$Projects$Subscribers$Subscriptions = Resource$Projects$Subscribers$Subscriptions;
class Resource$Shl {
context;
m;
r;
constructor(context) {
this.context = context;
this.m = new Resource$Shl$M(this.context);
this.r = new Resource$Shl$R(this.context);
}
}
health_v4.Resource$Shl = Resource$Shl;
class Resource$Shl$M {
context;
constructor(context) {
this.context = context;
}
getShlManifest(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/shl/m/{externalShlId}').replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
apiVersion: '',
}, options),
params,
requiredParams: ['externalShlId'],
pathParams: ['externalShlId'],
context: this.context,
};
if (callback) {
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
}
else {
return (0, googleapis_common_1.createAPIRequest)(parameters);
}
}
}
health_v4.Resource$Shl$M = Resource$Shl$M;
class Resource$Shl$R {
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://health.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v4/shl/r/{externalShlId}/{resourceToken}').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
apiVersion: '',
}, options),
params,
requiredParams: ['externalShlId', 'resourceToken'],
pathParams: ['externalShlId', 'resourceToken'],
context: this.context,
};
if (callback) {
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
}
else {
return (0, googleapis_common_1.createAPIRequest)(parameters);
}
}
}
health_v4.Resource$Shl$R = Resource$Shl$R;
class Resource$Users {

@@ -336,0 +426,0 @@ context;

@@ -97,2 +97,23 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Component of a provider device.
*/
export interface Schema$Component {
/**
* Optional. Child components.
*/
childComponents?: Schema$Component[];
/**
* Required. List of Device types associated with this component. Supported device types are defined in cs//depot/google3/home/homeservicelayer/uddm/types/uddm_device_types.proto and the type string is the enum name, for example: ON_OFF_LIGHT =\> "ON_OFF_LIGHT".
*/
deviceTypes?: string[] | null;
/**
* Required. ID of the component from the device provider.
*/
id?: string | null;
/**
* Required. List of trait data associated with the component.
*/
traitData?: Schema$TraitData[];
}
/**
* Contains the set of updates for a component.

@@ -267,2 +288,11 @@ */

/**
* Container for UDDM trait data associated with a device.
*/
export interface Schema$HomeTraitPayload {
/**
* The root component of the device as reported by the provider.
*/
rootComponent?: Schema$Component;
}
/**
* Contains the set of updates for a device.

@@ -289,2 +319,6 @@ */

/**
* Optional. Specifies the type of device data to be returned in the response. This allows callers to request traditional Smart Home traits, Unified Device Data Model (UDDM) traits, or both. If unspecified, defaults to SMART_HOME_TRAIT_ONLY.
*/
deviceView?: string | null;
/**
* Optional. If true, the response will include device metadata in the device_metadata field.

@@ -351,2 +385,8 @@ */

} | null;
/**
* Map of device IDs to their Unified Device Data Model (UDDM) trait payloads. This field is populated when `device_view` is set to HOME_TRAIT_ONLY or HOME_TRAIT_AND_SMART_HOME_TRAIT.
*/
homeTraitPayload?: {
[key: string]: Schema$HomeTraitPayload;
} | null;
}

@@ -379,3 +419,3 @@ /**

/**
* Request type for the [`ReportStateAndNotification`](#google.home.graph.v1.HomeGraphApiService.ReportStateAndNotification) call. It may include states, notifications, or both. States and notifications are defined per `device_id` (for example, "123" and "456" in the following example). Example: ```json { "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf", "agentUserId": "1234", "payload": { "devices": { "states": { "123": { "on": true \}, "456": { "on": true, "brightness": 10 \}, \}, \} \} \} ```
* Request type for the [`ReportStateAndNotification`](#google.home.graph.v1.HomeGraphApiService.ReportStateAndNotification) call. It may include states, notifications, home_traits, home_events, or any combination thereof. Smart Home Device Traits (SHDT) `states` and `notifications` are defined per `device_id` (for example, "123" and "456" in the following example). Google Home Traits `home_traits` and `home_events` are lists of updates or events, each associated with a `device_id` (for example, "789" in the following example). Example: ```json { "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf", "agentUserId": "1234", "payload": { "devices": { "states": { "123": { "on": true \}, "456": { "on": true, "brightness": 10 \}, \}, "homeTraits": [ { "deviceId": "789", "components": [ { "componentId": "main", "traitData": [ { "trait": { "@type": "type.googleapis.com/home.graph.v1.OnOffTrait", "onOff": true \} \} ] \} ] \} ], "homeEvents": [ { "deviceId": "789", "events": [ { "componentId": "main", "events": [ { "eventId": "event-123", "eventTime": "2026-01-01T00:00:00Z", "event": { "@type": "type.googleapis.com/home.graph.v1.DoorbellPressTrait.DoorbellPressedEvent" \} \} ] \} ] \} ] \} \} \} ```
*/

@@ -409,2 +449,8 @@ export interface Schema$ReportStateAndNotificationRequest {

/**
* Map from agent device ID to the result of reporting state and notifications. This is only populated for UDDM updates for now.
*/
deviceResults?: {
[key: string]: Schema$Result;
} | null;
/**
* Request ID copied from ReportStateAndNotificationRequest.

@@ -433,2 +479,11 @@ */

/**
* Result of reporting state and notifications for a single device.
*/
export interface Schema$Result {
/**
* The trait commit timestamp of the state update in Home Graph.
*/
homeTraitCommitTime?: string | null;
}
/**
* Payload containing the state and notification information for devices.

@@ -486,2 +541,10 @@ */

/**
* Other metadata for the trait. The time the client update was committed in the server.
*/
commitTime?: string | null;
/**
* Optional in write requests (e.g. ReportStateAndNotification). If set, represents the provider version timestamp of the existing trait in the database. The server will perform optimistic locking validation if this field is present and the experiment is enabled. It will not be persisted to the database.
*/
providerVersionTime?: string | null;
/**
* The Provider Home API trait payload.

@@ -606,2 +669,3 @@ */

* // "agentUserId": "my_agentUserId",
* // "deviceView": "my_deviceView",
* // "includeDeviceMetadata": false,

@@ -687,2 +751,3 @@ * // "inputs": [],

* // {
* // "deviceResults": {},
* // "requestId": "my_requestId"

@@ -689,0 +754,0 @@ * // }

@@ -27,3 +27,3 @@ "use strict";

*
* The Cluster Director API allows you to deploy, manage, and monitor clusters that run AI, ML, or HPC workloads.
* The Cluster Director API lets you deploy, manage, and monitor clusters that run artificial intelligence (AI), machine learning (ML), or high performance computing (HPC) workloads.
*

@@ -30,0 +30,0 @@ * @example

@@ -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. Format: `locations/global/workforcePools/{pool_id\}`
* // Required. Resource name of workforce pool.
* name: 'locations/my-location/workforcePools/my-workforcePool',

@@ -276,3 +276,3 @@ * },

/**
* Required. Resource name of workforce pool. Format: `locations/global/workforcePools/{pool_id\}`
* Required. Resource name of workforce pool.
*/

@@ -328,3 +328,3 @@ name?: string;

* {
* // Required. Resource name of workload identity pool. Format: `projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}`
* // Required. Resource name of workload identity pool.
* name: 'projects/my-project/locations/my-location/workloadIdentityPools/my-workloadIdentityPool',

@@ -363,3 +363,3 @@ * },

/**
* Required. Resource name of workload identity pool. Format: `projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}`
* Required. Resource name of workload identity pool.
*/

@@ -366,0 +366,0 @@ name?: string;

@@ -17,2 +17,4 @@ /*! THIS FILE IS AUTO-GENERATED */

import { advisorynotifications } from './advisorynotifications';
import { agentidentity } from './agentidentity';
import { agentidentitycredentials } from './agentidentitycredentials';
import { agentregistry } from './agentregistry';

@@ -89,2 +91,3 @@ import { aiplatform } from './aiplatform';

import { cloudnumberregistry } from './cloudnumberregistry';
import { cloudproductregistry } from './cloudproductregistry';
import { cloudprofiler } from './cloudprofiler';

@@ -110,2 +113,3 @@ import { cloudresourcemanager } from './cloudresourcemanager';

import { customsearch } from './customsearch';
import { databasecenter } from './databasecenter';
import { datacatalog } from './datacatalog';

@@ -155,2 +159,3 @@ import { dataflow } from './dataflow';

import { firebaseapphosting } from './firebaseapphosting';
import { firebasecrashlytics } from './firebasecrashlytics';
import { firebasedatabase } from './firebasedatabase';

@@ -354,2 +359,4 @@ import { firebasedataconnect } from './firebasedataconnect';

advisorynotifications: typeof advisorynotifications;
agentidentity: typeof agentidentity;
agentidentitycredentials: typeof agentidentitycredentials;
agentregistry: typeof agentregistry;

@@ -426,2 +433,3 @@ aiplatform: typeof aiplatform;

cloudnumberregistry: typeof cloudnumberregistry;
cloudproductregistry: typeof cloudproductregistry;
cloudprofiler: typeof cloudprofiler;

@@ -447,2 +455,3 @@ cloudresourcemanager: typeof cloudresourcemanager;

customsearch: typeof customsearch;
databasecenter: typeof databasecenter;
datacatalog: typeof datacatalog;

@@ -492,2 +501,3 @@ dataflow: typeof dataflow;

firebaseapphosting: typeof firebaseapphosting;
firebasecrashlytics: typeof firebasecrashlytics;
firebasedatabase: typeof firebasedatabase;

@@ -494,0 +504,0 @@ firebasedataconnect: typeof firebasedataconnect;

@@ -32,2 +32,4 @@ "use strict";

const advisorynotifications_1 = require("./advisorynotifications");
const agentidentity_1 = require("./agentidentity");
const agentidentitycredentials_1 = require("./agentidentitycredentials");
const agentregistry_1 = require("./agentregistry");

@@ -104,2 +106,3 @@ const aiplatform_1 = require("./aiplatform");

const cloudnumberregistry_1 = require("./cloudnumberregistry");
const cloudproductregistry_1 = require("./cloudproductregistry");
const cloudprofiler_1 = require("./cloudprofiler");

@@ -125,2 +128,3 @@ const cloudresourcemanager_1 = require("./cloudresourcemanager");

const customsearch_1 = require("./customsearch");
const databasecenter_1 = require("./databasecenter");
const datacatalog_1 = require("./datacatalog");

@@ -170,2 +174,3 @@ const dataflow_1 = require("./dataflow");

const firebaseapphosting_1 = require("./firebaseapphosting");
const firebasecrashlytics_1 = require("./firebasecrashlytics");
const firebasedatabase_1 = require("./firebasedatabase");

@@ -363,2 +368,4 @@ const firebasedataconnect_1 = require("./firebasedataconnect");

advisorynotifications: advisorynotifications_1.VERSIONS,
agentidentity: agentidentity_1.VERSIONS,
agentidentitycredentials: agentidentitycredentials_1.VERSIONS,
agentregistry: agentregistry_1.VERSIONS,

@@ -435,2 +442,3 @@ aiplatform: aiplatform_1.VERSIONS,

cloudnumberregistry: cloudnumberregistry_1.VERSIONS,
cloudproductregistry: cloudproductregistry_1.VERSIONS,
cloudprofiler: cloudprofiler_1.VERSIONS,

@@ -456,2 +464,3 @@ cloudresourcemanager: cloudresourcemanager_1.VERSIONS,

customsearch: customsearch_1.VERSIONS,
databasecenter: databasecenter_1.VERSIONS,
datacatalog: datacatalog_1.VERSIONS,

@@ -501,2 +510,3 @@ dataflow: dataflow_1.VERSIONS,

firebaseapphosting: firebaseapphosting_1.VERSIONS,
firebasecrashlytics: firebasecrashlytics_1.VERSIONS,
firebasedatabase: firebasedatabase_1.VERSIONS,

@@ -695,2 +705,4 @@ firebasedataconnect: firebasedataconnect_1.VERSIONS,

advisorynotifications = advisorynotifications_1.advisorynotifications;
agentidentity = agentidentity_1.agentidentity;
agentidentitycredentials = agentidentitycredentials_1.agentidentitycredentials;
agentregistry = agentregistry_1.agentregistry;

@@ -767,2 +779,3 @@ aiplatform = aiplatform_1.aiplatform;

cloudnumberregistry = cloudnumberregistry_1.cloudnumberregistry;
cloudproductregistry = cloudproductregistry_1.cloudproductregistry;
cloudprofiler = cloudprofiler_1.cloudprofiler;

@@ -788,2 +801,3 @@ cloudresourcemanager = cloudresourcemanager_1.cloudresourcemanager;

customsearch = customsearch_1.customsearch;
databasecenter = databasecenter_1.databasecenter;
datacatalog = datacatalog_1.datacatalog;

@@ -833,2 +847,3 @@ dataflow = dataflow_1.dataflow;

firebaseapphosting = firebaseapphosting_1.firebaseapphosting;
firebasecrashlytics = firebasecrashlytics_1.firebasecrashlytics;
firebasedatabase = firebasedatabase_1.firebasedatabase;

@@ -835,0 +850,0 @@ firebasedataconnect = firebasedataconnect_1.firebasedataconnect;

@@ -295,2 +295,6 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Output only. Field indicating that the key wrapping key is trusted. This field is only valid for key purpose AES_256_WRAPPING, and protection level HSM_SINGLE_TENANT.
*/
hsmTrusted?: boolean | null;
/**
* Output only. The root cause of the most recent import failure. Only present if state is IMPORT_FAILED.

@@ -323,2 +327,6 @@ */

state?: string | null;
/**
* Immutable. Field indicating that the key may be wrapped by a trusted key. This field can be set for all key purposes except ENCRYPT_DECRYPT, and is only valid for keys with protection level HSM_SINGLE_TENANT. This field can only be set at creation or import time via CreateCryptoKeyVersion, or ImportCryptoKeyVersion.
*/
trustedWrappingEnabled?: boolean | null;
}

@@ -343,7 +351,11 @@ /**

/**
* The path to the external key material on the EKM when using EkmConnection e.g., "v0/my/key". Set this field instead of external_key_uri when using an EkmConnection.
* Optional. The resource name of the backend environment where the key material of CryptoKeyVersions is associated with. Setting this field overrides the CryptoKeyBackend. This field may be set when CryptoKeyVersions is set to EXTERNAL_VPC. Format: `projects/x/locations/x/ekmConnections/x`.
*/
ekmConnectionBackendOverride?: string | null;
/**
* Optional. The path to the external key material on the EKM when using EkmConnection e.g., "v0/my/key". Set this field instead of external_key_uri when using an EkmConnection.
*/
ekmConnectionKeyPath?: string | null;
/**
* The URI for an external resource that this CryptoKeyVersion represents.
* Optional. The URI for an external resource that this CryptoKeyVersion represents.
*/

@@ -350,0 +362,0 @@ externalKeyUri?: string | null;

@@ -426,2 +426,34 @@ "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);
}
}
}

@@ -428,0 +460,0 @@ looker_v1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances;

@@ -131,3 +131,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Optional. The name of the primary data source. Format: `accounts/{account\}/dataSources/{datasource\}`
* Optional. Deprecated: Use `self` instead to reference the primary data source. The name of the primary data source. Format: `accounts/{account\}/dataSources/{datasource\}`
*/

@@ -149,3 +149,3 @@ primaryDataSourceName?: string | null;

/**
* Required. The list of data sources linked in the [default rule](https://support.google.com/merchants/answer/7450276). This list is ordered by the default rule priority of joining the data. It might include none or multiple references to `self` and supplemental data sources. The list must not be empty. To link the data source to the default rule, you need to add a new reference to this list (in sequential order). To unlink the data source from the default rule, you need to remove the given reference from this list. Changing the order of this list will result in changing the priority of data sources in the default rule. For example, providing the following list: [`1001`, `self`] will take attribute values from supplemental data source `1001`, and fallback to `self` if the attribute is not set in `1001`.
* Required. The list of data sources linked in the [default rule](https://support.google.com/merchants/answer/7450276). This list is ordered by the default rule priority of joining the data. It might include none or multiple references to `self` and supplemental data sources. The list must not be empty. To link the data source to the default rule, you need to add a new reference to this list (in sequential order). To unlink the data source from the default rule, you need to remove the given reference from this list. Changing the order of this list will result in changing the priority of data sources in the default rule. For example, providing the following list: [`1001`, `self`] will take attribute values from supplemental data source `1001`, and fallback to `self` if the attribute is not set in `1001`. Warning: The update (patch) and create call replaces the entire default rule setup. It doesn't work as an addition or append. If `self` is missing from the list of `take_from_data_sources`, the API will ignore attributes from the primary data source itself.
*/

@@ -345,3 +345,3 @@ takeFromDataSources?: Schema$DataSourceReference[];

/**
* Optional. Default rule management of the data source. If set, the linked data sources will be replaced.
* Optional. Default rule management of the data source. If set, the linked data sources will be replaced. Warning: The update (patch) and create call replaces the entire default rule setup. It doesn't work as an addition or append. If `self` is missing from the list of `take_from_data_sources`, the API will ignore attributes from the primary data source itself.
*/

@@ -348,0 +348,0 @@ defaultRule?: Schema$DefaultRule;

@@ -131,3 +131,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Optional. The name of the primary data source. Format: `accounts/{account\}/dataSources/{datasource\}`
* Optional. Deprecated: Use `self` instead to reference the primary data source. The name of the primary data source. Format: `accounts/{account\}/dataSources/{datasource\}`
*/

@@ -149,3 +149,3 @@ primaryDataSourceName?: string | null;

/**
* Required. The list of data sources linked in the [default rule](https://support.google.com/merchants/answer/7450276). This list is ordered by the default rule priority of joining the data. It might include none or multiple references to `self` and supplemental data sources. The list must not be empty. To link the data source to the default rule, you need to add a new reference to this list (in sequential order). To unlink the data source from the default rule, you need to remove the given reference from this list. Changing the order of this list will result in changing the priority of data sources in the default rule. For example, providing the following list: [`1001`, `self`] will take attribute values from supplemental data source `1001`, and fallback to `self` if the attribute is not set in `1001`.
* Required. The list of data sources linked in the [default rule](https://support.google.com/merchants/answer/7450276). This list is ordered by the default rule priority of joining the data. It might include none or multiple references to `self` and supplemental data sources. The list must not be empty. To link the data source to the default rule, you need to add a new reference to this list (in sequential order). To unlink the data source from the default rule, you need to remove the given reference from this list. Changing the order of this list will result in changing the priority of data sources in the default rule. For example, providing the following list: [`1001`, `self`] will take attribute values from supplemental data source `1001`, and fallback to `self` if the attribute is not set in `1001`. Warning: The update (patch) and create call replaces the entire default rule setup. It doesn't work as an addition or append. If `self` is missing from the list of `take_from_data_sources`, the API will ignore attributes from the primary data source itself.
*/

@@ -349,3 +349,3 @@ takeFromDataSources?: Schema$DataSourceReference[];

/**
* Optional. Default rule management of the data source. If set, the linked data sources will be replaced.
* Optional. Default rule management of the data source. If set, the linked data sources will be replaced. Warning: The update (patch) and create call replaces the entire default rule setup. It doesn't work as an addition or append. If `self` is missing from the list of `take_from_data_sources`, the API will ignore attributes from the primary data source itself.
*/

@@ -352,0 +352,0 @@ defaultRule?: Schema$DefaultRule;

@@ -536,3 +536,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Details of the issue as a pre-rendered HTML. HTML elements contain CSS classes that can be used to customize the style of the content. Always sanitize the HTML before embedding it directly to your application. The sanitizer needs to allow basic HTML tags, such as: `div`, `span`, `p`, `a`, `ul`, `li`, `table`, `tr`, `td`. For example, you can use [DOMPurify](https://www.npmjs.com/package/dompurify). CSS classes: * `issue-detail` - top level container for the detail of the issue * `callout-banners` - section of the `issue-detail` with callout banners * `callout-banner` - single callout banner, inside `callout-banners` * `callout-banner-info` - callout with important information (default) * `callout-banner-warning` - callout with a warning * `callout-banner-error` - callout informing about an error (most severe) * `issue-content` - section of the `issue-detail`, contains multiple `content-element` * `content-element` - content element such as a list, link or paragraph, inside `issue-content` * `root-causes` - unordered list with items describing root causes of the issue, inside `issue-content` * `root-causes-intro` - intro text before the `root-causes` list, inside `issue-content` * `segment` - section of the text, `span` inside paragraph * `segment-attribute` - section of the text that represents a product attribute, for example 'image\_link' * `segment-literal` - section of the text that contains a special value, for example '0-1000 kg' * `segment-bold` - section of the text that should be rendered as bold * `segment-italic` - section of the text that should be rendered as italic * `tooltip` - used on paragraphs that should be rendered with a tooltip. A section of the text in such a paragraph will have a class `tooltip-text` and is intended to be shown in a mouse over dialog. If the style is not used, the `tooltip-text` section would be shown on a new line, after the main part of the text. * `tooltip-text` - marks a section of the text within a `tooltip`, that is intended to be shown in a mouse over dialog. * `tooltip-icon` - marks a section of the text within a `tooltip`, that can be replaced with a tooltip icon, for example '?' or 'i'. By default, this section contains a `br` tag, that is separating the main text and the tooltip text when the style is not used. * `tooltip-style-question` - the tooltip shows helpful information, can use the '?' as an icon. * `tooltip-style-info` - the tooltip adds additional information fitting to the context, can use the 'i' as an icon. * `content-moderation` - marks the paragraph that explains how the issue was identified. * `new-element` - Present for new elements added to the pre-rendered content in the future. To make sure that a new content element does not break your style, you can hide everything with this class.
* Details of the issue as a pre-rendered HTML. HTML elements contain CSS classes that can be used to customize the style of the content. Always sanitize the HTML before embedding it directly to your application. The sanitizer needs to allow basic HTML tags, such as: `div`, `span`, `p`, `a`, `ul`, `li`, `table`, `tr`, `td`. For example, you can use [DOMPurify](https://www.npmjs.com/package/dompurify). CSS classes: * `issue-detail` - top level container for the detail of the issue * `callout-banners` - section of the `issue-detail` with callout banners * `callout-banner` - single callout banner, inside `callout-banners` * `callout-banner-info` - callout with important information (default) * `callout-banner-warning` - callout with a warning * `callout-banner-error` - callout informing about an error (most severe) * `issue-content` - section of the `issue-detail`, contains multiple `content-element` * `content-element` - content element such as a list, link or paragraph, inside `issue-content` * `root-causes` - unordered list with items describing root causes of the issue, inside `issue-content` * `root-causes-intro` - intro text before the `root-causes` list, inside `issue-content` * `segment` - section of the text, `span` inside paragraph * `segment-attribute` - section of the text that represents a product attribute, for example 'image\_link' * `segment-literal` - section of the text that contains a special value, for example '0-1000 kg' * `segment-bold` - section of the text that should be rendered as bold * `segment-italic` - section of the text that should be rendered as italic * `tooltip` - used on paragraphs that should be rendered with a tooltip. A section of the text in such a paragraph will have a class `tooltip-text` and is intended to be shown in a mouse over dialog. If the style is not used, the `tooltip-text` section would be shown on a new line, after the main part of the text. * `tooltip-text` - marks a section of the text within a `tooltip`, that is intended to be shown in a mouse over dialog. * `tooltip-icon` - marks a section of the text within a `tooltip`, that can be replaced with a tooltip icon, for example '?' or 'i'. By default, this section contains a `br` tag, that is separating the main text and the tooltip text when the style is not used. * `tooltip-style-question` - the tooltip shows helpful information, can use the '?' as an icon. * `tooltip-style-info` - the tooltip adds additional information fitting to the context, can use the 'i' as an icon. * `content-moderation` - marks the paragraph that explains how the issue was identified. * `asset-value` - marks the paragraph that contains the asset information. * `asset-label` - marks the section of the text that contains the label of the asset. * `asset-link` - marks the section of the text that contains a link to the asset. * `asset-provided-value` - marks the section of the text that contains the value of the asset. * `new-element` - Present for new elements added to the pre-rendered content in the future. To make sure that a new content element does not break your style, you can hide everything with this class.
*/

@@ -670,3 +670,3 @@ prerenderedContent?: string | null;

/**
* Lists the `AggregateProductStatuses` resources for your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results.
* Lists the `AggregateProductStatuses` resources for your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results. This method can only be accessed by standalone accounts and sub-accounts of an advanced account. To retrieve product statuses for sub-accounts, you must first call the accounts.listSubaccounts method to obtain a list of sub-accounts, and then call `accounts.aggregateProductStatuses.list` for each sub-account individually.
* @example

@@ -707,3 +707,3 @@ * ```js

* pageToken: 'placeholder-value',
* // Required. The account to list aggregate product statuses for. Format: `accounts/{account\}`
* // Required. The account to list aggregate product statuses for. Format: `accounts/{account\}` Can only be sub-accounts and standalone accounts.
* parent: 'accounts/my-account',

@@ -753,3 +753,3 @@ * });

/**
* Required. The account to list aggregate product statuses for. Format: `accounts/{account\}`
* Required. The account to list aggregate product statuses for. Format: `accounts/{account\}` Can only be sub-accounts and standalone accounts.
*/

@@ -756,0 +756,0 @@ parent?: string;

@@ -536,3 +536,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Details of the issue as a pre-rendered HTML. HTML elements contain CSS classes that can be used to customize the style of the content. Always sanitize the HTML before embedding it directly to your application. The sanitizer needs to allow basic HTML tags, such as: `div`, `span`, `p`, `a`, `ul`, `li`, `table`, `tr`, `td`. For example, you can use [DOMPurify](https://www.npmjs.com/package/dompurify). CSS classes: * `issue-detail` - top level container for the detail of the issue * `callout-banners` - section of the `issue-detail` with callout banners * `callout-banner` - single callout banner, inside `callout-banners` * `callout-banner-info` - callout with important information (default) * `callout-banner-warning` - callout with a warning * `callout-banner-error` - callout informing about an error (most severe) * `issue-content` - section of the `issue-detail`, contains multiple `content-element` * `content-element` - content element such as a list, link or paragraph, inside `issue-content` * `root-causes` - unordered list with items describing root causes of the issue, inside `issue-content` * `root-causes-intro` - intro text before the `root-causes` list, inside `issue-content` * `segment` - section of the text, `span` inside paragraph * `segment-attribute` - section of the text that represents a product attribute, for example 'image\_link' * `segment-literal` - section of the text that contains a special value, for example '0-1000 kg' * `segment-bold` - section of the text that should be rendered as bold * `segment-italic` - section of the text that should be rendered as italic * `tooltip` - used on paragraphs that should be rendered with a tooltip. A section of the text in such a paragraph will have a class `tooltip-text` and is intended to be shown in a mouse over dialog. If the style is not used, the `tooltip-text` section would be shown on a new line, after the main part of the text. * `tooltip-text` - marks a section of the text within a `tooltip`, that is intended to be shown in a mouse over dialog. * `tooltip-icon` - marks a section of the text within a `tooltip`, that can be replaced with a tooltip icon, for example '?' or 'i'. By default, this section contains a `br` tag, that is separating the main text and the tooltip text when the style is not used. * `tooltip-style-question` - the tooltip shows helpful information, can use the '?' as an icon. * `tooltip-style-info` - the tooltip adds additional information fitting to the context, can use the 'i' as an icon. * `content-moderation` - marks the paragraph that explains how the issue was identified. * `new-element` - Present for new elements added to the pre-rendered content in the future. To make sure that a new content element does not break your style, you can hide everything with this class.
* Details of the issue as a pre-rendered HTML. HTML elements contain CSS classes that can be used to customize the style of the content. Always sanitize the HTML before embedding it directly to your application. The sanitizer needs to allow basic HTML tags, such as: `div`, `span`, `p`, `a`, `ul`, `li`, `table`, `tr`, `td`. For example, you can use [DOMPurify](https://www.npmjs.com/package/dompurify). CSS classes: * `issue-detail` - top level container for the detail of the issue * `callout-banners` - section of the `issue-detail` with callout banners * `callout-banner` - single callout banner, inside `callout-banners` * `callout-banner-info` - callout with important information (default) * `callout-banner-warning` - callout with a warning * `callout-banner-error` - callout informing about an error (most severe) * `issue-content` - section of the `issue-detail`, contains multiple `content-element` * `content-element` - content element such as a list, link or paragraph, inside `issue-content` * `root-causes` - unordered list with items describing root causes of the issue, inside `issue-content` * `root-causes-intro` - intro text before the `root-causes` list, inside `issue-content` * `segment` - section of the text, `span` inside paragraph * `segment-attribute` - section of the text that represents a product attribute, for example 'image\_link' * `segment-literal` - section of the text that contains a special value, for example '0-1000 kg' * `segment-bold` - section of the text that should be rendered as bold * `segment-italic` - section of the text that should be rendered as italic * `tooltip` - used on paragraphs that should be rendered with a tooltip. A section of the text in such a paragraph will have a class `tooltip-text` and is intended to be shown in a mouse over dialog. If the style is not used, the `tooltip-text` section would be shown on a new line, after the main part of the text. * `tooltip-text` - marks a section of the text within a `tooltip`, that is intended to be shown in a mouse over dialog. * `tooltip-icon` - marks a section of the text within a `tooltip`, that can be replaced with a tooltip icon, for example '?' or 'i'. By default, this section contains a `br` tag, that is separating the main text and the tooltip text when the style is not used. * `tooltip-style-question` - the tooltip shows helpful information, can use the '?' as an icon. * `tooltip-style-info` - the tooltip adds additional information fitting to the context, can use the 'i' as an icon. * `content-moderation` - marks the paragraph that explains how the issue was identified. * `asset-value` - marks the paragraph that contains the asset information. * `asset-label` - marks the section of the text that contains the label of the asset. * `asset-link` - marks the section of the text that contains a link to the asset. * `asset-provided-value` - marks the section of the text that contains the value of the asset. * `new-element` - Present for new elements added to the pre-rendered content in the future. To make sure that a new content element does not break your style, you can hide everything with this class.
*/

@@ -670,3 +670,3 @@ prerenderedContent?: string | null;

/**
* Lists the `AggregateProductStatuses` resources for your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results.
* Lists the `AggregateProductStatuses` resources for your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results. This method can only be accessed by standalone accounts and sub-accounts of an advanced account. To retrieve product statuses for sub-accounts, you must first call the accounts.listSubaccounts method to obtain a list of sub-accounts, and then call `accounts.aggregateProductStatuses.list` for each sub-account individually.
* @example

@@ -707,3 +707,3 @@ * ```js

* pageToken: 'placeholder-value',
* // Required. The account to list aggregate product statuses for. Format: `accounts/{account\}`
* // Required. The account to list aggregate product statuses for. Format: `accounts/{account\}` Can only be sub-accounts and standalone accounts.
* parent: 'accounts/my-account',

@@ -753,3 +753,3 @@ * });

/**
* Required. The account to list aggregate product statuses for. Format: `accounts/{account\}`
* Required. The account to list aggregate product statuses for. Format: `accounts/{account\}` Can only be sub-accounts and standalone accounts.
*/

@@ -756,0 +756,0 @@ parent?: string;

@@ -104,3 +104,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Output only. The `name` of the notification configuration. Generated by the Content API upon creation of a new `NotificationSubscription`. The `account` represents the merchant ID of the merchant that owns the configuration. Format: `accounts/{account\}/notificationsubscriptions/{notification_subscription\}`
* Output only. The `name` of the notification configuration. Generated by the Merchant API upon creation of a new `NotificationSubscription`. The `account` represents the merchant ID of the merchant that owns the configuration. Format: `accounts/{account\}/notificationsubscriptions/{notification_subscription\}`
*/

@@ -188,3 +188,3 @@ name?: string | null;

/**
* Creates a notification subscription for a business. For standalone or subaccounts accounts, the business can create a subscription for self. For MCAs, the business can create a subscription for all managed accounts or for a specific subaccount. See [Decode notifications](/merchant/api/guides/accounts/notifications#decode_notifications) for information on how to decode the notification payload and how to interpret its contents. We will allow the following types of notification subscriptions to exist together (per business as a subscriber per event type): 1. Subscription for all managed accounts + subscription for self. 2. Multiple "partial" subscriptions for managed accounts + subscription for self. we will not allow (per business as a subscriber per event type): 1. Multiple self subscriptions. 2. Multiple "all managed accounts" subscriptions. 3. "All managed accounts" subscription and partial subscriptions at the same time. 4. Multiple partial subscriptions for the same target account.
* Creates a notification subscription for a business. For standalone or sub-accounts, the business can create a subscription for self. For advanced accounts, the business can create a subscription for all managed accounts or for a specific subaccount. See [Decode notifications](/merchant/api/guides/accounts/notifications#decode_notifications) for information on how to decode the notification payload and how to interpret its contents. We will allow the following types of notification subscriptions to exist together (per business as a subscriber per event type): 1. Subscription for all managed accounts + subscription for self. 2. Multiple "partial" subscriptions for managed accounts + subscription for self. we will not allow (per business as a subscriber per event type): 1. Multiple self subscriptions. 2. Multiple "all managed accounts" subscriptions. 3. "All managed accounts" subscription and partial subscriptions at the same time. 4. Multiple partial subscriptions for the same target account.
* @example

@@ -482,3 +482,3 @@ * ```js

* const res = await merchantapi.accounts.notificationsubscriptions.patch({
* // Output only. The `name` of the notification configuration. Generated by the Content API upon creation of a new `NotificationSubscription`. The `account` represents the merchant ID of the merchant that owns the configuration. Format: `accounts/{account\}/notificationsubscriptions/{notification_subscription\}`
* // Output only. The `name` of the notification configuration. Generated by the Merchant API upon creation of a new `NotificationSubscription`. The `account` represents the merchant ID of the merchant that owns the configuration. Format: `accounts/{account\}/notificationsubscriptions/{notification_subscription\}`
* name: 'accounts/my-account/notificationsubscriptions/my-notificationsubscription',

@@ -569,3 +569,3 @@ * // List of fields being updated.

/**
* Output only. The `name` of the notification configuration. Generated by the Content API upon creation of a new `NotificationSubscription`. The `account` represents the merchant ID of the merchant that owns the configuration. Format: `accounts/{account\}/notificationsubscriptions/{notification_subscription\}`
* Output only. The `name` of the notification configuration. Generated by the Merchant API upon creation of a new `NotificationSubscription`. The `account` represents the merchant ID of the merchant that owns the configuration. Format: `accounts/{account\}/notificationsubscriptions/{notification_subscription\}`
*/

@@ -572,0 +572,0 @@ name?: string;

@@ -104,3 +104,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Output only. The `name` of the notification configuration. Generated by the Content API upon creation of a new `NotificationSubscription`. The `account` represents the merchant ID of the merchant that owns the configuration. Format: `accounts/{account\}/notificationsubscriptions/{notification_subscription\}`
* Output only. The `name` of the notification configuration. Generated by the Merchant API upon creation of a new `NotificationSubscription`. The `account` represents the merchant ID of the merchant that owns the configuration. Format: `accounts/{account\}/notificationsubscriptions/{notification_subscription\}`
*/

@@ -188,3 +188,3 @@ name?: string | null;

/**
* Creates a notification subscription for a business. For standalone or subaccounts accounts, the business can create a subscription for self. For MCAs, the business can create a subscription for all managed accounts or for a specific subaccount. See [Decode notifications](/merchant/api/guides/accounts/notifications#decode_notifications) for information on how to decode the notification payload and how to interpret its contents. We will allow the following types of notification subscriptions to exist together (per business as a subscriber per event type): 1. Subscription for all managed accounts + subscription for self. 2. Multiple "partial" subscriptions for managed accounts + subscription for self. we will not allow (per business as a subscriber per event type): 1. Multiple self subscriptions. 2. Multiple "all managed accounts" subscriptions. 3. "All managed accounts" subscription and partial subscriptions at the same time. 4. Multiple partial subscriptions for the same target account.
* Creates a notification subscription for a business. For standalone or sub-accounts, the business can create a subscription for self. For advanced accounts, the business can create a subscription for all managed accounts or for a specific subaccount. See [Decode notifications](/merchant/api/guides/accounts/notifications#decode_notifications) for information on how to decode the notification payload and how to interpret its contents. We will allow the following types of notification subscriptions to exist together (per business as a subscriber per event type): 1. Subscription for all managed accounts + subscription for self. 2. Multiple "partial" subscriptions for managed accounts + subscription for self. we will not allow (per business as a subscriber per event type): 1. Multiple self subscriptions. 2. Multiple "all managed accounts" subscriptions. 3. "All managed accounts" subscription and partial subscriptions at the same time. 4. Multiple partial subscriptions for the same target account.
* @example

@@ -482,3 +482,3 @@ * ```js

* const res = await merchantapi.accounts.notificationsubscriptions.patch({
* // Output only. The `name` of the notification configuration. Generated by the Content API upon creation of a new `NotificationSubscription`. The `account` represents the merchant ID of the merchant that owns the configuration. Format: `accounts/{account\}/notificationsubscriptions/{notification_subscription\}`
* // Output only. The `name` of the notification configuration. Generated by the Merchant API upon creation of a new `NotificationSubscription`. The `account` represents the merchant ID of the merchant that owns the configuration. Format: `accounts/{account\}/notificationsubscriptions/{notification_subscription\}`
* name: 'accounts/my-account/notificationsubscriptions/my-notificationsubscription',

@@ -569,3 +569,3 @@ * // List of fields being updated.

/**
* Output only. The `name` of the notification configuration. Generated by the Content API upon creation of a new `NotificationSubscription`. The `account` represents the merchant ID of the merchant that owns the configuration. Format: `accounts/{account\}/notificationsubscriptions/{notification_subscription\}`
* Output only. The `name` of the notification configuration. Generated by the Merchant API upon creation of a new `NotificationSubscription`. The `account` represents the merchant ID of the merchant that owns the configuration. Format: `accounts/{account\}/notificationsubscriptions/{notification_subscription\}`
*/

@@ -572,0 +572,0 @@ name?: string;

@@ -229,3 +229,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Output only. The current quota usage, meaning the number of calls already made on a given day to the methods in the group. The daily quota limits reset at at 12:00 PM midday UTC.
* Output only. The current quota usage, meaning the number of calls already made on a given day to the methods in the group. The daily quota limits reset at 12:00 PM midday UTC.
*/

@@ -232,0 +232,0 @@ quotaUsage?: string | null;

@@ -190,3 +190,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Output only. The current quota usage, meaning the number of calls already made on a given day to the methods in the group. The daily quota limits reset at at 12:00 PM midday UTC.
* Output only. The current quota usage, meaning the number of calls already made on a given day to the methods in the group. The daily quota limits reset at 12:00 PM midday UTC.
*/

@@ -193,0 +193,0 @@ quotaUsage?: string | null;

@@ -412,3 +412,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Date in the merchant timezone to which metrics apply. Segment. Condition on `date` is required in the `WHERE` clause.
* Date in the Merchant Center account timezone to which metrics apply. Segment. Condition on `date` is required in the `WHERE` clause.
*/

@@ -421,3 +421,3 @@ date?: Schema$Date;

/**
* First day of the week (Monday) of the metrics date in the merchant timezone. Segment.
* First day of the week (Monday) of the metrics date in the Merchant Center account timezone. Segment.
*/

@@ -691,3 +691,3 @@ week?: Schema$Date;

/**
* Date in the merchant timezone to which metrics apply. Segment. Condition on `date` is required in the `WHERE` clause.
* Date in the Merchant Center account timezone to which metrics apply. Segment. Condition on `date` is required in the `WHERE` clause.
*/

@@ -736,3 +736,3 @@ date?: Schema$Date;

/**
* First day of the week (Monday) of the metrics date in the merchant timezone. Segment.
* First day of the week (Monday) of the metrics date in the Merchant Center account timezone. Segment.
*/

@@ -1050,3 +1050,3 @@ week?: Schema$Date;

* const res = await merchantapi.accounts.reports.search({
* // Required. Id of the account making the call. Must be a standalone account or an MCA subaccount. Format: accounts/{account\}
* // Required. Id of the account making the call. Must be a standalone account or a subaccount of an advanced account. Format: accounts/{account\}
* parent: 'accounts/my-account',

@@ -1094,3 +1094,3 @@ *

/**
* Required. Id of the account making the call. Must be a standalone account or an MCA subaccount. Format: accounts/{account\}
* Required. Id of the account making the call. Must be a standalone account or a subaccount of an advanced account. Format: accounts/{account\}
*/

@@ -1097,0 +1097,0 @@ parent?: string;

@@ -412,3 +412,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Date in the merchant timezone to which metrics apply. Segment. Condition on `date` is required in the `WHERE` clause.
* Date in the Merchant Center account timezone to which metrics apply. Segment. Condition on `date` is required in the `WHERE` clause.
*/

@@ -421,3 +421,3 @@ date?: Schema$Date;

/**
* First day of the week (Monday) of the metrics date in the merchant timezone. Segment.
* First day of the week (Monday) of the metrics date in the Merchant Center account timezone. Segment.
*/

@@ -691,3 +691,3 @@ week?: Schema$Date;

/**
* Date in the merchant timezone to which metrics apply. Segment. Condition on `date` is required in the `WHERE` clause.
* Date in the Merchant Center account timezone to which metrics apply. Segment. Condition on `date` is required in the `WHERE` clause.
*/

@@ -736,3 +736,3 @@ date?: Schema$Date;

/**
* First day of the week (Monday) of the metrics date in the merchant timezone. Segment.
* First day of the week (Monday) of the metrics date in the Merchant Center account timezone. Segment.
*/

@@ -1050,3 +1050,3 @@ week?: Schema$Date;

* const res = await merchantapi.accounts.reports.search({
* // Required. Id of the account making the call. Must be a standalone account or an MCA subaccount. Format: accounts/{account\}
* // Required. Id of the account making the call. Must be a standalone account or a subaccount of an advanced account. Format: accounts/{account\}
* parent: 'accounts/my-account',

@@ -1094,3 +1094,3 @@ *

/**
* Required. Id of the account making the call. Must be a standalone account or an MCA subaccount. Format: accounts/{account\}
* Required. Id of the account making the call. Must be a standalone account or a subaccount of an advanced account. Format: accounts/{account\}
*/

@@ -1097,0 +1097,0 @@ parent?: string;

@@ -162,6 +162,2 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Immutable. Deprecated: Please use location_id instead. The address and other details of the location to generate an instant verification token for.
*/
locationData?: Schema$LocationData;
/**
* The location identifier associated with an unverified listing. This is the location id generated at the time that the listing was originally created. It is the final portion of a location resource name as generated by the Google My Business API. Note: the caller must be an owner or manager of this listing in order to generate a verification token. See the [location resource](/my-business/reference/rest/v4/accounts.locations) documentation for more information.

@@ -198,15 +194,2 @@ */

/**
* The address and other details of the location to generate an instant verification token for.
*/
export interface Schema$LocationData {
/**
* Immutable. A precise, accurate address to describe your business location. PO boxes or mailboxes located at remote locations are not acceptable. At this time, you can specify a maximum of five `address_lines` values in the address.
*/
address?: Schema$PostalAddress;
/**
* Immutable. Name should reflect your business's real-world name, as used consistently on your storefront, website, and stationery, and as known to customers. Any additional information, when relevant, can be included in other fields of the resource (for example, `Address`, `Categories`). Don't add unnecessary information to your name (for example, prefer "Google" over "Google Inc. - Mountain View Corporate Headquarters"). Don't include marketing taglines, store codes, special characters, hours or closed/open status, phone numbers, website URLs, service/product information, location/address or directions, or containment information (for example, "Chase ATM in Duane Reade").
*/
name?: string | null;
}
/**
* Represents a postal address, such as for postal delivery or payments addresses. With a postal address, a postal service can deliver items to a premise, P.O. box, or similar. A postal address is not intended to model geographical locations like roads, towns, or mountains. In typical usage, an address would be created by user input or from importing existing data, depending on the type of process. Advice on address input or editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput. - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, see: https://support.google.com/business/answer/6397478.

@@ -861,3 +844,2 @@ */

* // {
* // "locationData": {},
* // "locationId": "my_locationId"

@@ -864,0 +846,0 @@ * // }

@@ -178,2 +178,6 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Optional. The Cloud Run resource to sign the SSH public key for. Expected formats: - `projects/{project\}/locations/{location\}/services/{service\}` - `projects/{project\}/locations/{location\}/workerPools/{worker_pool\}` - `projects/{project\}/locations/{location\}/jobs/{job\}` - `projects/{project\}/locations/{location\}/instances/{instance\}`
*/
cloudRunResource?: string | null;
/**
* The Compute instance to sign the SSH public key for. Expected format: projects/{project\}/zones/{zone\}/instances/{numeric_instance_id\}

@@ -268,2 +272,3 @@ */

* // "appEngineInstance": "my_appEngineInstance",
* // "cloudRunResource": "my_cloudRunResource",
* // "computeInstance": "my_computeInstance",

@@ -270,0 +275,0 @@ * // "serviceAccount": "my_serviceAccount",

@@ -88,2 +88,6 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Optional. The Cloud Run resource to sign the SSH public key for. Expected formats: - `projects/{project\}/locations/{location\}/services/{service\}` - `projects/{project\}/locations/{location\}/workerPools/{worker_pool\}` - `projects/{project\}/locations/{location\}/jobs/{job\}` - `projects/{project\}/locations/{location\}/instances/{instance\}`
*/
cloudRunResource?: string | null;
/**
* The Compute instance to sign the SSH public key for. Expected format: projects/{project\}/zones/{zone\}/instances/{numeric_instance_id\}

@@ -327,2 +331,3 @@ */

* // "appEngineInstance": "my_appEngineInstance",
* // "cloudRunResource": "my_cloudRunResource",
* // "computeInstance": "my_computeInstance",

@@ -329,0 +334,0 @@ * // "serviceAccount": "my_serviceAccount",

@@ -88,2 +88,6 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Optional. The Cloud Run resource to sign the SSH public key for. Expected formats: - `projects/{project\}/locations/{location\}/services/{service\}` - `projects/{project\}/locations/{location\}/workerPools/{worker_pool\}` - `projects/{project\}/locations/{location\}/jobs/{job\}` - `projects/{project\}/locations/{location\}/instances/{instance\}`
*/
cloudRunResource?: string | null;
/**
* The Compute instance to sign the SSH public key for. Expected format: projects/{project\}/zones/{zone\}/instances/{numeric_instance_id\}

@@ -327,2 +331,3 @@ */

* // "appEngineInstance": "my_appEngineInstance",
* // "cloudRunResource": "my_cloudRunResource",
* // "computeInstance": "my_computeInstance",

@@ -329,0 +334,0 @@ * // "serviceAccount": "my_serviceAccount",

@@ -124,2 +124,6 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* The agentic browsing category, containing all agentic browsing related audits.
*/
'agentic-browsing'?: Schema$LighthouseCategoryV5;
/**
* The best practices category, containing all best practices related audits.

@@ -308,2 +312,6 @@ */

/**
* Optional. How the category score should be displayed (e.g. as a fraction).
*/
categoryScoreDisplayMode?: string | null;
/**
* A more detailed description of the category and its importance.

@@ -310,0 +318,0 @@ */

@@ -59,5 +59,7 @@ "use strict";

parameters;
templates;
constructor(context) {
this.context = context;
this.parameters = new Resource$Projects$Locations$Parameters(this.context);
this.templates = new Resource$Projects$Locations$Templates(this.context);
}

@@ -504,2 +506,376 @@ get(paramsOrCallback, optionsOrCallback, callback) {

parametermanager_v1.Resource$Projects$Locations$Parameters$Versions = Resource$Projects$Locations$Parameters$Versions;
class Resource$Projects$Locations$Templates {
context;
versions;
constructor(context) {
this.context = context;
this.versions = new Resource$Projects$Locations$Templates$Versions(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://parametermanager.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/templates').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://parametermanager.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://parametermanager.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://parametermanager.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/templates').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://parametermanager.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);
}
}
}
parametermanager_v1.Resource$Projects$Locations$Templates = Resource$Projects$Locations$Templates;
class Resource$Projects$Locations$Templates$Versions {
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://parametermanager.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/versions').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://parametermanager.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://parametermanager.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://parametermanager.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/versions').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://parametermanager.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);
}
}
render(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://parametermanager.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+name}:render').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);
}
}
}
parametermanager_v1.Resource$Projects$Locations$Templates$Versions = Resource$Projects$Locations$Templates$Versions;
})(parametermanager_v1 || (exports.parametermanager_v1 = parametermanager_v1 = {}));

@@ -83,4 +83,36 @@ "use strict";

}
troubleshootError(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://policytroubleshooter.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v3beta/iam:troubleshootError').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);
}
}
}
policytroubleshooter_v3beta.Resource$Iam = Resource$Iam;
})(policytroubleshooter_v3beta || (exports.policytroubleshooter_v3beta = policytroubleshooter_v3beta = {}));

@@ -87,3 +87,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Required. Expiration time of the entitlement. Entitlements that have expired over 30 days will be purged. The max expire_time is 398 days from now().
* Optional. Expiration time of the entitlement. If unset, the entitlement does not expire (indefinite entitlement). We need to support indefinite entitlements for platform publishers. dd: go/rrm-sl-notedotcom Entitlements that have expired over 30 days will be purged.
*/

@@ -90,0 +90,0 @@ expireTime?: string | null;

@@ -500,2 +500,34 @@ "use strict";

}
getPolicy(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://recaptchaenterprise.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) {

@@ -693,2 +725,34 @@ let params = (paramsOrCallback ||

}
updatePolicy(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://recaptchaenterprise.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);
}
}
}

@@ -695,0 +759,0 @@ recaptchaenterprise_v1.Resource$Projects$Keys = Resource$Projects$Keys;

/*! THIS FILE IS AUTO-GENERATED */
import { AuthPlus } from 'googleapis-common';
import { searchads360_v0 } from './v0';
import { searchads360_v23 } from './v23';
export declare const VERSIONS: {
v0: typeof searchads360_v0.Searchads360;
v23: typeof searchads360_v23.Searchads360;
};
export declare function searchads360(version: 'v0'): searchads360_v0.Searchads360;
export declare function searchads360(options: searchads360_v0.Options): searchads360_v0.Searchads360;
export declare function searchads360(version: 'v23'): searchads360_v23.Searchads360;
export declare function searchads360(options: searchads360_v23.Options): searchads360_v23.Searchads360;
declare const auth: AuthPlus;
export { auth };
export { searchads360_v0 };
export { searchads360_v23 };
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.searchads360_v0 = exports.auth = exports.VERSIONS = void 0;
exports.AuthPlus = exports.searchads360_v23 = exports.searchads360_v0 = exports.auth = exports.VERSIONS = void 0;
exports.searchads360 = searchads360;

@@ -22,4 +22,7 @@ /*! THIS FILE IS AUTO-GENERATED */

Object.defineProperty(exports, "searchads360_v0", { enumerable: true, get: function () { return v0_1.searchads360_v0; } });
const v23_1 = require("./v23");
Object.defineProperty(exports, "searchads360_v23", { enumerable: true, get: function () { return v23_1.searchads360_v23; } });
exports.VERSIONS = {
v0: v0_1.searchads360_v0.Searchads360,
v23: v23_1.searchads360_v23.Searchads360,
};

@@ -26,0 +29,0 @@ function searchads360(versionOrOptions) {

@@ -234,2 +234,35 @@ "use strict";

}
enableManagedRotation(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+parent}:enableManagedRotation').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) {

@@ -363,2 +396,34 @@ let params = (paramsOrCallback ||

}
rotateSecret(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+parent}:rotateSecret').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);
}
}
setIamPolicy(paramsOrCallback, optionsOrCallback, callback) {

@@ -737,2 +802,34 @@ let params = (paramsOrCallback ||

}
enableManagedRotation(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+parent}:enableManagedRotation').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) {

@@ -866,2 +963,34 @@ let params = (paramsOrCallback ||

}
rotateSecret(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+parent}:rotateSecret').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);
}
}
setIamPolicy(paramsOrCallback, optionsOrCallback, callback) {

@@ -868,0 +997,0 @@ let params = (paramsOrCallback ||

@@ -231,2 +231,6 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Identifies the client credential id used for authentication. credential_id is in the format of AUTH_METHOD:IDENTIFIER, e.g. "serviceaccount:XXXXX, apikey:XXXXX" where the format of the IDENTIFIER can vary for different AUTH_METHODs.
*/
credentialId?: string | null;
/**
* Attributes of the OAuth token associated with the request.

@@ -233,0 +237,0 @@ */

@@ -70,2 +70,4 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

context: APIRequestContext;
organizations: Resource$Organizations;
projects: Resource$Projects;
v1: Resource$V1;

@@ -215,2 +217,73 @@ constructor(options: GlobalOptions, google?: GoogleConfigurable);

/**
* A JSON web key set (JWK) See also https://datatracker.ietf.org/doc/html/rfc7517 and https://github.com/spiffe/spiffe/blob/main/standards/JWT-SVID.md#6-representation-in-the-spiffe-bundle
*/
export interface Schema$GoogleIdentityStsV1Jwk {
/**
* Algorithm intended for use with the key. Currently "RS256".
*/
alg?: string | null;
/**
* Exponent value for kty="RSA".
*/
e?: string | null;
/**
* Key ID.
*/
kid?: string | null;
/**
* Key type. Currently "RSA".
*/
kty?: string | null;
/**
* Modulus value for kty="RSA".
*/
n?: string | null;
/**
* Public key use. Currently "sig".
*/
use?: string | null;
}
/**
* Response message for GetJwks.
*/
export interface Schema$GoogleIdentityStsV1Jwks {
/**
* The JWKS for this OP.
*/
keys?: Schema$GoogleIdentityStsV1Jwk[];
}
/**
* Response message for GetOpenIdProviderConfig. Message fields are defined in https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfigurationResponse
*/
export interface Schema$GoogleIdentityStsV1OpenIdProviderConfig {
/**
* URL pointing to an authorization endpoint under this issuer. Note: Currently this endpoint returns a 404.
*/
authorization_endpoint?: string | null;
/**
* JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for the ID token to encode the claims in a JWT [JWT]. Note: Currently always "["RS256"]".
*/
id_token_signing_alg_values_supported?: string[] | null;
/**
* URL using the https scheme with no query or fragment components that the OP asserts as its issuer identifier.
*/
issuer?: string | null;
/**
* URL of the OP's JWK Set [JWK] document, which MUST use the https scheme.
*/
jwks_uri?: string | null;
/**
* JSON array containing a list of the OAuth 2.0 response_type values that this OP supports. Note: Currently always "["id_token"]".
*/
response_types_supported?: string[] | null;
/**
* JSON array containing a list of the subject identifier types that this OP supports. Note: Currently always "["public"]".
*/
subject_types_supported?: string[] | null;
/**
* URL pointing to a token endpoint under this issuer. Note: Currently this endpoint returns a 404.
*/
token_endpoint?: string | null;
}
/**
* An `Options` object configures features that the Security Token Service supports, but that are not supported by standard OAuth 2.0 token exchange endpoints, as defined in https://tools.ietf.org/html/rfc8693.

@@ -253,2 +326,335 @@ */

}
export class Resource$Organizations {
context: APIRequestContext;
locations: Resource$Organizations$Locations;
constructor(context: APIRequestContext);
}
export class Resource$Organizations$Locations {
context: APIRequestContext;
workloadIdentityPools: Resource$Organizations$Locations$Workloadidentitypools;
constructor(context: APIRequestContext);
}
export class Resource$Organizations$Locations$Workloadidentitypools {
context: APIRequestContext;
openid: Resource$Organizations$Locations$Workloadidentitypools$Openid;
wellKnown: Resource$Organizations$Locations$Workloadidentitypools$WellKnown;
constructor(context: APIRequestContext);
}
export class Resource$Organizations$Locations$Workloadidentitypools$Openid {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* Fetches the signing keys for an agentic or managed workload identity pool and returns them in JWKs format, defined in [RFC 7517](https://tools.ietf.org/html/rfc7517). For now, only agentic system pools are supported. **Preview** This feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the [Service Specific Terms](https://cloud.google.com/terms/service-terms#1). Pre-GA features are available "as is" and might have limited support. For more information, see the [launch stage descriptions](https://cloud.google.com/products#product-launch-stages).
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/sts.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 sts = google.sts('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: [],
* });
*
* // 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 sts.organizations.locations.workloadIdentityPools.openid.getJwks({
* // Required. The name of the pool whose JWKS needs to be retrieved. Format: 'organizations/{ORGANIZATION_NUMBER\}/locations/global/workloadIdentityPools/{POOL_ID\}' 'projects/{PROJECT_NUMBER\}/locations/global/workloadIdentityPools/{POOL_ID\}' Example(s): 'organizations/1234/locations/global/workloadIdentityPools/agents.global.org-1234.system.id.goog' 'projects/12345678/locations/global/workloadIdentityPools/agents.global.proj-12345678.system.id.goog'
* name: 'organizations/my-organization/locations/my-location/workloadIdentityPools/my-workloadIdentityPool',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "keys": []
* // }
* }
*
* 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.
*/
getJwks(params: Params$Resource$Organizations$Locations$Workloadidentitypools$Openid$Getjwks, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
getJwks(params?: Params$Resource$Organizations$Locations$Workloadidentitypools$Openid$Getjwks, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIdentityStsV1Jwks>>;
getJwks(params: Params$Resource$Organizations$Locations$Workloadidentitypools$Openid$Getjwks, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
getJwks(params: Params$Resource$Organizations$Locations$Workloadidentitypools$Openid$Getjwks, options: MethodOptions | BodyResponseCallback<Schema$GoogleIdentityStsV1Jwks>, callback: BodyResponseCallback<Schema$GoogleIdentityStsV1Jwks>): void;
getJwks(params: Params$Resource$Organizations$Locations$Workloadidentitypools$Openid$Getjwks, callback: BodyResponseCallback<Schema$GoogleIdentityStsV1Jwks>): void;
getJwks(callback: BodyResponseCallback<Schema$GoogleIdentityStsV1Jwks>): void;
}
export interface Params$Resource$Organizations$Locations$Workloadidentitypools$Openid$Getjwks extends StandardParameters {
/**
* Required. The name of the pool whose JWKS needs to be retrieved. Format: 'organizations/{ORGANIZATION_NUMBER\}/locations/global/workloadIdentityPools/{POOL_ID\}' 'projects/{PROJECT_NUMBER\}/locations/global/workloadIdentityPools/{POOL_ID\}' Example(s): 'organizations/1234/locations/global/workloadIdentityPools/agents.global.org-1234.system.id.goog' 'projects/12345678/locations/global/workloadIdentityPools/agents.global.proj-12345678.system.id.goog'
*/
name?: string;
}
export class Resource$Organizations$Locations$Workloadidentitypools$WellKnown {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* Gets the OIDC provider configuration for an agentic or managed workload identity pool following [the OIDC 1.0 discovery specification](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfigurationResponse). For now, only agentic system pools are supported. **Preview** This feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the [Service Specific Terms](https://cloud.google.com/terms/service-terms#1). Pre-GA features are available "as is" and might have limited support. For more information, see the [launch stage descriptions](https://cloud.google.com/products#product-launch-stages).
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/sts.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 sts = google.sts('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: [],
* });
*
* // 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 sts.organizations.locations.workloadIdentityPools.well) -
* known.getOpenid -
* configuration({
* // Required. The name of the pool whose OpenID provider configuration to retrieve. Format: 'organizations/{ORGANIZATION_NUMBER\}/locations/global/workloadIdentityPools/{POOL_ID\}' 'projects/{PROJECT_NUMBER\}/locations/global/workloadIdentityPools/{POOL_ID\}' Example: 'organizations/1234/locations/global/workloadIdentityPools/agents.global.org-1234.system.id.goog' 'projects/12345678/locations/global/workloadIdentityPools/agents.global.proj-12345678.system.id.goog'
* name: 'organizations/my-organization/locations/my-location/workloadIdentityPools/my-workloadIdentityPool',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "authorization_endpoint": "my_authorization_endpoint",
* // "id_token_signing_alg_values_supported": [],
* // "issuer": "my_issuer",
* // "jwks_uri": "my_jwks_uri",
* // "response_types_supported": [],
* // "subject_types_supported": [],
* // "token_endpoint": "my_token_endpoint"
* // }
* }
*
* 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.
*/
getOpenidConfiguration(params: Params$Resource$Organizations$Locations$Workloadidentitypools$WellKnown$Getopenidconfiguration, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
getOpenidConfiguration(params?: Params$Resource$Organizations$Locations$Workloadidentitypools$WellKnown$Getopenidconfiguration, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIdentityStsV1OpenIdProviderConfig>>;
getOpenidConfiguration(params: Params$Resource$Organizations$Locations$Workloadidentitypools$WellKnown$Getopenidconfiguration, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
getOpenidConfiguration(params: Params$Resource$Organizations$Locations$Workloadidentitypools$WellKnown$Getopenidconfiguration, options: MethodOptions | BodyResponseCallback<Schema$GoogleIdentityStsV1OpenIdProviderConfig>, callback: BodyResponseCallback<Schema$GoogleIdentityStsV1OpenIdProviderConfig>): void;
getOpenidConfiguration(params: Params$Resource$Organizations$Locations$Workloadidentitypools$WellKnown$Getopenidconfiguration, callback: BodyResponseCallback<Schema$GoogleIdentityStsV1OpenIdProviderConfig>): void;
getOpenidConfiguration(callback: BodyResponseCallback<Schema$GoogleIdentityStsV1OpenIdProviderConfig>): void;
}
export interface Params$Resource$Organizations$Locations$Workloadidentitypools$WellKnown$Getopenidconfiguration extends StandardParameters {
/**
* Required. The name of the pool whose OpenID provider configuration to retrieve. Format: 'organizations/{ORGANIZATION_NUMBER\}/locations/global/workloadIdentityPools/{POOL_ID\}' 'projects/{PROJECT_NUMBER\}/locations/global/workloadIdentityPools/{POOL_ID\}' Example: 'organizations/1234/locations/global/workloadIdentityPools/agents.global.org-1234.system.id.goog' 'projects/12345678/locations/global/workloadIdentityPools/agents.global.proj-12345678.system.id.goog'
*/
name?: string;
}
export class Resource$Projects {
context: APIRequestContext;
locations: Resource$Projects$Locations;
constructor(context: APIRequestContext);
}
export class Resource$Projects$Locations {
context: APIRequestContext;
workloadIdentityPools: Resource$Projects$Locations$Workloadidentitypools;
constructor(context: APIRequestContext);
}
export class Resource$Projects$Locations$Workloadidentitypools {
context: APIRequestContext;
openid: Resource$Projects$Locations$Workloadidentitypools$Openid;
wellKnown: Resource$Projects$Locations$Workloadidentitypools$WellKnown;
constructor(context: APIRequestContext);
}
export class Resource$Projects$Locations$Workloadidentitypools$Openid {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* Fetches the signing keys for an agentic or managed workload identity pool and returns them in JWKs format, defined in [RFC 7517](https://tools.ietf.org/html/rfc7517). For now, only agentic system pools are supported. **Preview** This feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the [Service Specific Terms](https://cloud.google.com/terms/service-terms#1). Pre-GA features are available "as is" and might have limited support. For more information, see the [launch stage descriptions](https://cloud.google.com/products#product-launch-stages).
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/sts.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 sts = google.sts('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: [],
* });
*
* // 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 sts.projects.locations.workloadIdentityPools.openid.getJwks(
* {
* // Required. The name of the pool whose JWKS needs to be retrieved. Format: 'organizations/{ORGANIZATION_NUMBER\}/locations/global/workloadIdentityPools/{POOL_ID\}' 'projects/{PROJECT_NUMBER\}/locations/global/workloadIdentityPools/{POOL_ID\}' Example(s): 'organizations/1234/locations/global/workloadIdentityPools/agents.global.org-1234.system.id.goog' 'projects/12345678/locations/global/workloadIdentityPools/agents.global.proj-12345678.system.id.goog'
* name: 'projects/my-project/locations/my-location/workloadIdentityPools/my-workloadIdentityPool',
* },
* );
* console.log(res.data);
*
* // Example response
* // {
* // "keys": []
* // }
* }
*
* 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.
*/
getJwks(params: Params$Resource$Projects$Locations$Workloadidentitypools$Openid$Getjwks, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
getJwks(params?: Params$Resource$Projects$Locations$Workloadidentitypools$Openid$Getjwks, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIdentityStsV1Jwks>>;
getJwks(params: Params$Resource$Projects$Locations$Workloadidentitypools$Openid$Getjwks, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
getJwks(params: Params$Resource$Projects$Locations$Workloadidentitypools$Openid$Getjwks, options: MethodOptions | BodyResponseCallback<Schema$GoogleIdentityStsV1Jwks>, callback: BodyResponseCallback<Schema$GoogleIdentityStsV1Jwks>): void;
getJwks(params: Params$Resource$Projects$Locations$Workloadidentitypools$Openid$Getjwks, callback: BodyResponseCallback<Schema$GoogleIdentityStsV1Jwks>): void;
getJwks(callback: BodyResponseCallback<Schema$GoogleIdentityStsV1Jwks>): void;
}
export interface Params$Resource$Projects$Locations$Workloadidentitypools$Openid$Getjwks extends StandardParameters {
/**
* Required. The name of the pool whose JWKS needs to be retrieved. Format: 'organizations/{ORGANIZATION_NUMBER\}/locations/global/workloadIdentityPools/{POOL_ID\}' 'projects/{PROJECT_NUMBER\}/locations/global/workloadIdentityPools/{POOL_ID\}' Example(s): 'organizations/1234/locations/global/workloadIdentityPools/agents.global.org-1234.system.id.goog' 'projects/12345678/locations/global/workloadIdentityPools/agents.global.proj-12345678.system.id.goog'
*/
name?: string;
}
export class Resource$Projects$Locations$Workloadidentitypools$WellKnown {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* Gets the OIDC provider configuration for an agentic or managed workload identity pool following [the OIDC 1.0 discovery specification](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfigurationResponse). For now, only agentic system pools are supported. **Preview** This feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the [Service Specific Terms](https://cloud.google.com/terms/service-terms#1). Pre-GA features are available "as is" and might have limited support. For more information, see the [launch stage descriptions](https://cloud.google.com/products#product-launch-stages).
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/sts.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 sts = google.sts('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: [],
* });
*
* // 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 sts.projects.locations.workloadIdentityPools.well) -
* known.getOpenid -
* configuration({
* // Required. The name of the pool whose OpenID provider configuration to retrieve. Format: 'organizations/{ORGANIZATION_NUMBER\}/locations/global/workloadIdentityPools/{POOL_ID\}' 'projects/{PROJECT_NUMBER\}/locations/global/workloadIdentityPools/{POOL_ID\}' Example: 'organizations/1234/locations/global/workloadIdentityPools/agents.global.org-1234.system.id.goog' 'projects/12345678/locations/global/workloadIdentityPools/agents.global.proj-12345678.system.id.goog'
* name: 'projects/my-project/locations/my-location/workloadIdentityPools/my-workloadIdentityPool',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "authorization_endpoint": "my_authorization_endpoint",
* // "id_token_signing_alg_values_supported": [],
* // "issuer": "my_issuer",
* // "jwks_uri": "my_jwks_uri",
* // "response_types_supported": [],
* // "subject_types_supported": [],
* // "token_endpoint": "my_token_endpoint"
* // }
* }
*
* 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.
*/
getOpenidConfiguration(params: Params$Resource$Projects$Locations$Workloadidentitypools$WellKnown$Getopenidconfiguration, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
getOpenidConfiguration(params?: Params$Resource$Projects$Locations$Workloadidentitypools$WellKnown$Getopenidconfiguration, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIdentityStsV1OpenIdProviderConfig>>;
getOpenidConfiguration(params: Params$Resource$Projects$Locations$Workloadidentitypools$WellKnown$Getopenidconfiguration, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
getOpenidConfiguration(params: Params$Resource$Projects$Locations$Workloadidentitypools$WellKnown$Getopenidconfiguration, options: MethodOptions | BodyResponseCallback<Schema$GoogleIdentityStsV1OpenIdProviderConfig>, callback: BodyResponseCallback<Schema$GoogleIdentityStsV1OpenIdProviderConfig>): void;
getOpenidConfiguration(params: Params$Resource$Projects$Locations$Workloadidentitypools$WellKnown$Getopenidconfiguration, callback: BodyResponseCallback<Schema$GoogleIdentityStsV1OpenIdProviderConfig>): void;
getOpenidConfiguration(callback: BodyResponseCallback<Schema$GoogleIdentityStsV1OpenIdProviderConfig>): void;
}
export interface Params$Resource$Projects$Locations$Workloadidentitypools$WellKnown$Getopenidconfiguration extends StandardParameters {
/**
* Required. The name of the pool whose OpenID provider configuration to retrieve. Format: 'organizations/{ORGANIZATION_NUMBER\}/locations/global/workloadIdentityPools/{POOL_ID\}' 'projects/{PROJECT_NUMBER\}/locations/global/workloadIdentityPools/{POOL_ID\}' Example: 'organizations/1234/locations/global/workloadIdentityPools/agents.global.org-1234.system.id.goog' 'projects/12345678/locations/global/workloadIdentityPools/agents.global.proj-12345678.system.id.goog'
*/
name?: string;
}
export class Resource$V1 {

@@ -255,0 +661,0 @@ context: APIRequestContext;

@@ -37,2 +37,4 @@ "use strict";

context;
organizations;
projects;
v1;

@@ -44,2 +46,4 @@ constructor(options, google) {

};
this.organizations = new Resource$Organizations(this.context);
this.projects = new Resource$Projects(this.context);
this.v1 = new Resource$V1(this.context);

@@ -49,2 +53,226 @@ }

sts_v1.Sts = Sts;
class Resource$Organizations {
context;
locations;
constructor(context) {
this.context = context;
this.locations = new Resource$Organizations$Locations(this.context);
}
}
sts_v1.Resource$Organizations = Resource$Organizations;
class Resource$Organizations$Locations {
context;
workloadIdentityPools;
constructor(context) {
this.context = context;
this.workloadIdentityPools =
new Resource$Organizations$Locations$Workloadidentitypools(this.context);
}
}
sts_v1.Resource$Organizations$Locations = Resource$Organizations$Locations;
class Resource$Organizations$Locations$Workloadidentitypools {
context;
openid;
wellKnown;
constructor(context) {
this.context = context;
this.openid =
new Resource$Organizations$Locations$Workloadidentitypools$Openid(this.context);
this.wellKnown =
new Resource$Organizations$Locations$Workloadidentitypools$WellKnown(this.context);
}
}
sts_v1.Resource$Organizations$Locations$Workloadidentitypools = Resource$Organizations$Locations$Workloadidentitypools;
class Resource$Organizations$Locations$Workloadidentitypools$Openid {
context;
constructor(context) {
this.context = context;
}
getJwks(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://sts.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+name}/openid/jwks').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);
}
}
}
sts_v1.Resource$Organizations$Locations$Workloadidentitypools$Openid = Resource$Organizations$Locations$Workloadidentitypools$Openid;
class Resource$Organizations$Locations$Workloadidentitypools$WellKnown {
context;
constructor(context) {
this.context = context;
}
getOpenidConfiguration(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://sts.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+name}/.well-known/openid-configuration').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);
}
}
}
sts_v1.Resource$Organizations$Locations$Workloadidentitypools$WellKnown = Resource$Organizations$Locations$Workloadidentitypools$WellKnown;
class Resource$Projects {
context;
locations;
constructor(context) {
this.context = context;
this.locations = new Resource$Projects$Locations(this.context);
}
}
sts_v1.Resource$Projects = Resource$Projects;
class Resource$Projects$Locations {
context;
workloadIdentityPools;
constructor(context) {
this.context = context;
this.workloadIdentityPools =
new Resource$Projects$Locations$Workloadidentitypools(this.context);
}
}
sts_v1.Resource$Projects$Locations = Resource$Projects$Locations;
class Resource$Projects$Locations$Workloadidentitypools {
context;
openid;
wellKnown;
constructor(context) {
this.context = context;
this.openid =
new Resource$Projects$Locations$Workloadidentitypools$Openid(this.context);
this.wellKnown =
new Resource$Projects$Locations$Workloadidentitypools$WellKnown(this.context);
}
}
sts_v1.Resource$Projects$Locations$Workloadidentitypools = Resource$Projects$Locations$Workloadidentitypools;
class Resource$Projects$Locations$Workloadidentitypools$Openid {
context;
constructor(context) {
this.context = context;
}
getJwks(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://sts.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+name}/openid/jwks').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);
}
}
}
sts_v1.Resource$Projects$Locations$Workloadidentitypools$Openid = Resource$Projects$Locations$Workloadidentitypools$Openid;
class Resource$Projects$Locations$Workloadidentitypools$WellKnown {
context;
constructor(context) {
this.context = context;
}
getOpenidConfiguration(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://sts.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+name}/.well-known/openid-configuration').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);
}
}
}
sts_v1.Resource$Projects$Locations$Workloadidentitypools$WellKnown = Resource$Projects$Locations$Workloadidentitypools$WellKnown;
class Resource$V1 {

@@ -51,0 +279,0 @@ context;

@@ -291,2 +291,34 @@ "use strict";

}
getPassword(paramsOrCallback, optionsOrCallback, callback) {
let params = (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}:getPassword').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) {

@@ -293,0 +325,0 @@ let params = (paramsOrCallback ||

@@ -74,2 +74,24 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

/**
* Input definition for the ComputeDetailedFlightEmissions request.
*/
export interface Schema$ComputeDetailedFlightEmissionsRequest {
/**
* Required. Direct flights to return emission estimates for.
*/
flights?: Schema$Flight[];
}
/**
* Output definition for the ComputeDetailedFlightEmissions response.
*/
export interface Schema$ComputeDetailedFlightEmissionsResponse {
/**
* List of flight legs with emission estimates.
*/
flightsWithDetailedEmissions?: Schema$FlightWithDetailedEmissions[];
/**
* The model version under which emission estimates for all flights in this response were computed.
*/
modelVersion?: Schema$ModelVersion;
}
/**
* Input definition for the ComputeFlightEmissions request.

@@ -183,2 +205,15 @@ */

/**
* Details about the various emissions portions of the total emissions_grams_per_pax value. The value of the summed breakdowns should always equal emissions_grams_per_pax.
*/
export interface Schema$EmissionsBreakdown {
/**
* Per-passenger tank-to-wake emission estimate numbers. Will not be present if emissions could not be computed. For the list of reasons why emissions could not be computed, see ComputeFlightEmissions.
*/
ttwEmissionsGramsPerPax?: Schema$EmissionsGramsPerPax;
/**
* Per-passenger well-to-tank emission estimate numbers. Will not be present if emissions could not be computed. For the list of reasons why emissions could not be computed, see ComputeFlightEmissions.
*/
wttEmissionsGramsPerPax?: Schema$EmissionsGramsPerPax;
}
/**
* Grouped emissions per seating class results.

@@ -205,2 +240,85 @@ */

/**
* All additional metadata.
*/
export interface Schema$EmissionsMetadata {
/**
* Output only. Metadata about the EASA Flight Emissions Label. Only set when the emissions data source is EASA.
*/
easaLabelMetadata?: Schema$EasaLabelMetadata;
/**
* Output only. Details about the provenance of data used to calculate the emissions data, including the contributing factors with their data sources.
*/
emissionsProvenance?: Schema$EmissionsProvenance;
/**
* Output only. Link to the `travelimpactmodel.org` Emissions Calculator website. Example: https://travelimpactmodel.org/lookup/flight?itinerary=ZRH-BOS-LX-52-20261225.
*/
timWebsiteEmissionsCalculatorUrl?: string | null;
}
/**
* Information about the provenance of the data used to calculate emissions estimates, including contributing factors and their data sources.
*/
export interface Schema$EmissionsProvenance {
/**
* Output only. All contributing factors used to calculate emissions.
*/
provenanceEntries?: Schema$EmissionsProvenanceEntry[];
}
/**
* Details about a single contributing factor in emissions calculations.
*/
export interface Schema$EmissionsProvenanceEntry {
/**
* Output only. The cargo mass fraction value. If not set, the cargo mass fraction value is not available.
*/
cargoMassFractionData?: number | null;
/**
* Output only. Strategy for T100 cargo mass fraction.
*/
cargoMassFractionT100Strategy?: string | null;
/**
* Output only. Data category of the data source.
*/
dataCategory?: string | null;
/**
* Output only. Strategy for distance adjustment.
*/
distanceAdjustmentStrategy?: string | null;
/**
* Output only. The estimated distance flown in CCD flight phase in kilometers value calculated using the distance adjustment factor (DAF). If not set, the estimated flight distance value is not available.
*/
estimatedFlightDistanceKm?: number | null;
/**
* Output only. Strategy for EEA fuel burn.
*/
fuelBurnEeaStrategy?: string | null;
/**
* Output only. Strategy for CH Aviation load factors.
*/
loadFactorsChAviationStrategy?: string | null;
/**
* Output only. The load factors data value. If not set, the load factors value is not available.
*/
loadFactorsData?: number | null;
/**
* Output only. Strategy for T100 load factors.
*/
loadFactorsT100Strategy?: string | null;
/**
* Output only. The type of the provenance entry.
*/
provenanceEntryType?: string | null;
/**
* Output only. Strategy for IATA seat area ratios.
*/
seatAreaRatioIataStrategy?: string | null;
/**
* Output only. The source of the data.
*/
source?: string | null;
/**
* Output only. The version of the source data. For example, "2025/04".
*/
sourceVersion?: string | null;
}
/**
* All details related to a single request item for a direct flight emission estimates.

@@ -231,2 +349,40 @@ */

/**
* Details about the specific flight's emissions.
*/
export interface Schema$FlightEmissionsDetails {
/**
* Output only. The significance of contrails warming impact compared to the total CO2e emissions impact.
*/
contrailsImpactBucket?: string | null;
/**
* Output only. Details about the various emissions portions of the total emissions_grams_per_pax value. The value of the summed breakdowns should always equal emissions_grams_per_pax.
*/
emissionsBreakdown?: Schema$EmissionsBreakdown;
/**
* Output only. Per-passenger emission estimate numbers. Will not be present if emissions could not be computed. For the list of reasons why emissions could not be computed, see ComputeDetailedFlightEmissions
*/
emissionsGramsPerPax?: Schema$EmissionsGramsPerPax;
/**
* Output only. The source of the emissions data.
*/
source?: string | null;
}
/**
* Direct flight with emission estimates details.
*/
export interface Schema$FlightWithDetailedEmissions {
/**
* Output only. Additional metadata about the flight emissions calculation.
*/
emissionsMetadata?: Schema$EmissionsMetadata;
/**
* Output only. Matches the flight identifiers in the request. Note: all IATA codes are capitalized.
*/
flight?: Schema$Flight;
/**
* Output only. All the flight emissions data.
*/
flightEmissionsDetails?: Schema$FlightEmissionsDetails;
}
/**
* Direct flight with emission estimates.

@@ -365,3 +521,3 @@ */

/**
* Stateless method to retrieve emission estimates. Details on how emission estimates are computed are in [GitHub](https://github.com/google/travel-impact-model). The response will contain all entries that match the input flight legs, in the same order. If there are no estimates available for a certain flight leg, the response will return the flight leg object with empty emission fields. The request will still be considered successful. Reasons for missing emission estimates include: * The flight is unknown to the server. * The input flight leg is missing one or more identifiers. * The flight date is in the past. * The aircraft type is not supported by the model. * Missing seat configuration. The request can contain up to 1000 flight legs. If the request has more than 1000 direct flights, if will fail with an INVALID_ARGUMENT error.
* Retrieves detailed emission estimates. Detailed Flight Emissions are transparent per-passenger greenhouse gas emission estimates supplemented by comprehensive metadata detailing the calculation methodology, emissions breakdown, contrail impact, and data provenance. Details on how emission estimates are computed are in [GitHub](https://github.com/google/travel-impact-model). The response will contain all entries that match the input flight legs, in the same order. If there are no estimates available for a certain flight leg, the response will return the flight leg object with empty emission fields. The request will still be considered successful. Reasons for missing emission estimates include: * The flight is unknown to the server. * The input flight leg is missing one or more identifiers. * The flight date is in the past. * The aircraft type is not supported by the model. * Missing seat configuration. The request can contain up to 100 flight legs. If the request has more than 100 flight legs, it will fail with an INVALID_ARGUMENT error.
* @example

@@ -395,2 +551,68 @@ * ```js

* // Do the magic
* const res = await travelimpactmodel.flights.computeDetailedFlightEmissions({
* // Request body metadata
* requestBody: {
* // request body parameters
* // {
* // "flights": []
* // }
* },
* });
* console.log(res.data);
*
* // Example response
* // {
* // "flightsWithDetailedEmissions": [],
* // "modelVersion": {}
* // }
* }
*
* 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.
*/
computeDetailedFlightEmissions(params: Params$Resource$Flights$Computedetailedflightemissions, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
computeDetailedFlightEmissions(params?: Params$Resource$Flights$Computedetailedflightemissions, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ComputeDetailedFlightEmissionsResponse>>;
computeDetailedFlightEmissions(params: Params$Resource$Flights$Computedetailedflightemissions, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
computeDetailedFlightEmissions(params: Params$Resource$Flights$Computedetailedflightemissions, options: MethodOptions | BodyResponseCallback<Schema$ComputeDetailedFlightEmissionsResponse>, callback: BodyResponseCallback<Schema$ComputeDetailedFlightEmissionsResponse>): void;
computeDetailedFlightEmissions(params: Params$Resource$Flights$Computedetailedflightemissions, callback: BodyResponseCallback<Schema$ComputeDetailedFlightEmissionsResponse>): void;
computeDetailedFlightEmissions(callback: BodyResponseCallback<Schema$ComputeDetailedFlightEmissionsResponse>): void;
/**
* Retrieves emission estimates. Details on how emission estimates are computed are in [GitHub](https://github.com/google/travel-impact-model). The response will contain all entries that match the input flight legs, in the same order. If there are no estimates available for a certain flight leg, the response will return the flight leg object with empty emission fields. The request will still be considered successful. Reasons for missing emission estimates include: * The flight is unknown to the server. * The input flight leg is missing one or more identifiers. * The flight date is in the past. * The aircraft type is not supported by the model. * Missing seat configuration. The request can contain up to 1000 flight legs. If the request has more than 1000 direct flights, if will fail with an INVALID_ARGUMENT error.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/travelimpactmodel.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 travelimpactmodel = google.travelimpactmodel('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: [],
* });
*
* // 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 travelimpactmodel.flights.computeFlightEmissions({

@@ -433,3 +655,3 @@ * // Request body metadata

/**
* Stateless method to retrieve GHG emissions estimates for a set of flight segments for Scope 3 reporting. The response will contain all entries that match the input Scope3FlightSegment flight segments, in the same order provided. The estimates will be computed using the following cascading logic (using the first one that is available): 1. TIM-based emissions given origin, destination, carrier, flightNumber, departureDate, and cabinClass. 2. Typical flight emissions given origin, destination, year in departureDate, and cabinClass. 3. Distance-based emissions calculated using distanceKm, year in departureDate, and cabinClass. If there is a future flight requested in this calendar year, we do not support Tier 1 emissions and will fallback to Tier 2 or 3 emissions. If the requested future flight is in not in this calendar year, we will return an empty response. We recommend that for future flights, computeFlightEmissions API is used instead. If there are no estimates available for a certain flight with any of the three methods, the response will return a Scope3FlightEmissions object with empty emission fields. The request will still be considered successful. Generally, missing emissions estimates occur when the flight is unknown to the server (e.g. no specific flight exists, or typical flight emissions are not available for the requested pair). The request will fail with an `INVALID_ARGUMENT` error if: * The request contains more than 1,000 flight legs. * The input flight leg is missing one or more identifiers. For example, missing origin/destination without a valid distance for TIM_EMISSIONS or TYPICAL_FLIGHT_EMISSIONS type matching, or missing distance for a DISTANCE_BASED_EMISSIONS type matching (if you want to fallback to distance-based emissions or want a distance-based emissions estimate, you need to specify a distance). * The flight date is before 2019 (Scope 3 data is only available for 2019 and after). * The flight distance is 0 or lower. * Missing cabin class. Because the request is processed with fallback logic, it is possible that misconfigured requests return valid emissions estimates using fallback methods. For example, if a request has the wrong flight number but specifies the origin and destination, the request will still succeed, but the returned emissions will be based solely on the typical flight emissions. Similarly, if a request is missing the origin for a typical flight emissions request, but specifies a valid distance, the request could succeed based solely on the distance-based emissions. Consequently, one should check the source of the returned emissions (source) to confirm the results are as expected.
* Retrieves GHG emissions estimates for a set of flight segments for Scope 3 reporting. The response will contain all entries that match the input Scope3FlightSegment flight segments, in the same order provided. The estimates will be computed using the following cascading logic (using the first one that is available): 1. TIM-based emissions given origin, destination, carrier, flightNumber, departureDate, and cabinClass. 2. Typical flight emissions given origin, destination, year in departureDate, and cabinClass. 3. Distance-based emissions calculated using distanceKm, year in departureDate, and cabinClass. If there is a future flight requested in this calendar year, we do not support Tier 1 emissions and will fallback to Tier 2 or 3 emissions. If the requested future flight is in not in this calendar year, we will return an empty response. We recommend that for future flights, computeFlightEmissions API is used instead. If there are no estimates available for a certain flight with any of the three methods, the response will return a Scope3FlightEmissions object with empty emission fields. The request will still be considered successful. Generally, missing emissions estimates occur when the flight is unknown to the server (e.g. no specific flight exists, or typical flight emissions are not available for the requested pair). The request will fail with an `INVALID_ARGUMENT` error if: * The request contains more than 1,000 flight legs. * The input flight leg is missing one or more identifiers. For example, missing origin/destination without a valid distance for TIM_EMISSIONS or TYPICAL_FLIGHT_EMISSIONS type matching, or missing distance for a DISTANCE_BASED_EMISSIONS type matching (if you want to fallback to distance-based emissions or want a distance-based emissions estimate, you need to specify a distance). * The flight date is before 2019 (Scope 3 data is only available for 2019 and after). * The flight distance is 0 or lower. * Missing cabin class. Because the request is processed with fallback logic, it is possible that misconfigured requests return valid emissions estimates using fallback methods. For example, if a request has the wrong flight number but specifies the origin and destination, the request will still succeed, but the returned emissions will be based solely on the typical flight emissions. Similarly, if a request is missing the origin for a typical flight emissions request, but specifies a valid distance, the request could succeed based solely on the distance-based emissions. Consequently, one should check the source of the returned emissions (source) to confirm the results are as expected.
* @example

@@ -567,2 +789,8 @@ * ```js

}
export interface Params$Resource$Flights$Computedetailedflightemissions extends StandardParameters {
/**
* Request body metadata
*/
requestBody?: Schema$ComputeDetailedFlightEmissionsRequest;
}
export interface Params$Resource$Flights$Computeflightemissions extends StandardParameters {

@@ -569,0 +797,0 @@ /**

@@ -52,2 +52,34 @@ "use strict";

}
computeDetailedFlightEmissions(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://travelimpactmodel.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/flights:computeDetailedFlightEmissions').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);
}
}
computeFlightEmissions(paramsOrCallback, optionsOrCallback, callback) {

@@ -54,0 +86,0 @@ let params = (paramsOrCallback ||

@@ -70,2 +70,3 @@ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';

context: APIRequestContext;
organizations: Resource$Organizations;
publications: Resource$Publications;

@@ -79,6 +80,900 @@ constructor(options: GlobalOptions, google?: GoogleConfigurable);

/**
* True if free access should be allowed, false otherwise.
* Output only. True if free access should be allowed, false otherwise.
*/
isAllowed?: boolean | null;
}
/**
* The content policy status of the publication, indicating any violations.
*/
export interface Schema$ContentPolicyStatus {
/**
* Output only. URL pointing to more details about the policy violation or status.
*/
policyInfoUrl?: string | null;
/**
* Output only. The current policy state.
*/
state?: string | null;
}
/**
* Represents a Call-To-Action (CTA) configuration for a publication.
*/
export interface Schema$Cta {
/**
* Required. The user-visible display name of the CTA.
*/
displayName?: string | null;
/**
* Identifier. The resource name of the Cta. Format: organizations/{organization\}/publications/{publication\}/ctas/{cta\}
*/
name?: string | null;
/**
* Optional. Configuration specific to newsletter signup CTAs. Only populated if type is `NEWSLETTER_SIGNUP`.
*/
newsletterConfig?: Schema$NewsletterConfig;
/**
* Output only. The current state of this CTA.
*/
state?: string | null;
/**
* Required. The type of this CTA.
*/
type?: string | null;
}
/**
* Represents a domain property associated with a publication, typically used to verify ownership and scope access.
*/
export interface Schema$DomainProperty {
/**
* Optional. Whether the domain ownership has been verified (e.g., via Google Search Console).
*/
ownershipVerified?: boolean | null;
/**
* Required. The URL of the domain property (e.g., "https://example.com").
*/
url?: string | null;
}
/**
* Response message for `ListCtas`.
*/
export interface Schema$ListCtasResponse {
/**
* Output only. The list of CTAs.
*/
ctas?: Schema$Cta[];
/**
* Output only. A token to retrieve the next page of results, or empty if there are no more results.
*/
nextPageToken?: string | null;
}
/**
* Response message for `ListPublications`.
*/
export interface Schema$ListPublicationsResponse {
/**
* Output only. A token to retrieve the next page of results, or empty if there are no more results.
*/
nextPageToken?: string | null;
/**
* Output only. The list of publications.
*/
publications?: Schema$Publication[];
}
/**
* Configuration for newsletter signup calls-to-action (CTAs).
*/
export interface Schema$NewsletterConfig {
/**
* Optional. Custom consent or disclosure text shown to the user.
*/
customConsentText?: string | null;
/**
* Optional. A custom message displayed to the user in the signup prompt.
*/
customMessage?: string | null;
/**
* Optional. Whether the user is required to provide their name to sign up.
*/
nameRequired?: boolean | null;
/**
* Required. The title of the newsletter signup prompt.
*/
title?: string | null;
}
/**
* Represents a publisher's publication in Reader Revenue Manager.
*/
export interface Schema$Publication {
/**
* Optional. Additional domain properties verified for the publication.
*/
additionalDomains?: Schema$DomainProperty[];
/**
* Output only. The content policy compliance status of the publication.
*/
contentPolicyStatus?: Schema$ContentPolicyStatus;
/**
* Required. The user-visible display name of the publication.
*/
displayName?: string | null;
/**
* Required. The primary language of the publication (BCP-47 code, e.g., "en-US").
*/
languageCode?: string | null;
/**
* Identifier. The resource name of the publication. Format: organizations/{organization\}/publications/{publication\}
*/
name?: string | null;
/**
* Output only. The current onboarding state.
*/
onboardingState?: string | null;
/**
* Output only. The unique identifier of the organization that owns this publication.
*/
organizationId?: string | null;
/**
* Output only. The configured payment option.
*/
paymentOption?: string | null;
/**
* Required. The primary domain property associated with the publication.
*/
primaryDomain?: Schema$DomainProperty;
/**
* Output only. The list of active products/features enabled for this publication.
*/
products?: string[] | null;
/**
* Output only. The unique identifier of the publication.
*/
publicationId?: string | null;
/**
* Optional. The URL to the publisher's Privacy Policy.
*/
publicationPrivacyPolicyUrl?: string | null;
/**
* Optional. The URL to the publisher's own Terms of Service.
*/
publicationTosUrl?: string | null;
/**
* Optional. The publication entity type (for-profit vs non-profit). Defaults to FOR_PROFIT if omitted.
*/
publicationType?: string | null;
/**
* Required. The ISO 3166-1 alpha-2 region code where the publication is registered (e.g., "US").
*/
regionCode?: string | null;
/**
* Optional. Reader Revenue Manager product settings and status.
*/
rrmProduct?: Schema$RrmProduct;
/**
* Optional. Subscription Linking product configurations.
*/
slProduct?: Schema$SlProduct;
}
/**
* Configuration and status of the Reader Revenue Manager (RRM) product for a publication.
*/
export interface Schema$RrmProduct {
/**
* Optional. Whether the RRM product is enabled for the publication.
*/
enabled?: boolean | null;
/**
* Output only. The URL to the product-specific Terms of Service.
*/
productTosUrl?: string | null;
/**
* Optional. The details of the TOS acceptance.
*/
tosAcceptance?: Schema$TosAcceptance;
}
/**
* Subscription Linking (SL) product settings and status.
*/
export interface Schema$SlProduct {
/**
* Optional. Whether the Subscription Linking product is enabled.
*/
enabled?: boolean | null;
/**
* Optional. The Google Cloud Project number associated with the publication.
*/
gcpProjectNumber?: string | null;
}
/**
* Details about the acceptance of the Terms of Service (TOS).
*/
export interface Schema$TosAcceptance {
/**
* Optional. Whether the user opted in to receive product updates and email communications.
*/
emailOptIn?: boolean | null;
/**
* Optional. The name of the person who accepted the TOS.
*/
signer?: string | null;
/**
* Optional. The job title or role of the signer.
*/
signerTitle?: string | null;
/**
* Required. Whether the user has accepted the Terms of Service.
*/
userAccepted?: boolean | null;
}
export class Resource$Organizations {
context: APIRequestContext;
publications: Resource$Organizations$Publications;
constructor(context: APIRequestContext);
}
export class Resource$Organizations$Publications {
context: APIRequestContext;
ctas: Resource$Organizations$Publications$Ctas;
constructor(context: APIRequestContext);
/**
* Creates a publication.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/webcontentpublisher.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 webcontentpublisher = google.webcontentpublisher('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/subscribewithgoogle.publications.entitlements.manage',
* ],
* });
*
* // 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 webcontentpublisher.organizations.publications.create({
* // Required. The parent resource where this publication will be created. Format: `organizations/{organization\}`.
* parent: 'organizations/my-organization',
* // Optional. The unique identifier of the publication to create. If not specified, the server will generate a random publication ID.
* publicationId: 'placeholder-value',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {
* // "additionalDomains": [],
* // "contentPolicyStatus": {},
* // "displayName": "my_displayName",
* // "languageCode": "my_languageCode",
* // "name": "my_name",
* // "onboardingState": "my_onboardingState",
* // "organizationId": "my_organizationId",
* // "paymentOption": "my_paymentOption",
* // "primaryDomain": {},
* // "products": [],
* // "publicationId": "my_publicationId",
* // "publicationPrivacyPolicyUrl": "my_publicationPrivacyPolicyUrl",
* // "publicationTosUrl": "my_publicationTosUrl",
* // "publicationType": "my_publicationType",
* // "regionCode": "my_regionCode",
* // "rrmProduct": {},
* // "slProduct": {}
* // }
* },
* });
* console.log(res.data);
*
* // Example response
* // {
* // "additionalDomains": [],
* // "contentPolicyStatus": {},
* // "displayName": "my_displayName",
* // "languageCode": "my_languageCode",
* // "name": "my_name",
* // "onboardingState": "my_onboardingState",
* // "organizationId": "my_organizationId",
* // "paymentOption": "my_paymentOption",
* // "primaryDomain": {},
* // "products": [],
* // "publicationId": "my_publicationId",
* // "publicationPrivacyPolicyUrl": "my_publicationPrivacyPolicyUrl",
* // "publicationTosUrl": "my_publicationTosUrl",
* // "publicationType": "my_publicationType",
* // "regionCode": "my_regionCode",
* // "rrmProduct": {},
* // "slProduct": {}
* // }
* }
*
* 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.
*/
create(params: Params$Resource$Organizations$Publications$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
create(params?: Params$Resource$Organizations$Publications$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Publication>>;
create(params: Params$Resource$Organizations$Publications$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
create(params: Params$Resource$Organizations$Publications$Create, options: MethodOptions | BodyResponseCallback<Schema$Publication>, callback: BodyResponseCallback<Schema$Publication>): void;
create(params: Params$Resource$Organizations$Publications$Create, callback: BodyResponseCallback<Schema$Publication>): void;
create(callback: BodyResponseCallback<Schema$Publication>): void;
/**
* Gets a publication.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/webcontentpublisher.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 webcontentpublisher = google.webcontentpublisher('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/subscribewithgoogle.publications.entitlements.manage',
* 'https://www.googleapis.com/auth/subscribewithgoogle.publications.entitlements.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 webcontentpublisher.organizations.publications.get({
* // Required. The resource name of the publication to retrieve. Format: `organizations/{organization\}/publications/{publication\}`.
* name: 'organizations/my-organization/publications/my-publication',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "additionalDomains": [],
* // "contentPolicyStatus": {},
* // "displayName": "my_displayName",
* // "languageCode": "my_languageCode",
* // "name": "my_name",
* // "onboardingState": "my_onboardingState",
* // "organizationId": "my_organizationId",
* // "paymentOption": "my_paymentOption",
* // "primaryDomain": {},
* // "products": [],
* // "publicationId": "my_publicationId",
* // "publicationPrivacyPolicyUrl": "my_publicationPrivacyPolicyUrl",
* // "publicationTosUrl": "my_publicationTosUrl",
* // "publicationType": "my_publicationType",
* // "regionCode": "my_regionCode",
* // "rrmProduct": {},
* // "slProduct": {}
* // }
* }
*
* 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$Organizations$Publications$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
get(params?: Params$Resource$Organizations$Publications$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Publication>>;
get(params: Params$Resource$Organizations$Publications$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
get(params: Params$Resource$Organizations$Publications$Get, options: MethodOptions | BodyResponseCallback<Schema$Publication>, callback: BodyResponseCallback<Schema$Publication>): void;
get(params: Params$Resource$Organizations$Publications$Get, callback: BodyResponseCallback<Schema$Publication>): void;
get(callback: BodyResponseCallback<Schema$Publication>): void;
/**
* Lists publications.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/webcontentpublisher.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 webcontentpublisher = google.webcontentpublisher('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/subscribewithgoogle.publications.entitlements.manage',
* 'https://www.googleapis.com/auth/subscribewithgoogle.publications.entitlements.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 webcontentpublisher.organizations.publications.list({
* // Optional. A filter expression to filter the publications returned.
* filter: 'placeholder-value',
* // Optional. The maximum number of publications to return. The service may return fewer than this value. If unspecified, at most 50 publications will be returned.
* pageSize: 'placeholder-value',
* // Optional. A page token, received from a previous `ListPublications` call, to retrieve the next page.
* pageToken: 'placeholder-value',
* // Required. The parent organization whose publications to list. Format: `organizations/{organization\}`.
* parent: 'organizations/my-organization',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "nextPageToken": "my_nextPageToken",
* // "publications": []
* // }
* }
*
* 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$Organizations$Publications$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
list(params?: Params$Resource$Organizations$Publications$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListPublicationsResponse>>;
list(params: Params$Resource$Organizations$Publications$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
list(params: Params$Resource$Organizations$Publications$List, options: MethodOptions | BodyResponseCallback<Schema$ListPublicationsResponse>, callback: BodyResponseCallback<Schema$ListPublicationsResponse>): void;
list(params: Params$Resource$Organizations$Publications$List, callback: BodyResponseCallback<Schema$ListPublicationsResponse>): void;
list(callback: BodyResponseCallback<Schema$ListPublicationsResponse>): void;
/**
* Updates a publication.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/webcontentpublisher.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 webcontentpublisher = google.webcontentpublisher('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/subscribewithgoogle.publications.entitlements.manage',
* ],
* });
*
* // 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 webcontentpublisher.organizations.publications.patch({
* // Identifier. The resource name of the publication. Format: organizations/{organization\}/publications/{publication\}
* name: 'organizations/my-organization/publications/my-publication',
* // Optional. The list of fields to update.
* updateMask: 'placeholder-value',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {
* // "additionalDomains": [],
* // "contentPolicyStatus": {},
* // "displayName": "my_displayName",
* // "languageCode": "my_languageCode",
* // "name": "my_name",
* // "onboardingState": "my_onboardingState",
* // "organizationId": "my_organizationId",
* // "paymentOption": "my_paymentOption",
* // "primaryDomain": {},
* // "products": [],
* // "publicationId": "my_publicationId",
* // "publicationPrivacyPolicyUrl": "my_publicationPrivacyPolicyUrl",
* // "publicationTosUrl": "my_publicationTosUrl",
* // "publicationType": "my_publicationType",
* // "regionCode": "my_regionCode",
* // "rrmProduct": {},
* // "slProduct": {}
* // }
* },
* });
* console.log(res.data);
*
* // Example response
* // {
* // "additionalDomains": [],
* // "contentPolicyStatus": {},
* // "displayName": "my_displayName",
* // "languageCode": "my_languageCode",
* // "name": "my_name",
* // "onboardingState": "my_onboardingState",
* // "organizationId": "my_organizationId",
* // "paymentOption": "my_paymentOption",
* // "primaryDomain": {},
* // "products": [],
* // "publicationId": "my_publicationId",
* // "publicationPrivacyPolicyUrl": "my_publicationPrivacyPolicyUrl",
* // "publicationTosUrl": "my_publicationTosUrl",
* // "publicationType": "my_publicationType",
* // "regionCode": "my_regionCode",
* // "rrmProduct": {},
* // "slProduct": {}
* // }
* }
*
* 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.
*/
patch(params: Params$Resource$Organizations$Publications$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
patch(params?: Params$Resource$Organizations$Publications$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Publication>>;
patch(params: Params$Resource$Organizations$Publications$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
patch(params: Params$Resource$Organizations$Publications$Patch, options: MethodOptions | BodyResponseCallback<Schema$Publication>, callback: BodyResponseCallback<Schema$Publication>): void;
patch(params: Params$Resource$Organizations$Publications$Patch, callback: BodyResponseCallback<Schema$Publication>): void;
patch(callback: BodyResponseCallback<Schema$Publication>): void;
}
export interface Params$Resource$Organizations$Publications$Create extends StandardParameters {
/**
* Required. The parent resource where this publication will be created. Format: `organizations/{organization\}`.
*/
parent?: string;
/**
* Optional. The unique identifier of the publication to create. If not specified, the server will generate a random publication ID.
*/
publicationId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Publication;
}
export interface Params$Resource$Organizations$Publications$Get extends StandardParameters {
/**
* Required. The resource name of the publication to retrieve. Format: `organizations/{organization\}/publications/{publication\}`.
*/
name?: string;
}
export interface Params$Resource$Organizations$Publications$List extends StandardParameters {
/**
* Optional. A filter expression to filter the publications returned.
*/
filter?: string;
/**
* Optional. The maximum number of publications to return. The service may return fewer than this value. If unspecified, at most 50 publications will be returned.
*/
pageSize?: number;
/**
* Optional. A page token, received from a previous `ListPublications` call, to retrieve the next page.
*/
pageToken?: string;
/**
* Required. The parent organization whose publications to list. Format: `organizations/{organization\}`.
*/
parent?: string;
}
export interface Params$Resource$Organizations$Publications$Patch extends StandardParameters {
/**
* Identifier. The resource name of the publication. Format: organizations/{organization\}/publications/{publication\}
*/
name?: string;
/**
* Optional. The list of fields to update.
*/
updateMask?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Publication;
}
export class Resource$Organizations$Publications$Ctas {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* Creates a CTA.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/webcontentpublisher.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 webcontentpublisher = google.webcontentpublisher('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/subscribewithgoogle.publications.entitlements.manage',
* ],
* });
*
* // 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 webcontentpublisher.organizations.publications.ctas.create({
* // Optional. The unique identifier of the CTA to create. If not specified, the server will generate a random CTA ID.
* ctaId: 'placeholder-value',
* // Required. The parent publication resource where this CTA will be created. Format: `organizations/{organization\}/publications/{publication\}`.
* parent: 'organizations/my-organization/publications/my-publication',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {
* // "displayName": "my_displayName",
* // "name": "my_name",
* // "newsletterConfig": {},
* // "state": "my_state",
* // "type": "my_type"
* // }
* },
* });
* console.log(res.data);
*
* // Example response
* // {
* // "displayName": "my_displayName",
* // "name": "my_name",
* // "newsletterConfig": {},
* // "state": "my_state",
* // "type": "my_type"
* // }
* }
*
* 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.
*/
create(params: Params$Resource$Organizations$Publications$Ctas$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
create(params?: Params$Resource$Organizations$Publications$Ctas$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Cta>>;
create(params: Params$Resource$Organizations$Publications$Ctas$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
create(params: Params$Resource$Organizations$Publications$Ctas$Create, options: MethodOptions | BodyResponseCallback<Schema$Cta>, callback: BodyResponseCallback<Schema$Cta>): void;
create(params: Params$Resource$Organizations$Publications$Ctas$Create, callback: BodyResponseCallback<Schema$Cta>): void;
create(callback: BodyResponseCallback<Schema$Cta>): void;
/**
* Gets a CTA.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/webcontentpublisher.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 webcontentpublisher = google.webcontentpublisher('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/subscribewithgoogle.publications.entitlements.manage',
* 'https://www.googleapis.com/auth/subscribewithgoogle.publications.entitlements.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 webcontentpublisher.organizations.publications.ctas.get({
* // Required. The resource name of the CTA to retrieve. Format: `organizations/{organization\}/publications/{publication\}/ctas/{cta\}`.
* name: 'organizations/my-organization/publications/my-publication/ctas/my-cta',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "displayName": "my_displayName",
* // "name": "my_name",
* // "newsletterConfig": {},
* // "state": "my_state",
* // "type": "my_type"
* // }
* }
*
* 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$Organizations$Publications$Ctas$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
get(params?: Params$Resource$Organizations$Publications$Ctas$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Cta>>;
get(params: Params$Resource$Organizations$Publications$Ctas$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
get(params: Params$Resource$Organizations$Publications$Ctas$Get, options: MethodOptions | BodyResponseCallback<Schema$Cta>, callback: BodyResponseCallback<Schema$Cta>): void;
get(params: Params$Resource$Organizations$Publications$Ctas$Get, callback: BodyResponseCallback<Schema$Cta>): void;
get(callback: BodyResponseCallback<Schema$Cta>): void;
/**
* Lists CTAs.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/webcontentpublisher.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 webcontentpublisher = google.webcontentpublisher('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/subscribewithgoogle.publications.entitlements.manage',
* 'https://www.googleapis.com/auth/subscribewithgoogle.publications.entitlements.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 webcontentpublisher.organizations.publications.ctas.list({
* // Optional. The maximum number of CTAs to return. The service may return fewer than this value. If unspecified, at most 50 CTAs will be returned.
* pageSize: 'placeholder-value',
* // Optional. A page token, received from a previous `ListCtas` call, to retrieve the next page.
* pageToken: 'placeholder-value',
* // Required. The parent publication resource whose CTAs to list. Format: `organizations/{organization\}/publications/{publication\}`.
* parent: 'organizations/my-organization/publications/my-publication',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "ctas": [],
* // "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$Organizations$Publications$Ctas$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
list(params?: Params$Resource$Organizations$Publications$Ctas$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListCtasResponse>>;
list(params: Params$Resource$Organizations$Publications$Ctas$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
list(params: Params$Resource$Organizations$Publications$Ctas$List, options: MethodOptions | BodyResponseCallback<Schema$ListCtasResponse>, callback: BodyResponseCallback<Schema$ListCtasResponse>): void;
list(params: Params$Resource$Organizations$Publications$Ctas$List, callback: BodyResponseCallback<Schema$ListCtasResponse>): void;
list(callback: BodyResponseCallback<Schema$ListCtasResponse>): void;
}
export interface Params$Resource$Organizations$Publications$Ctas$Create extends StandardParameters {
/**
* Optional. The unique identifier of the CTA to create. If not specified, the server will generate a random CTA ID.
*/
ctaId?: string;
/**
* Required. The parent publication resource where this CTA will be created. Format: `organizations/{organization\}/publications/{publication\}`.
*/
parent?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Cta;
}
export interface Params$Resource$Organizations$Publications$Ctas$Get extends StandardParameters {
/**
* Required. The resource name of the CTA to retrieve. Format: `organizations/{organization\}/publications/{publication\}/ctas/{cta\}`.
*/
name?: string;
}
export interface Params$Resource$Organizations$Publications$Ctas$List extends StandardParameters {
/**
* Optional. The maximum number of CTAs to return. The service may return fewer than this value. If unspecified, at most 50 CTAs will be returned.
*/
pageSize?: number;
/**
* Optional. A page token, received from a previous `ListCtas` call, to retrieve the next page.
*/
pageToken?: string;
/**
* Required. The parent publication resource whose CTAs to list. Format: `organizations/{organization\}/publications/{publication\}`.
*/
parent?: string;
}
export class Resource$Publications {

@@ -110,2 +1005,3 @@ context: APIRequestContext;

* scopes: [
* 'https://www.googleapis.com/auth/subscribewithgoogle.publications.entitlements.manage',
* 'https://www.googleapis.com/auth/subscribewithgoogle.publications.entitlements.readonly',

@@ -112,0 +1008,0 @@ * ],

@@ -37,2 +37,3 @@ "use strict";

context;
organizations;
publications;

@@ -44,2 +45,3 @@ constructor(options, google) {

};
this.organizations = new Resource$Organizations(this.context);
this.publications = new Resource$Publications(this.context);

@@ -49,2 +51,251 @@ }

webcontentpublisher_v1.Webcontentpublisher = Webcontentpublisher;
class Resource$Organizations {
context;
publications;
constructor(context) {
this.context = context;
this.publications = new Resource$Organizations$Publications(this.context);
}
}
webcontentpublisher_v1.Resource$Organizations = Resource$Organizations;
class Resource$Organizations$Publications {
context;
ctas;
constructor(context) {
this.context = context;
this.ctas = new Resource$Organizations$Publications$Ctas(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://webcontentpublisher.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/publications').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://webcontentpublisher.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://webcontentpublisher.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/publications').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://webcontentpublisher.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);
}
}
}
webcontentpublisher_v1.Resource$Organizations$Publications = Resource$Organizations$Publications;
class Resource$Organizations$Publications$Ctas {
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://webcontentpublisher.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/ctas').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://webcontentpublisher.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://webcontentpublisher.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/ctas').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);
}
}
}
webcontentpublisher_v1.Resource$Organizations$Publications$Ctas = Resource$Organizations$Publications$Ctas;
class Resource$Publications {

@@ -51,0 +302,0 @@ context;

@@ -1086,2 +1086,35 @@ "use strict";

}
suspend(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/{+name}:suspend').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);
}
}
testIamPermissions(paramsOrCallback, optionsOrCallback, callback) {

@@ -1088,0 +1121,0 @@ let params = (paramsOrCallback ||

@@ -54,3 +54,3 @@ "use strict";

await exports.gfs.writeFile(indexPath, contents);
const q = new p_queue_1.default({ concurrency: 50 });
const q = new p_queue_1.default({ concurrency: 10 });
console.log(`Generating docs for ${dirs.length} APIs...`);

@@ -61,3 +61,3 @@ let i = 0;

.add(() => exports.gfs.execa(process.execPath, [
'--max-old-space-size=8192',
'--max-old-space-size=4096',
'./node_modules/.bin/jsdoc',

@@ -64,0 +64,0 @@ '-c',

@@ -98,3 +98,3 @@ "use strict";

const apis = JSON.parse(file).items;
const queue = new p_queue_1.default({ concurrency: 50 });
const queue = new p_queue_1.default({ concurrency: 10 });
console.log(`Generating ${apis.length} APIs...`);

@@ -101,0 +101,0 @@ await queue.addAll(apis.map(api => async () => {

@@ -70,10 +70,10 @@ "use strict";

let responseExample;
if (method.response) {
const item = schema.schemas[method.response.$ref];
responseExample = flattenSchema(item, schema.schemas);
if (method?.response?.$ref) {
const item = schema?.schemas?.[method.response.$ref];
responseExample = flattenSchema(item);
}
let requestExample;
if (method.request) {
const item = schema.schemas[method.request.$ref];
requestExample = flattenSchema(item, schema.schemas);
if (method?.request?.$ref) {
const item = schema?.schemas?.[method.request.$ref];
requestExample = flattenSchema(item);
}

@@ -114,9 +114,9 @@ const sampleData = {

*/
function flattenSchema(item, schemas) {
function flattenSchema(item) {
// tslint:disable-next-line no-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const result = {};
if (item.properties) {
if (item?.properties) {
for (const [name, details] of Object.entries(item.properties)) {
result[name] = getExamplePropertyValue(name, details, schemas);
result[name] = getExamplePropertyValue(name, details);
}

@@ -126,5 +126,3 @@ }

}
function getExamplePropertyValue(name, details,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
schemas) {
function getExamplePropertyValue(name, details) {
switch (details.type) {

@@ -131,0 +129,0 @@ case 'string':

@@ -68,2 +68,10 @@ "use strict";

]);
await execa('git', ['config', '--global', 'pack.threads', '2']);
await execa('git', ['config', '--global', 'pack.windowMemory', '128m']);
await execa('git', ['config', '--global', 'pack.packSizeLimit', '256m']);
await execa('git', ['config', '--global', 'pack.deltaCacheSize', '128m']);
await execa('git', ['config', '--global', 'http.postBuffer', '524288000']);
await execa('git', ['config', '--global', 'http.version', 'HTTP/1.1']);
await execa('git', ['config', '--global', 'http.lowSpeedLimit', '1000']);
await execa('git', ['config', '--global', 'http.lowSpeedTime', '600']);
}

@@ -102,6 +110,24 @@ const dirs = files.filter(f => {

}
// Release generator heap memory so V8 can GC before heavy Git operations
changeSets.length = 0;
if (global.gc) {
global.gc();
}
await execa('git', ['add', '-A']);
await execa('git', ['commit', '-m', 'feat: regenerate index files']);
const prefix = getPrefix(totalSemverity);
await execa('git', ['push', 'origin', branch, '--force']);
for (let attempt = 1; attempt <= 3; attempt++) {
try {
await execa('git', ['push', 'origin', branch, '--force']);
break;
}
catch (err) {
console.warn(`[Git Push Attempt ${attempt}/3 Failed]: ${err}`);
if (attempt === 3) {
throw err;
}
console.log(`Waiting 10 seconds before retrying git push...`);
await new Promise(resolve => setTimeout(resolve, 10000));
}
}
try {

@@ -108,0 +134,0 @@ // Open the pull request with the YOSHI_CODE_BOT_TOKEN

@@ -31,2 +31,9 @@ /*! THIS FILE IS AUTO-GENERATED */

export { advisorynotifications_v1 } from './apis/advisorynotifications/v1';
export { agentidentity_v1 } from './apis/agentidentity/v1';
export { agentidentity_v1alpha } from './apis/agentidentity/v1alpha';
export { agentidentity_v1beta } from './apis/agentidentity/v1beta';
export { agentidentitycredentials_v1 } from './apis/agentidentitycredentials/v1';
export { agentidentitycredentials_v1alpha } from './apis/agentidentitycredentials/v1alpha';
export { agentidentitycredentials_v1beta } from './apis/agentidentitycredentials/v1beta';
export { agentregistry_v1 } from './apis/agentregistry/v1';
export { agentregistry_v1alpha } from './apis/agentregistry/v1alpha';

@@ -40,3 +47,2 @@ export { aiplatform_v1 } from './apis/aiplatform/v1';

export { alloydb_v1beta } from './apis/alloydb/v1beta';
export { analytics_v3 } from './apis/analytics/v3';
export { analyticsadmin_v1alpha } from './apis/analyticsadmin/v1alpha';

@@ -151,2 +157,3 @@ export { analyticsadmin_v1beta } from './apis/analyticsadmin/v1beta';

export { cloudnumberregistry_v1alpha } from './apis/cloudnumberregistry/v1alpha';
export { cloudproductregistry_v1 } from './apis/cloudproductregistry/v1';
export { cloudprofiler_v2 } from './apis/cloudprofiler/v2';

@@ -191,2 +198,3 @@ export { cloudresourcemanager_v1 } from './apis/cloudresourcemanager/v1';

export { customsearch_v1 } from './apis/customsearch/v1';
export { databasecenter_v1beta } from './apis/databasecenter/v1beta';
export { datacatalog_v1 } from './apis/datacatalog/v1';

@@ -224,3 +232,2 @@ export { datacatalog_v1beta1 } from './apis/datacatalog/v1beta1';

export { dfareporting_v3_5 } from './apis/dfareporting/v3.5';
export { dfareporting_v4 } from './apis/dfareporting/v4';
export { dfareporting_v5 } from './apis/dfareporting/v5';

@@ -280,2 +287,3 @@ export { dialogflow_v2 } from './apis/dialogflow/v2';

export { firebaseapphosting_v1beta } from './apis/firebaseapphosting/v1beta';
export { firebasecrashlytics_v1alpha } from './apis/firebasecrashlytics/v1alpha';
export { firebasedatabase_v1beta } from './apis/firebasedatabase/v1beta';

@@ -501,2 +509,3 @@ export { firebasedataconnect_v1 } from './apis/firebasedataconnect/v1';

export { searchads360_v0 } from './apis/searchads360/v0';
export { searchads360_v23 } from './apis/searchads360/v23';
export { searchconsole_v1 } from './apis/searchconsole/v1';

@@ -503,0 +512,0 @@ export { secretmanager_v1 } from './apis/secretmanager/v1';

{
"name": "googleapis",
"version": "173.0.0",
"version": "174.0.0",
"repository": "googleapis/google-api-nodejs-client",

@@ -26,4 +26,4 @@ "license": "Apache-2.0",

"predocs2": "npm run compile",
"docs-extract": "node --max-old-space-size=8192 ./node_modules/@microsoft/api-extractor/bin/api-extractor run --local --verbose",
"docs-md": "node --max-old-space-size=8192 ./node_modules/@microsoft/api-documenter/bin/api-documenter markdown --input-folder build/docs --output-folder docs",
"docs-extract": "node --max-old-space-size=4096 ./node_modules/@microsoft/api-extractor/bin/api-extractor run --local --verbose",
"docs-md": "node --max-old-space-size=4096 ./node_modules/@microsoft/api-documenter/bin/api-documenter markdown --input-folder build/docs --output-folder docs",
"docs2": "npm run docs-extract && npm run docs-md",

@@ -34,4 +34,4 @@ "presystem-test": "npm run build-test",

"lint": "gts check",
"compile": "cross-env NODE_OPTIONS=--max-old-space-size=8192 tsc -p tsconfig.json",
"build-test": "cross-env NODE_OPTIONS=--max-old-space-size=8192 tsc -p tsconfig.test.json",
"compile": "cross-env NODE_OPTIONS=--max-old-space-size=4096 tsc -p tsconfig.json",
"build-test": "cross-env NODE_OPTIONS=--max-old-space-size=4096 tsc -p tsconfig.test.json",
"build-tools": "tsc -p tsconfig.tools.json",

@@ -41,6 +41,6 @@ "clean": "gts clean",

"pregenerate": "npm run build-tools",
"generate": "node --max-old-space-size=8192 build/src/generator/generator.js",
"generate": "node --expose-gc --max-old-space-size=4096 build/src/generator/generator.js",
"docs-test": "echo 🙈 this was taking too long and timing out CI",
"presubmit-prs": "npm run compile",
"submit-prs": "node --max-old-space-size=8192 build/src/generator/synth.js",
"submit-prs": "node --expose-gc --max-old-space-size=4096 build/src/generator/synth.js",
"prelint": "cd samples; npm link ../; npm i",

@@ -61,3 +61,3 @@ "predownload": "npm run build-tools",

"dependencies": {
"google-auth-library": "^10.2.0",
"google-auth-library": "10.5.0",
"googleapis-common": "^8.0.0"

@@ -64,0 +64,0 @@ },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display