Socket
Socket
Sign inDemoInstall

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 99.0.0 to 100.0.0

2

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

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

/**
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} The JSON representation for `Empty` is empty JSON object `{\}`.
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
*/

@@ -84,0 +84,0 @@ export interface Schema$Empty {

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

/**
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} The JSON representation for `Empty` is empty JSON object `{\}`.
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
*/

@@ -197,0 +197,0 @@ export interface Schema$Empty {

@@ -711,4 +711,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 + '/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);
}
}
}
bigqueryreservation_v1.Resource$Projects$Locations$Reservations$Assignments = Resource$Projects$Locations$Reservations$Assignments;
})(bigqueryreservation_v1 = exports.bigqueryreservation_v1 || (exports.bigqueryreservation_v1 = {}));

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

/**
* The metrics that should be included in the response. If none are specified then any metrics found will be returned. Allowed values: ["first_contentful_paint", "first_input_delay", "largest_contentful_paint", "cumulative_layout_shift", "experimental_uncapped_cumulative_layout_shift"]
* The metrics that should be included in the response. If none are specified then any metrics found will be returned. Allowed values: ["first_contentful_paint", "first_input_delay", "largest_contentful_paint", "cumulative_layout_shift"]
*/

@@ -150,0 +150,0 @@ metrics?: string[] | null;

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

/**
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} The JSON representation for `Empty` is empty JSON object `{\}`.
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
*/

@@ -529,0 +529,0 @@ export interface Schema$GoogleProtobufEmpty {

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

new Resource$Projects$Apps$Recaptchaenterpriseconfig(this.context);
this.recaptchaV3Config = new Resource$Projects$Apps$Recaptchav3config(this.context);
this.safetyNetConfig = new Resource$Projects$Apps$Safetynetconfig(this.context);

@@ -978,2 +979,101 @@ }

firebaseappcheck_v1beta.Resource$Projects$Apps$Recaptchaenterpriseconfig = Resource$Projects$Apps$Recaptchaenterpriseconfig;
class Resource$Projects$Apps$Recaptchav3config {
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://firebaseappcheck.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+parent}/apps/-/recaptchaV3Config:batchGet').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);
}
}
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://firebaseappcheck.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+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);
}
}
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://firebaseappcheck.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta/{+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);
}
}
}
firebaseappcheck_v1beta.Resource$Projects$Apps$Recaptchav3config = Resource$Projects$Apps$Recaptchav3config;
class Resource$Projects$Apps$Safetynetconfig {

@@ -980,0 +1080,0 @@ constructor(context) {

@@ -449,2 +449,4 @@ /// <reference types="node" />

* parent: 'projects/my-project/locations/my-location',
* // Indicate that DatabaseInstances in the `DELETED` state should also be returned.
* showDeleted: 'placeholder-value',
* });

@@ -601,2 +603,6 @@ * console.log(res.data);

parent?: string;
/**
* Indicate that DatabaseInstances in the `DELETED` state should also be returned.
*/
showDeleted?: boolean;
}

