Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

googleapis

Package Overview
Dependencies
Maintainers
2
Versions
257
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 76.0.0 to 77.0.0

build/src/apis/resourcesettings/index.d.ts

32

build/src/apis/bigqueryreservation/v1beta1.js

@@ -680,4 +680,36 @@ "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 + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'PATCH',
}, options),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
googleapis_common_1.createAPIRequest(parameters, callback);
}
else {
return googleapis_common_1.createAPIRequest(parameters);
}
}
}
bigqueryreservation_v1beta1.Resource$Projects$Locations$Reservations$Assignments = Resource$Projects$Locations$Reservations$Assignments;
})(bigqueryreservation_v1beta1 = exports.bigqueryreservation_v1beta1 || (exports.bigqueryreservation_v1beta1 = {}));

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

}
checkUpgrade(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://composer.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta1/{+environment}:checkUpgrade').replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
}, options),
params,
requiredParams: ['environment'],
pathParams: ['environment'],
context: this.context,
};
if (callback) {
googleapis_common_1.createAPIRequest(parameters, callback);
}
else {
return googleapis_common_1.createAPIRequest(parameters);
}
}
create(paramsOrCallback, optionsOrCallback, callback) {

@@ -68,0 +100,0 @@ let params = (paramsOrCallback ||

6

build/src/apis/fcm/v1.d.ts

@@ -236,3 +236,3 @@ /// <reference types="node" />

/**
* HTTP request headers defined in Apple Push Notification Service. Refer to [APNs request headers](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns) for supported headers, e.g. "apns-priority": "10".
* HTTP request headers defined in Apple Push Notification Service. Refer to [APNs request headers](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns) for supported headers such as `apns-expiration` and `apns-priority`.
*/

@@ -243,3 +243,3 @@ headers?: {

/**
* APNs payload as a JSON object, including both `aps` dictionary and custom payload. See [Payload Key Reference](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification). If present, it overrides google.firebase.fcm.v1.Notification.title and google.firebase.fcm.v1.Notification.body.
* APNs payload as a JSON object, including both `aps` dictionary and custom payload. See [Payload Key Reference](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification). If present, it overrides google.firebase.fcm.v1.Notification.title and google.firebase.fcm.v1.Notification.body. The backend sets a default value for `apns-expiration` of 30 days and a default value for `apns-priority` of 10 if not explicitly set.
*/

@@ -327,3 +327,3 @@ payload?: {

/**
* Input only. Arbitrary key/value payload. The key should not be a reserved word ("from", "message_type", or any word starting with "google" or "gcm").
* Input only. Arbitrary key/value payload, which must be UTF-8 encoded. The key should not be a reserved word ("from", "message_type", or any word starting with "google" or "gcm"). When sending payloads containing only data fields to iOS devices, only normal priority (`"apns-priority": "5"`) is allowed in [`ApnsConfig`](/docs/reference/fcm/rest/v1/projects.messages#apnsconfig).
*/

@@ -330,0 +330,0 @@ data?: {

@@ -83,3 +83,3 @@ /// <reference types="node" />

/**
* The fully qualified resource name of the database instance, in the form: `projects/{project-number\}/locations/{location-id\}/instances/{database-id\}`. Currently the only supported location is 'us-central1'.
* The fully qualified resource name of the database instance, in the form: `projects/{project-number\}/locations/{location-id\}/instances/{database-id\}`.
*/

@@ -86,0 +86,0 @@ name?: string | null;

@@ -128,2 +128,95 @@ "use strict";

}
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://gkehub.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
}, options),
params,
requiredParams: ['parent'],
pathParams: ['parent'],
context: this.context,
};
if (callback) {
googleapis_common_1.createAPIRequest(parameters, callback);
}
else {
return googleapis_common_1.createAPIRequest(parameters);
}
}
delete(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'DELETE',
}, options),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
googleapis_common_1.createAPIRequest(parameters, callback);
}
else {
return googleapis_common_1.createAPIRequest(parameters);
}
}
get(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
}, options),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
googleapis_common_1.createAPIRequest(parameters, callback);
}
else {
return googleapis_common_1.createAPIRequest(parameters);
}
}
getIamPolicy(paramsOrCallback, optionsOrCallback, callback) {

@@ -160,2 +253,64 @@ let params = (paramsOrCallback ||

}
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://gkehub.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
}, options),
params,
requiredParams: ['parent'],
pathParams: ['parent'],
context: this.context,
};
if (callback) {
googleapis_common_1.createAPIRequest(parameters, callback);
}
else {
return googleapis_common_1.createAPIRequest(parameters);
}
}
patch(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'PATCH',
}, options),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
googleapis_common_1.createAPIRequest(parameters, callback);
}
else {
return googleapis_common_1.createAPIRequest(parameters);
}
}
setIamPolicy(paramsOrCallback, optionsOrCallback, callback) {

@@ -162,0 +317,0 @@ let params = (paramsOrCallback ||

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

import { reseller } from './reseller';
import { resourcesettings } from './resourcesettings';
import { retail } from './retail';

@@ -397,2 +398,3 @@ import { run } from './run';

reseller: typeof reseller;
resourcesettings: typeof resourcesettings;
retail: typeof retail;

@@ -399,0 +401,0 @@ run: typeof run;

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

const reseller_1 = require("./reseller");
const resourcesettings_1 = require("./resourcesettings");
const retail_1 = require("./retail");

@@ -406,2 +407,3 @@ const run_1 = require("./run");

reseller: reseller_1.VERSIONS,
resourcesettings: resourcesettings_1.VERSIONS,
retail: retail_1.VERSIONS,

@@ -629,2 +631,3 @@ run: run_1.VERSIONS,

this.reseller = reseller_1.reseller;
this.resourcesettings = resourcesettings_1.resourcesettings;
this.retail = retail_1.retail;

@@ -631,0 +634,0 @@ this.run = run_1.run;

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

this.context = context;
this.sqlIntegrations =
new Resource$Projects$Locations$Global$Domains$Sqlintegrations(this.context);
}

@@ -324,2 +326,34 @@ attachTrust(paramsOrCallback, optionsOrCallback, callback) {

}
getLdapssettings(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+name}/ldapssettings').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
}, options),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
googleapis_common_1.createAPIRequest(parameters, callback);
}
else {
return googleapis_common_1.createAPIRequest(parameters);
}
}
list(paramsOrCallback, optionsOrCallback, callback) {

@@ -515,2 +549,34 @@ let params = (paramsOrCallback ||

}
updateLdapssettings(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+name}/ldapssettings').replace(/([^:]\/)\/+/g, '$1'),
method: 'PATCH',
}, options),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
googleapis_common_1.createAPIRequest(parameters, callback);
}
else {
return googleapis_common_1.createAPIRequest(parameters);
}
}
validateTrust(paramsOrCallback, optionsOrCallback, callback) {

@@ -550,2 +616,72 @@ let params = (paramsOrCallback ||

managedidentities_v1.Resource$Projects$Locations$Global$Domains = Resource$Projects$Locations$Global$Domains;
class Resource$Projects$Locations$Global$Domains$Sqlintegrations {
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://managedidentities.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
}, options),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
googleapis_common_1.createAPIRequest(parameters, callback);
}
else {
return googleapis_common_1.createAPIRequest(parameters);
}
}
list(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+parent}/sqlIntegrations').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
}, options),
params,
requiredParams: ['parent'],
pathParams: ['parent'],
context: this.context,
};
if (callback) {
googleapis_common_1.createAPIRequest(parameters, callback);
}
else {
return googleapis_common_1.createAPIRequest(parameters);
}
}
}
managedidentities_v1.Resource$Projects$Locations$Global$Domains$Sqlintegrations = Resource$Projects$Locations$Global$Domains$Sqlintegrations;
class Resource$Projects$Locations$Global$Operations {

@@ -552,0 +688,0 @@ constructor(context) {

@@ -307,2 +307,19 @@ /// <reference types="node" />

/**
* Contains metadata for longrunning operation for the edit Metrics Scope endpoints.
*/
export interface Schema$OperationMetadata {
/**
* The time when the batch request was received.
*/
createTime?: string | null;
/**
* Current state of the batch operation.
*/
state?: string | null;
/**
* The time when the operation result was last updated.
*/
updateTime?: string | null;
}
/**
* A protocol buffer option, which can be attached to a message, field, enumeration, etc.

@@ -309,0 +326,0 @@ */

@@ -293,2 +293,6 @@ /// <reference types="node" />

updateTime?: string | null;
/**
* Optional. Details about the previous subscription that this new subscription upgrades/downgrades from. Only populated if this subscription is an upgrade/downgrade from another subscription.
*/
upgradeDowngradeDetails?: Schema$GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails;
}

@@ -305,2 +309,15 @@ /**

/**
* Details about the previous subscription that this new subscription upgrades/downgrades from.
*/
export interface Schema$GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails {
/**
* Required. Specifies the billing cycle spec for the new upgraded/downgraded subscription.
*/
billingCycleSpec?: string | null;
/**
* Required. The previous subscription id to be replaced. This is not the full resource name, use the subscription_id segment only.
*/
previousSubscriptionId?: string | null;
}
/**
* Request to revoke a cancellation request.

@@ -619,3 +636,4 @@ */

* // "state": "my_state",
* // "updateTime": "my_updateTime"
* // "updateTime": "my_updateTime",
* // "upgradeDowngradeDetails": {}
* // }

@@ -640,3 +658,4 @@ * },

* // "state": "my_state",
* // "updateTime": "my_updateTime"
* // "updateTime": "my_updateTime",
* // "upgradeDowngradeDetails": {}
* // }

@@ -839,3 +858,4 @@ * }

* // "state": "my_state",
* // "updateTime": "my_updateTime"
* // "updateTime": "my_updateTime",
* // "upgradeDowngradeDetails": {}
* // }

@@ -911,3 +931,4 @@ * }

* // "state": "my_state",
* // "updateTime": "my_updateTime"
* // "updateTime": "my_updateTime",
* // "upgradeDowngradeDetails": {}
* // }

@@ -932,3 +953,4 @@ * },

* // "state": "my_state",
* // "updateTime": "my_updateTime"
* // "updateTime": "my_updateTime",
* // "upgradeDowngradeDetails": {}
* // }

@@ -935,0 +957,0 @@ * }

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

*
* Deploy and manage user provided container images that scale automatically based on HTTP traffic.
* Deploy and manage user provided container images that scale automatically based on incoming requets. The Cloud Run Admin API follows the Knative Serving API specification.
*

@@ -31,0 +31,0 @@ * @example

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

*
* Deploy and manage user provided container images that scale automatically based on HTTP traffic.
* Deploy and manage user provided container images that scale automatically based on incoming requets. The Cloud Run Admin API follows the Knative Serving API specification.
*