@@ -603,0 +609,0 @@ export interface Params$Resource$Projects$Locations$Instances$Reenable extends StandardParameters {

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

/**
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} The JSON representation for `Empty` is empty JSON object `{\}`.
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
*/

@@ -305,0 +305,0 @@ export interface Schema$Empty {

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

/**
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} The JSON representation for `Empty` is empty JSON object `{\}`.
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
*/

@@ -83,0 +83,0 @@ export interface Schema$Empty {

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

/**
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} The JSON representation for `Empty` is empty JSON object `{\}`.
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
*/

@@ -196,0 +196,0 @@ export interface Schema$Empty {

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

/**
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} The JSON representation for `Empty` is empty JSON object `{\}`.
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
*/

@@ -270,0 +270,0 @@ export interface Schema$Empty {

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

/**
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} The JSON representation for `Empty` is empty JSON object `{\}`.
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
*/

@@ -78,0 +78,0 @@ export interface Schema$Empty {

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

/**
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} The JSON representation for `Empty` is empty JSON object `{\}`.
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
*/

@@ -78,0 +78,0 @@ export interface Schema$Empty {

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

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

@@ -842,66 +778,2 @@ recommender_v1.Resource$Organizations$Locations$Insighttypes = Resource$Organizations$Locations$Insighttypes;

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

@@ -1095,66 +967,2 @@ recommender_v1.Resource$Organizations$Locations$Recommenders = Resource$Organizations$Locations$Recommenders;

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

@@ -1270,66 +1078,2 @@ recommender_v1.Resource$Projects$Locations$Insighttypes = Resource$Projects$Locations$Insighttypes;

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

@@ -1336,0 +1080,0 @@ recommender_v1.Resource$Projects$Locations$Recommenders = Resource$Projects$Locations$Recommenders;

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

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

@@ -543,2 +575,34 @@ let params = (paramsOrCallback ||

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

@@ -545,0 +609,0 @@ let params = (paramsOrCallback ||

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

/**
* Indicates the policy violations for this request. If the request is denied by the policy, violation information will be logged here.
*/
policyViolationInfo?: Schema$PolicyViolationInfo;
/**
* The operation request. This may not include all request parameters, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the `@type` property.

@@ -317,3 +321,3 @@ */

/**
* Operation is allowed when this field is not set. Any non-'OK' status indicates a denial; [google.rpc.Status.details]() would contain additional details about the denial.
* Operation is allowed when this field is not set. Any non-'OK' status indicates a denial; google.rpc.Status.details would contain additional details about the denial.
*/

@@ -338,2 +342,27 @@ status?: Schema$Status;

/**
* Represents OrgPolicy Violation information.
*/
export interface Schema$OrgPolicyViolationInfo {
/**
* Optional. Resource payload that is currently in scope and is subjected to orgpolicy conditions. This payload may be the subset of the actual Resource that may come in the request. This payload should not contain any core content.
*/
payload?: {
[key: string]: any;
} | null;
/**
* Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints Requests. Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy check response for logging purposes.
*/
resourceTags?: {
[key: string]: string;
} | null;
/**
* Optional. Resource type that the orgpolicy is checked against. Example: compute.googleapis.com/Instance, store.googleapis.com/bucket
*/
resourceType?: string | null;
/**
* Optional. Policy violations
*/
violationInfo?: Schema$ViolationInfo[];
}
/**
* This message defines attributes for a node that handles a network request. The node can be either a service or an application that sends, forwards, or receives the request. Service peers should fill in `principal` and `labels` as appropriate.

@@ -366,2 +395,11 @@ */

/**
* Information related to policy violations for this request.
*/
export interface Schema$PolicyViolationInfo {
/**
* Indicates the orgpolicy violations for this resource.
*/
orgPolicyViolationInfo?: Schema$OrgPolicyViolationInfo;
}
/**
* Request message for the Report method.

@@ -810,2 +848,23 @@ */

}
/**
* Provides information about the Policy violation info for this request.
*/
export interface Schema$ViolationInfo {
/**
* Optional. Value that is being checked for the policy. This could be in encrypted form (if pii sensitive). This field will only be emitted in LIST_POLICY types
*/
checkedValue?: string | null;
/**
* Optional. Constraint name
*/
constraint?: string | null;
/**
* Optional. Error message that policy is indicating.
*/
errorMessage?: string | null;
/**
* Optional. Indicates the type of the policy.
*/
policyType?: string | null;
}
export class Resource$Services {

@@ -812,0 +871,0 @@ context: APIRequestContext;

@@ -168,2 +168,29 @@ /// <reference types="node" />

/**
* A message that is published by publishers and consumed by subscribers. The message must contain either a non-empty data field or at least one attribute. Note that client libraries represent this object differently depending on the language. See the corresponding [client library documentation](https://cloud.google.com/pubsub/docs/reference/libraries) for more information. See [quotas and limits] (https://cloud.google.com/pubsub/quotas) for more information about message limits.
*/
export interface Schema$PubsubMessage {
/**
* Attributes for this message. If this field is empty, the message must contain non-empty data. This can be used to filter messages on the subscription.
*/
attributes?: {
[key: string]: string;
} | null;
/**
* The message data field. If this field is empty, the message must contain at least one attribute.
*/
data?: string | null;
/**
* ID of this message, assigned by the server when the message is published. Guaranteed to be unique within the topic. This value may be read by a subscriber that receives a `PubsubMessage` via a `Pull` call or a push delivery. It must not be populated by the publisher in a `Publish` call.
*/
messageId?: string | null;
/**
* If non-empty, identifies related messages for which publish order should be respected. If a `Subscription` has `enable_message_ordering` set to `true`, messages published with the same non-empty `ordering_key` value will be delivered to subscribers in the order in which they are received by the Pub/Sub system. All `PubsubMessage`s published in a given `PublishRequest` must specify the same `ordering_key` value.
*/
orderingKey?: string | null;
/**
* The time at which the message was published, populated by the server when it receives the `Publish` call. It must not be populated by the publisher in a `Publish` call.
*/
publishTime?: string | null;
}
/**
* A collection of stack elements (frames) where an error occurred.

@@ -194,2 +221,19 @@ */

}
/**
* Request for the TriggerPubsubExecution method.
*/
export interface Schema$TriggerPubsubExecutionRequest {
/**
* Required. LINT: LEGACY_NAMES The query parameter value for __GCP_CloudEventsMode, set by the Eventarc service when configuring triggers.
*/
GCPCloudEventsMode?: string | null;
/**
* Required. The message of the Pub/Sub push notification.
*/
message?: Schema$PubsubMessage;
/**
* Required. The subscription of the Pub/Sub push notification. Format: projects/{project\}/subscriptions/{sub\}
*/
subscription?: string | null;
}
export class Resource$Projects {

@@ -209,3 +253,91 @@ context: APIRequestContext;

constructor(context: APIRequestContext);
/**
* Triggers a new execution using the latest revision of the given workflow by a Pub/Sub push notification.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/workflowexecutions.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 workflowexecutions = google.workflowexecutions('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 workflowexecutions.projects.locations.workflows.triggerPubsubExecution(
* {
* // Required. Name of the workflow for which an execution should be created. Format: projects/{project\}/locations/{location\}/workflows/{workflow\}
* workflow:
* 'projects/my-project/locations/my-location/workflows/my-workflow',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {
* // "GCPCloudEventsMode": "my_GCPCloudEventsMode",
* // "message": {},
* // "subscription": "my_subscription"
* // }
* },
* }
* );
* console.log(res.data);
*
* // Example response
* // {
* // "argument": "my_argument",
* // "callLogLevel": "my_callLogLevel",
* // "endTime": "my_endTime",
* // "error": {},
* // "name": "my_name",
* // "result": "my_result",
* // "startTime": "my_startTime",
* // "state": "my_state",
* // "workflowRevisionId": "my_workflowRevisionId"
* // }
* }
*
* 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.
*/
triggerPubsubExecution(params: Params$Resource$Projects$Locations$Workflows$Triggerpubsubexecution, options: StreamMethodOptions): GaxiosPromise<Readable>;
triggerPubsubExecution(params?: Params$Resource$Projects$Locations$Workflows$Triggerpubsubexecution, options?: MethodOptions): GaxiosPromise<Schema$Execution>;
triggerPubsubExecution(params: Params$Resource$Projects$Locations$Workflows$Triggerpubsubexecution, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
triggerPubsubExecution(params: Params$Resource$Projects$Locations$Workflows$Triggerpubsubexecution, options: MethodOptions | BodyResponseCallback<Schema$Execution>, callback: BodyResponseCallback<Schema$Execution>): void;
triggerPubsubExecution(params: Params$Resource$Projects$Locations$Workflows$Triggerpubsubexecution, callback: BodyResponseCallback<Schema$Execution>): void;
triggerPubsubExecution(callback: BodyResponseCallback<Schema$Execution>): void;
}
export interface Params$Resource$Projects$Locations$Workflows$Triggerpubsubexecution extends StandardParameters {
/**
* Required. Name of the workflow for which an execution should be created. Format: projects/{project\}/locations/{location\}/workflows/{workflow\}
*/
workflow?: string;
/**
* Request body metadata
*/
requestBody?: Schema$TriggerPubsubExecutionRequest;
}
export class Resource$Projects$Locations$Workflows$Executions {

@@ -212,0 +344,0 @@ context: APIRequestContext;

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

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

@@ -67,0 +99,0 @@ workflowexecutions_v1.Resource$Projects$Locations$Workflows = Resource$Projects$Locations$Workflows;

{
"name": "googleapis",
"version": "99.0.0",
"version": "100.0.0",
"repository": "googleapis/google-api-nodejs-client",

@@ -5,0 +5,0 @@ "license": "Apache-2.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

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