@@ -31,0 +31,0 @@ * @example

@@ -591,3 +591,3 @@ /// <reference types="node" />

/**
* A string representing the principal_subject associated with the identity. See go/3pical for more info on how principal_subject is formatted.
* A string representing the principal_subject associated with the identity. For most identities, the format will be `principal://iam.googleapis.com/{identity pool name\}/subject/{subject)` except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format `serviceAccount:{identity pool name\}[{subject\}]`
*/

@@ -594,0 +594,0 @@ principalSubject?: string | null;

@@ -232,3 +232,6 @@ /// <reference types="node" />

* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
* scopes: [
* 'https://www.googleapis.com/auth/sdm.service',
* 'https://www.googleapis.com/auth/sdm.thermostat.service',
* ],
* });

@@ -298,3 +301,6 @@ *

* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
* scopes: [
* 'https://www.googleapis.com/auth/sdm.service',
* 'https://www.googleapis.com/auth/sdm.thermostat.service',
* ],
* });

@@ -358,3 +364,6 @@ *

* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
* scopes: [
* 'https://www.googleapis.com/auth/sdm.service',
* 'https://www.googleapis.com/auth/sdm.thermostat.service',
* ],
* });

@@ -461,3 +470,6 @@ *

* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
* scopes: [
* 'https://www.googleapis.com/auth/sdm.service',
* 'https://www.googleapis.com/auth/sdm.thermostat.service',
* ],
* });

@@ -519,3 +531,6 @@ *

* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
* scopes: [
* 'https://www.googleapis.com/auth/sdm.service',
* 'https://www.googleapis.com/auth/sdm.thermostat.service',
* ],
* });

@@ -611,3 +626,6 @@ *

* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
* scopes: [
* 'https://www.googleapis.com/auth/sdm.service',
* 'https://www.googleapis.com/auth/sdm.thermostat.service',
* ],
* });

@@ -669,3 +687,6 @@ *

* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
* scopes: [
* 'https://www.googleapis.com/auth/sdm.service',
* 'https://www.googleapis.com/auth/sdm.thermostat.service',
* ],
* });

@@ -672,0 +693,0 @@ *

@@ -128,2 +128,52 @@ /// <reference types="node" />

}
/**
* Request message for IntrospectToken.
*/
export interface Schema$GoogleIdentityStsV1IntrospectTokenRequest {
/**
* Required. The OAuth 2.0 security token issued by the Security Token Service API.
*/
token?: string | null;
/**
* Optional. The type of the given token. Supported values are `urn:ietf:params:oauth:token-type:access_token` and `access_token`.
*/
tokenTypeHint?: string | null;
}
/**
* Response message for IntrospectToken.
*/
export interface Schema$GoogleIdentityStsV1IntrospectTokenResponse {
/**
* A boolean value that indicates whether the provided access token is currently active.
*/
active?: boolean | null;
/**
* The client identifier for the OAuth 2.0 client that requested the provided token.
*/
client_id?: string | null;
/**
* The expiration timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire.
*/
exp?: string | null;
/**
* The issued timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued.
*/
iat?: string | null;
/**
* The issuer of the provided token.
*/
iss?: string | null;
/**
* A list of scopes associated with the provided token.
*/
scope?: string | null;
/**
* The unique user ID associated with the provided token. For Google Accounts, this value is based on the Google Account's user ID. For federated identities, this value is based on the identity pool ID and the value of the mapped `google.subject` attribute.
*/
sub?: string | null;
/**
* The human-readable identifier for the token principal subject. For example, if the provided token is associated with a workload identity pool, this field contains a value in the following format: `principal://iam.googleapis.com/projects//locations//workloadIdentityPools//subject/`
*/
username?: string | null;
}
export class Resource$V1 {

@@ -133,2 +183,71 @@ context: APIRequestContext;

/**
* Gets information about a Google OAuth 2.0 access token issued by the Google Cloud [Security Token Service API](https://cloud.google.com/iam/docs/reference/sts/rest).
* @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:
* // `$ gcloud auth application-default login`
* // - Install the npm module by running:
* // `$ 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.introspect({
* // Request body metadata
* requestBody: {
* // request body parameters
* // {
* // "token": "my_token",
* // "tokenTypeHint": "my_tokenTypeHint"
* // }
* },
* });
* console.log(res.data);
*
* // Example response
* // {
* // "active": false,
* // "client_id": "my_client_id",
* // "exp": "my_exp",
* // "iat": "my_iat",
* // "iss": "my_iss",
* // "scope": "my_scope",
* // "sub": "my_sub",
* // "username": "my_username"
* // }
* }
*
* 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.
*/
introspect(params: Params$Resource$V1$Introspect, options: StreamMethodOptions): GaxiosPromise<Readable>;
introspect(params?: Params$Resource$V1$Introspect, options?: MethodOptions): GaxiosPromise<Schema$GoogleIdentityStsV1IntrospectTokenResponse>;
introspect(params: Params$Resource$V1$Introspect, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
introspect(params: Params$Resource$V1$Introspect, options: MethodOptions | BodyResponseCallback<Schema$GoogleIdentityStsV1IntrospectTokenResponse>, callback: BodyResponseCallback<Schema$GoogleIdentityStsV1IntrospectTokenResponse>): void;
introspect(params: Params$Resource$V1$Introspect, callback: BodyResponseCallback<Schema$GoogleIdentityStsV1IntrospectTokenResponse>): void;
introspect(callback: BodyResponseCallback<Schema$GoogleIdentityStsV1IntrospectTokenResponse>): void;
/**
* Exchanges a credential for a Google OAuth 2.0 access token. The token asserts an external identity within a workload identity pool, or it applies a Credential Access Boundary to a Google access token. When you call this method, do not send the `Authorization` HTTP header in the request. This method does not require the `Authorization` header, and using the header can cause the request to fail.

@@ -204,2 +323,8 @@ * @example

}
export interface Params$Resource$V1$Introspect extends StandardParameters {
/**
* Request body metadata
*/
requestBody?: Schema$GoogleIdentityStsV1IntrospectTokenRequest;
}
export interface Params$Resource$V1$Token extends StandardParameters {

@@ -206,0 +331,0 @@ /**

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

}
introspect(paramsOrCallback, optionsOrCallback, callback) {
let params = (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/introspect').replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
}, options),
params,
requiredParams: [],
pathParams: [],
context: this.context,
};
if (callback) {
googleapis_common_1.createAPIRequest(parameters, callback);
}
else {
return googleapis_common_1.createAPIRequest(parameters);
}
}
token(paramsOrCallback, optionsOrCallback, callback) {

@@ -52,0 +82,0 @@ let params = (paramsOrCallback || {});

@@ -42,6 +42,10 @@ "use strict";

const files = fs.readdirSync(apiDir);
const token = process.env.GITHUB_TOKEN;
if (!token) {
const githubToken = process.env.GITHUB_TOKEN;
if (!githubToken) {
throw new Error('please include a GITHUB_TOKEN');
}
const codeBotToken = process.env.CODE_BOT_TOKEN;
if (!codeBotToken) {
throw new Error('please include a CODE_BOT_TOKEN');
}
// only set these while running in the GitHub Actions environment

@@ -89,6 +93,7 @@ if (process.env.GITHUB_ACTIONS) {

try {
// Open the pull request with the YOSHI_CODE_BOT_TOKEN
await gaxios.request({
method: 'POST',
headers: {
Authorization: `token ${token}`,
Authorization: `token ${codeBotToken}`,
},

@@ -95,0 +100,0 @@ url: 'https://api.github.com/repos/googleapis/google-api-nodejs-client/pulls',

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

export { reseller_v1 } from './apis/reseller/v1';
export { resourcesettings_v1 } from './apis/resourcesettings/v1';
export { retail_v2 } from './apis/retail/v2';

@@ -291,0 +292,0 @@ export { retail_v2alpha } from './apis/retail/v2alpha';

{
"name": "googleapis",
"version": "76.0.0",
"version": "77.0.0",
"repository": "googleapis/google-api-nodejs-client",

@@ -46,5 +46,3 @@ "license": "Apache-2.0",

"preupdate-disclaimers": "npm run build-tools",
"update-disclaimers": "node build/src/generator/disclaimer.js",
"api-extractor": "api-extractor run --local",
"api-documenter": "api-documenter yaml --input-folder=temp"
"update-disclaimers": "node build/src/generator/disclaimer.js"
},

@@ -65,4 +63,2 @@ "author": "Google Inc.",

"@compodoc/compodoc": "^1.1.10",
"@microsoft/api-documenter": "^7.8.10",
"@microsoft/api-extractor": "^7.8.10",
"@types/execa": "^0.9.0",

@@ -69,0 +65,0 @@ "@types/mkdirp": "^1.0.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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc