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 89.0.0 to 90.0.0

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

4

build/src/apis/analyticsreporting/v4.d.ts

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

/**
* If empty reason is specified, the report is empty for this reason.
*/
emptyReason?: string | null;
/**
* Indicates if response to this request is golden or not. Data is golden when the exact same request will not produce any new results if asked at a later point in time.

@@ -641,0 +645,0 @@ */

237

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

@@ -105,7 +105,2 @@ /// <reference types="node" />

/**
* The request message for Operations.CancelOperation.
*/
export interface Schema$CancelOperationRequest {
}
/**
* DockerImage represents a docker artifact. The following fields are returned as untyped metadata in the Version resource, using camelcase keys (i.e. metadata.imageSizeBytes): - imageSizeBytes - mediaType - buildTime

@@ -144,7 +139,2 @@ */

/**
* 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 `{\}`.
*/
export interface Schema$Empty {
}
/**
* Error information explaining why a package was not imported.

@@ -241,15 +231,2 @@ */

/**
* The response message for Operations.ListOperations.
*/
export interface Schema$ListOperationsResponse {
/**
* The standard List next-page token.
*/
nextPageToken?: string | null;
/**
* A list of operations that matches the specified filter in the request.
*/
operations?: Schema$Operation[];
}
/**
* The response from listing repositories.

@@ -411,116 +388,2 @@ */

/**
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/artifactregistry.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 artifactregistry = google.artifactregistry('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 artifactregistry.operations.cancel({
* // The name of the operation resource to be cancelled.
* name: 'operations/.*',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {}
* },
* });
* 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.
*/
cancel(params: Params$Resource$Operations$Cancel, options: StreamMethodOptions): GaxiosPromise<Readable>;
cancel(params?: Params$Resource$Operations$Cancel, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
cancel(params: Params$Resource$Operations$Cancel, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
cancel(params: Params$Resource$Operations$Cancel, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
cancel(params: Params$Resource$Operations$Cancel, callback: BodyResponseCallback<Schema$Empty>): void;
cancel(callback: BodyResponseCallback<Schema$Empty>): void;
/**
* Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/artifactregistry.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 artifactregistry = google.artifactregistry('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 artifactregistry.operations.delete({
* // The name of the operation resource to be deleted.
* name: 'operations/.*',
* });
* 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.
*/
delete(params: Params$Resource$Operations$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
delete(params?: Params$Resource$Operations$Delete, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
delete(params: Params$Resource$Operations$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
delete(params: Params$Resource$Operations$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
delete(params: Params$Resource$Operations$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
delete(callback: BodyResponseCallback<Schema$Empty>): void;
/**
* Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

@@ -588,85 +451,3 @@ * @example

get(callback: BodyResponseCallback<Schema$Operation>): void;
/**
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/x/operations`. To override the binding, API services can add a binding such as `"/v1/{name=users/x\}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/artifactregistry.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 artifactregistry = google.artifactregistry('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',
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
* ],
* });
*
* // 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 artifactregistry.operations.list({
* // The standard list filter.
* filter: 'placeholder-value',
* // The name of the operation's parent resource.
* name: 'operations',
* // The standard list page size.
* pageSize: 'placeholder-value',
* // The standard list page token.
* pageToken: 'placeholder-value',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "nextPageToken": "my_nextPageToken",
* // "operations": []
* // }
* }
*
* 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$Operations$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
list(params?: Params$Resource$Operations$List, options?: MethodOptions): GaxiosPromise<Schema$ListOperationsResponse>;
list(params: Params$Resource$Operations$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
list(params: Params$Resource$Operations$List, options: MethodOptions | BodyResponseCallback<Schema$ListOperationsResponse>, callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
list(params: Params$Resource$Operations$List, callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
list(callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
}
export interface Params$Resource$Operations$Cancel extends StandardParameters {
/**
* The name of the operation resource to be cancelled.
*/
name?: string;
/**
* Request body metadata
*/
requestBody?: Schema$CancelOperationRequest;
}
export interface Params$Resource$Operations$Delete extends StandardParameters {
/**
* The name of the operation resource to be deleted.
*/
name?: string;
}
export interface Params$Resource$Operations$Get extends StandardParameters {

@@ -678,20 +459,2 @@ /**

}
export interface Params$Resource$Operations$List extends StandardParameters {
/**
* The standard list filter.
*/
filter?: string;
/**
* The name of the operation's parent resource.
*/
name?: string;
/**
* The standard list page size.
*/
pageSize?: number;
/**
* The standard list page token.
*/
pageToken?: string;
}
export class Resource$Projects {

@@ -698,0 +461,0 @@ context: APIRequestContext;

@@ -51,64 +51,2 @@ "use strict";

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

@@ -144,32 +82,2 @@ 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://artifactregistry.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);
}
}
}

@@ -176,0 +84,0 @@ artifactregistry_v1.Resource$Operations = Resource$Operations;

@@ -249,2 +249,35 @@ /// <reference types="node" />

/**
* Details of an app installation request.
*/
export interface Schema$GoogleChromeManagementV1ChromeAppRequest {
/**
* Output only. Format: app_details=customers/{customer_id\}/apps/chrome/{app_id\}
*/
appDetails?: string | null;
/**
* Output only. Unique store identifier for the app. Example: "gmbmikajjgmnabiglmofipeabaddhgne" for the Save to Google Drive Chrome extension.
*/
appId?: string | null;
/**
* Output only. The uri for the detail page of the item.
*/
detailUri?: string | null;
/**
* Output only. App's display name.
*/
displayName?: string | null;
/**
* Output only. A link to an image that can be used as an icon for the product.
*/
iconUri?: string | null;
/**
* Output only. The timestamp of the most recently made request for this app.
*/
latestRequestTime?: string | null;
/**
* Output only. Total count of requests for this app.
*/
requestCount?: string | null;
}
/**
* Represent one host permission.

@@ -259,2 +292,19 @@ */

/**
* Response containing summary of requested app installations.
*/
export interface Schema$GoogleChromeManagementV1CountChromeAppRequestsResponse {
/**
* Token to specify the next page in the list.
*/
nextPageToken?: string | null;
/**
* Count of requested apps matching request.
*/
requestedApps?: Schema$GoogleChromeManagementV1ChromeAppRequest[];
/**
* Total number of matching app requests.
*/
totalSize?: number | null;
}
/**
* Response containing requested browser versions details and counts.

@@ -403,3 +453,93 @@ */

constructor(context: APIRequestContext);
/**
* Generate summary of app installation requests.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/chromemanagement.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 chromemanagement = google.chromemanagement('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/chrome.management.appdetails.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 chromemanagement.customers.apps.countChromeAppRequests({
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
* customer: 'customers/my-customer',
* // Field used to order results. Supported fields: * request_count * latest_request_time
* orderBy: 'placeholder-value',
* // The ID of the organizational unit.
* orgUnitId: 'placeholder-value',
* // Maximum number of results to return. Maximum and default are 50, anything above will be coerced to 50.
* pageSize: 'placeholder-value',
* // Token to specify the page of the request to be returned.
* pageToken: 'placeholder-value',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "nextPageToken": "my_nextPageToken",
* // "requestedApps": [],
* // "totalSize": 0
* // }
* }
*
* 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.
*/
countChromeAppRequests(params: Params$Resource$Customers$Apps$Countchromeapprequests, options: StreamMethodOptions): GaxiosPromise<Readable>;
countChromeAppRequests(params?: Params$Resource$Customers$Apps$Countchromeapprequests, options?: MethodOptions): GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeAppRequestsResponse>;
countChromeAppRequests(params: Params$Resource$Customers$Apps$Countchromeapprequests, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
countChromeAppRequests(params: Params$Resource$Customers$Apps$Countchromeapprequests, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeAppRequestsResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeAppRequestsResponse>): void;
countChromeAppRequests(params: Params$Resource$Customers$Apps$Countchromeapprequests, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeAppRequestsResponse>): void;
countChromeAppRequests(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeAppRequestsResponse>): void;
}
export interface Params$Resource$Customers$Apps$Countchromeapprequests extends StandardParameters {
/**
* Required. Customer id or "my_customer" to use the customer associated to the account making the request.
*/
customer?: string;
/**
* Field used to order results. Supported fields: * request_count * latest_request_time
*/
orderBy?: string;
/**
* The ID of the organizational unit.
*/
orgUnitId?: string;
/**
* Maximum number of results to return. Maximum and default are 50, anything above will be coerced to 50.
*/
pageSize?: number;
/**
* Token to specify the page of the request to be returned.
*/
pageToken?: string;
}
export class Resource$Customers$Apps$Android {

@@ -406,0 +546,0 @@ context: APIRequestContext;

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

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

@@ -63,0 +94,0 @@ chromemanagement_v1.Resource$Customers$Apps = Resource$Customers$Apps;

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

/**
* Output only. The full qualified name of the policy schema. This value is used to fill the field `policy_schema` in PolicyValue when calling BatchInheritOrgUnitPolicies BatchModifyOrgUnitPolicies BatchModifyGroupPolicies or BatchDeleteGroupPolicies.
* Output only. The fully qualified name of the policy schema. This value is used to fill the field `policy_schema` in PolicyValue when calling BatchInheritOrgUnitPolicies or BatchModifyOrgUnitPolicies
*/

@@ -282,3 +282,3 @@ schemaName?: string | null;

/**
* The target resource on which this policy is applied. The following resources are supported: * Organizational Unit ("orgunits/{orgunit_id\}") * Group ("groups/{group_id\}")
* The target resource on which this policy is applied. The following resources are supported: * Organizational Unit ("orgunits/{orgunit_id\}")
*/

@@ -285,0 +285,0 @@ targetResource?: string | null;

/*! THIS FILE IS AUTO-GENERATED */
import { AuthPlus } from 'googleapis-common';
import { containeranalysis_v1 } from './v1';
import { containeranalysis_v1alpha1 } from './v1alpha1';
import { containeranalysis_v1beta1 } from './v1beta1';
export declare const VERSIONS: {
v1: typeof containeranalysis_v1.Containeranalysis;
v1alpha1: typeof containeranalysis_v1alpha1.Containeranalysis;
v1beta1: typeof containeranalysis_v1beta1.Containeranalysis;
};
export declare function containeranalysis(version: 'v1'): containeranalysis_v1.Containeranalysis;
export declare function containeranalysis(options: containeranalysis_v1.Options): containeranalysis_v1.Containeranalysis;
export declare function containeranalysis(version: 'v1alpha1'): containeranalysis_v1alpha1.Containeranalysis;

@@ -15,4 +19,5 @@ export declare function containeranalysis(options: containeranalysis_v1alpha1.Options): containeranalysis_v1alpha1.Containeranalysis;

export { auth };
export { containeranalysis_v1 };
export { containeranalysis_v1alpha1 };
export { containeranalysis_v1beta1 };
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.containeranalysis_v1beta1 = exports.containeranalysis_v1alpha1 = exports.auth = exports.containeranalysis = exports.VERSIONS = void 0;
exports.containeranalysis_v1beta1 = exports.containeranalysis_v1alpha1 = exports.containeranalysis_v1 = exports.auth = exports.containeranalysis = exports.VERSIONS = void 0;
/*! THIS FILE IS AUTO-GENERATED */
const googleapis_common_1 = require("googleapis-common");
const v1_1 = require("./v1");
Object.defineProperty(exports, "containeranalysis_v1", { enumerable: true, get: function () { return v1_1.containeranalysis_v1; } });
const v1alpha1_1 = require("./v1alpha1");

@@ -24,2 +26,3 @@ Object.defineProperty(exports, "containeranalysis_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.containeranalysis_v1alpha1; } });

exports.VERSIONS = {
v1: v1_1.containeranalysis_v1.Containeranalysis,
v1alpha1: v1alpha1_1.containeranalysis_v1alpha1.Containeranalysis,

@@ -26,0 +29,0 @@ v1beta1: v1beta1_1.containeranalysis_v1beta1.Containeranalysis,

/*! THIS FILE IS AUTO-GENERATED */
import { AuthPlus } from 'googleapis-common';
import { domains_v1 } from './v1';
import { domains_v1alpha2 } from './v1alpha2';
import { domains_v1beta1 } from './v1beta1';
export declare const VERSIONS: {
v1: typeof domains_v1.Domains;
v1alpha2: typeof domains_v1alpha2.Domains;
v1beta1: typeof domains_v1beta1.Domains;
};
export declare function domains(version: 'v1'): domains_v1.Domains;
export declare function domains(options: domains_v1.Options): domains_v1.Domains;
export declare function domains(version: 'v1alpha2'): domains_v1alpha2.Domains;

@@ -15,4 +19,5 @@ export declare function domains(options: domains_v1alpha2.Options): domains_v1alpha2.Domains;

export { auth };
export { domains_v1 };
export { domains_v1alpha2 };
export { domains_v1beta1 };
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.domains_v1beta1 = exports.domains_v1alpha2 = exports.auth = exports.domains = exports.VERSIONS = void 0;
exports.domains_v1beta1 = exports.domains_v1alpha2 = exports.domains_v1 = exports.auth = exports.domains = exports.VERSIONS = void 0;
/*! THIS FILE IS AUTO-GENERATED */
const googleapis_common_1 = require("googleapis-common");
const v1_1 = require("./v1");
Object.defineProperty(exports, "domains_v1", { enumerable: true, get: function () { return v1_1.domains_v1; } });
const v1alpha2_1 = require("./v1alpha2");

@@ -24,2 +26,3 @@ Object.defineProperty(exports, "domains_v1alpha2", { enumerable: true, get: function () { return v1alpha2_1.domains_v1alpha2; } });

exports.VERSIONS = {
v1: v1_1.domains_v1.Domains,
v1alpha2: v1alpha2_1.domains_v1alpha2.Domains,

@@ -26,0 +29,0 @@ v1beta1: v1beta1_1.domains_v1beta1.Domains,

@@ -476,2 +476,33 @@ "use strict";

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

@@ -478,0 +509,0 @@ file_v1beta1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances;

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

*
* App Check works alongside other Firebase services to help protect your backend resources from abuse, such as billing fraud or phishing. With App Check, devices running your app will use an app or device attestation provider that attests to one or both of the following: * Requests originate from your authentic app * Requests originate from an authentic, untampered device This attestation is attached to every request your app makes to your Firebase backend resources. The Firebase App Check REST API allows you to manage your App Check configurations programmatically. It also allows you to exchange attestation material for App Check tokens directly without using a Firebase SDK. Finally, it allows you to obtain the public key set necessary to validate an App Check token yourself. [Learn more about App Check](https://firebase.google.com/docs/app-check).
* Firebase App Check works alongside other Firebase services to help protect your backend resources from abuse, such as billing fraud or phishing.
*

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

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

@@ -416,2 +541,33 @@ 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 + '/v1alpha/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
}, options),
params,
requiredParams: ['parent'],
pathParams: ['parent'],
context: this.context,
};
if (callback) {
googleapis_common_1.createAPIRequest(parameters, callback);
}
else {
return googleapis_common_1.createAPIRequest(parameters);
}
}
listAdmin(paramsOrCallback, optionsOrCallback, callback) {

@@ -448,2 +604,33 @@ let params = (paramsOrCallback ||

}
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 + '/v1alpha/{+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) {

@@ -450,0 +637,0 @@ let params = (paramsOrCallback ||

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

/**
* Associates `members` with a `role`.
* Associates `members`, or principals, with a `role`.
*/
export interface Schema$Binding {
/**
* The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
* The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
*/
condition?: Schema$Expr;
/**
* Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid\}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid\}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid\}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid\}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid\}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid\}` and the recovered group retains the role in the binding. * `domain:{domain\}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
* Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid\}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid\}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid\}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid\}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid\}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid\}` and the recovered group retains the role in the binding. * `domain:{domain\}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
*/
members?: string[] | null;
/**
* Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
* Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
*/

@@ -132,7 +132,7 @@ role?: string | null;

/**
* An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] \}, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", \} \} ], "etag": "BwWWja0YfJA=", "version": 3 \} **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
* An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] \}, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", \} \} ], "etag": "BwWWja0YfJA=", "version": 3 \} **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
*/
export interface Schema$Policy {
/**
* Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member. The `bindings` in a `Policy` can refer to up to 1,500 members; up to 250 of these members can be Google groups. Each occurrence of a member counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other member, then you can add another 1,450 members to the `bindings` in the `Policy`.
* Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
*/

@@ -139,0 +139,0 @@ bindings?: Schema$Binding[];

@@ -77,4 +77,6 @@ /*! THIS FILE IS AUTO-GENERATED */

import { datamigration } from './datamigration';
import { datapipelines } from './datapipelines';
import { dataproc } from './dataproc';
import { datastore } from './datastore';
import { datastream } from './datastream';
import { deploymentmanager } from './deploymentmanager';

@@ -317,4 +319,6 @@ import { dfareporting } from './dfareporting';

datamigration: typeof datamigration;
datapipelines: typeof datapipelines;
dataproc: typeof dataproc;
datastore: typeof datastore;
datastream: typeof datastream;
deploymentmanager: typeof deploymentmanager;

@@ -321,0 +325,0 @@ dfareporting: typeof dfareporting;

@@ -92,4 +92,6 @@ "use strict";

const datamigration_1 = require("./datamigration");
const datapipelines_1 = require("./datapipelines");
const dataproc_1 = require("./dataproc");
const datastore_1 = require("./datastore");
const datastream_1 = require("./datastream");
const deploymentmanager_1 = require("./deploymentmanager");

@@ -326,4 +328,6 @@ const dfareporting_1 = require("./dfareporting");

datamigration: datamigration_1.VERSIONS,
datapipelines: datapipelines_1.VERSIONS,
dataproc: dataproc_1.VERSIONS,
datastore: datastore_1.VERSIONS,
datastream: datastream_1.VERSIONS,
deploymentmanager: deploymentmanager_1.VERSIONS,

@@ -562,4 +566,6 @@ dfareporting: dfareporting_1.VERSIONS,

this.datamigration = datamigration_1.datamigration;
this.datapipelines = datapipelines_1.datapipelines;
this.dataproc = dataproc_1.dataproc;
this.datastore = datastore_1.datastore;
this.datastream = datastream_1.datastream;
this.deploymentmanager = deploymentmanager_1.deploymentmanager;

@@ -566,0 +572,0 @@ this.dfareporting = dfareporting_1.dfareporting;

@@ -151,3 +151,9 @@ "use strict";

}
getReport(paramsOrCallback, optionsOrCallback, callback) {
}
osconfig_v1.Resource$Projects$Locations$Instances$Ospolicyassignments = Resource$Projects$Locations$Instances$Ospolicyassignments;
class Resource$Projects$Locations$Instances$Ospolicyassignments$Reports {
constructor(context) {
this.context = context;
}
get(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||

@@ -184,8 +190,2 @@ {});

}
}
osconfig_v1.Resource$Projects$Locations$Instances$Ospolicyassignments = Resource$Projects$Locations$Instances$Ospolicyassignments;
class Resource$Projects$Locations$Instances$Ospolicyassignments$Reports {
constructor(context) {
this.context = context;
}
list(paramsOrCallback, optionsOrCallback, callback) {

@@ -192,0 +192,0 @@ let params = (paramsOrCallback ||

@@ -221,3 +221,9 @@ "use strict";

}
getReport(paramsOrCallback, optionsOrCallback, callback) {
}
osconfig_v1alpha.Resource$Projects$Locations$Instances$Ospolicyassignments = Resource$Projects$Locations$Instances$Ospolicyassignments;
class Resource$Projects$Locations$Instances$Ospolicyassignments$Reports {
constructor(context) {
this.context = context;
}
get(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||

@@ -254,8 +260,2 @@ {});

}
}
osconfig_v1alpha.Resource$Projects$Locations$Instances$Ospolicyassignments = Resource$Projects$Locations$Instances$Ospolicyassignments;
class Resource$Projects$Locations$Instances$Ospolicyassignments$Reports {
constructor(context) {
this.context = context;
}
list(paramsOrCallback, optionsOrCallback, callback) {

@@ -262,0 +262,0 @@ let params = (paramsOrCallback ||

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

projects: Resource$Users$Projects;
sshPublicKey: Resource$Users$Sshpublickey;
sshPublicKeys: Resource$Users$Sshpublickeys;

@@ -491,2 +492,89 @@ constructor(context: APIRequestContext);

}
export class Resource$Users$Sshpublickey {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* Create an SSH public key
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/oslogin.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 oslogin = google.oslogin('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',
* 'https://www.googleapis.com/auth/compute',
* ],
* });
*
* // 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 oslogin.users.sshPublicKey.create({
* // Required. The unique ID for the user in format `users/{user\}`.
* parent: 'users/my-user',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {
* // "expirationTimeUsec": "my_expirationTimeUsec",
* // "fingerprint": "my_fingerprint",
* // "key": "my_key",
* // "name": "my_name"
* // }
* },
* });
* console.log(res.data);
*
* // Example response
* // {
* // "expirationTimeUsec": "my_expirationTimeUsec",
* // "fingerprint": "my_fingerprint",
* // "key": "my_key",
* // "name": "my_name"
* // }
* }
*
* 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$Users$Sshpublickey$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
create(params?: Params$Resource$Users$Sshpublickey$Create, options?: MethodOptions): GaxiosPromise<Schema$SshPublicKey>;
create(params: Params$Resource$Users$Sshpublickey$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
create(params: Params$Resource$Users$Sshpublickey$Create, options: MethodOptions | BodyResponseCallback<Schema$SshPublicKey>, callback: BodyResponseCallback<Schema$SshPublicKey>): void;
create(params: Params$Resource$Users$Sshpublickey$Create, callback: BodyResponseCallback<Schema$SshPublicKey>): void;
create(callback: BodyResponseCallback<Schema$SshPublicKey>): void;
}
export interface Params$Resource$Users$Sshpublickey$Create extends StandardParameters {
/**
* Required. The unique ID for the user in format `users/{user\}`.
*/
parent?: string;
/**
* Request body metadata
*/
requestBody?: Schema$SshPublicKey;
}
export class Resource$Users$Sshpublickeys {

@@ -493,0 +581,0 @@ context: APIRequestContext;

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

this.projects = new Resource$Users$Projects(this.context);
this.sshPublicKey = new Resource$Users$Sshpublickey(this.context);
this.sshPublicKeys = new Resource$Users$Sshpublickeys(this.context);

@@ -154,2 +155,39 @@ }

oslogin_v1alpha.Resource$Users$Projects = Resource$Users$Projects;
class Resource$Users$Sshpublickey {
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://oslogin.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1alpha/{+parent}/sshPublicKey').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);
}
}
}
oslogin_v1alpha.Resource$Users$Sshpublickey = Resource$Users$Sshpublickey;
class Resource$Users$Sshpublickeys {

@@ -156,0 +194,0 @@ constructor(context) {

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

freeTrialEndTime?: string | null;
/**
* Output only. The time at which the subscription is expected to be renewed by Google - a new charge will be incurred and the service entitlement will be renewed. A non-immediate cancellation will take place at this time too, before which, the service entitlement for the end user will remain valid. UTC timezone in ISO 8061 format. For example: "2019-08-31T17:28:54.564Z"
*/
renewalTime?: string | null;
}

@@ -793,3 +797,4 @@ /**

* // "cycleEndTime": "my_cycleEndTime",
* // "freeTrialEndTime": "my_freeTrialEndTime"
* // "freeTrialEndTime": "my_freeTrialEndTime",
* // "renewalTime": "my_renewalTime"
* // }

@@ -796,0 +801,0 @@ * }

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

/**
* Organizations to which the custom app should be made available. If the request contains any organizations, then the app will be restricted to only these organizations. To support the organization linked to the developer account, the organization ID should be provided explicitly together with other organizations. If no organizations are provided, then the app is only available to the organization linked to the developer account.
*/
organizations?: Schema$Organization[];
/**
* Output only. Package name of the created Android app. Only present in the API response.

@@ -92,2 +96,15 @@ */

}
/**
* Represents an organization that can access a custom app.
*/
export interface Schema$Organization {
/**
* Required. ID of the organization.
*/
organizationId?: string | null;
/**
* Optional. A human-readable name of the organization, to help recognize the organization.
*/
organizationName?: string | null;
}
export class Resource$Accounts {

@@ -136,2 +153,3 @@ context: APIRequestContext;

* // "languageCode": "my_languageCode",
* // "organizations": [],
* // "packageName": "my_packageName",

@@ -151,2 +169,3 @@ * // "title": "my_title"

* // "languageCode": "my_languageCode",
* // "organizations": [],
* // "packageName": "my_packageName",

@@ -153,0 +172,0 @@ * // "title": "my_title"

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

/**
* If set to true, it means allowed_package_names will not be enforced.
* If set to true, allowed_package_names are not enforced.
*/

@@ -175,3 +175,3 @@ allowAllPackageNames?: boolean | null;

/**
* If set to true, it means allowed_bundle_ids will not be enforced.
* If set to true, allowed_bundle_ids are not enforced.
*/

@@ -345,3 +345,3 @@ allowAllBundleIds?: boolean | null;

/**
* Required. Whether this key can be used on AMP (Accelerated Mobile Pages) websites. This can only be set for the SCORE integration type.
* If set to true, the key can be used on AMP (Accelerated Mobile Pages) websites. This is supported only for the SCORE integration type.
*/

@@ -348,0 +348,0 @@ allowAmpTraffic?: boolean | null;

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

startRow?: number | null;
/**
* Optional. [Optional; Default is \"web\"] Type of report: search type, or either Discover or Gnews.
*/
type?: string | null;
}

@@ -379,3 +383,4 @@ /**

* // "startDate": "my_startDate",
* // "startRow": 0
* // "startRow": 0,
* // "type": "my_type"
* // }

@@ -382,0 +387,0 @@ * },

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

/**
* A list of up to 3 additional [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags, listing possible alternative languages of the supplied audio. See [Language Support](https://cloud.google.com/speech-to-text/docs/languages) for a list of the currently supported language codes. If alternative languages are listed, recognition result will contain recognition in the most likely language detected including the main language_code. The recognition result will include the language tag of the language detected in the audio. Note: This feature is only supported for Voice Command and Voice Search use cases and performance may vary for other use cases (e.g., phone call transcription).
*/
alternativeLanguageCodes?: string[] | null;
/**
* The number of channels in the input audio data. ONLY set this for MULTI-CHANNEL recognition. Valid values for LINEAR16 and FLAC are `1`-`8`. Valid values for OGG_OPUS are '1'-'254'. Valid value for MULAW, AMR, AMR_WB and SPEEX_WITH_HEADER_BYTE is only `1`. If `0` or omitted, defaults to one channel (mono). Note: We only recognize the first channel by default. To perform independent recognition on each channel set `enable_separate_recognition_per_channel` to 'true'.

@@ -211,2 +215,6 @@ */

/**
* If `true`, the top result includes a list of words and the confidence for those words. If `false`, no word-level confidence information is returned. The default is `false`.
*/
enableWordConfidence?: boolean | null;
/**
* If `true`, the top result includes a list of words and the start and end time offsets (timestamps) for those words. If `false`, no word-level time offset information is returned. The default is `false`.

@@ -374,2 +382,6 @@ */

channelTag?: number | null;
/**
* Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.
*/
languageCode?: string | null;
}

@@ -409,2 +421,6 @@ /**

/**
* The confidence estimate between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. This field is set only for the top alternative of a non-streaming result or, of a streaming result where `is_final=true`. This field is not guaranteed to be accurate and users should not rely on it to be always provided. The default of 0.0 is a sentinel value indicating `confidence` was not set.
*/
confidence?: number | null;
/**
* Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word. This field is only set if `enable_word_time_offsets=true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.

@@ -411,0 +427,0 @@ */

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

this.googleServiceAccounts = new Resource$Googleserviceaccounts(this.context);
this.projects = new Resource$Projects(this.context);
this.transferJobs = new Resource$Transferjobs(this.context);

@@ -86,2 +87,170 @@ this.transferOperations = new Resource$Transferoperations(this.context);

storagetransfer_v1.Resource$Googleserviceaccounts = Resource$Googleserviceaccounts;
class Resource$Projects {
constructor(context) {
this.context = context;
this.agentPools = new Resource$Projects$Agentpools(this.context);
}
}
storagetransfer_v1.Resource$Projects = Resource$Projects;
class Resource$Projects$Agentpools {
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://storagetransfer.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/projects/{+projectId}/agentPools').replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
}, options),
params,
requiredParams: ['projectId'],
pathParams: ['projectId'],
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://storagetransfer.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://storagetransfer.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://storagetransfer.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/projects/{+projectId}/agentPools').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
}, options),
params,
requiredParams: ['projectId'],
pathParams: ['projectId'],
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://storagetransfer.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);
}
}
}
storagetransfer_v1.Resource$Projects$Agentpools = Resource$Projects$Agentpools;
class Resource$Transferjobs {

@@ -88,0 +257,0 @@ constructor(context) {

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

/**
* Required. A unique identifier for a photo.
* A unique identifier for a photo.
*/

@@ -673,3 +673,3 @@ id?: string | null;

* const res = await streetviewpublish.photo.update({
* // Required. A unique identifier for a photo.
* // A unique identifier for a photo.
* id: 'placeholder-value',

@@ -772,3 +772,3 @@ * // Required. Mask that identifies fields on the photo metadata to update. If not present, the old Photo metadata is entirely replaced with the new Photo metadata in this request. The update fails if invalid fields are specified. Multiple fields can be specified in a comma-delimited list. The following fields are valid: * `pose.heading` * `pose.latLngPair` * `pose.pitch` * `pose.roll` * `pose.level` * `pose.altitude` * `connections` * `places` *Note:* When updateMask contains repeated fields, the entire set of repeated values get replaced with the new contents. For example, if updateMask contains `connections` and `UpdatePhotoRequest.photo.connections` is empty, all connections are removed.

/**
* Required. A unique identifier for a photo.
* A unique identifier for a photo.
*/

@@ -775,0 +775,0 @@ id?: string;

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

/**
* Associates `members` with a `role`.
* Associates `members`, or principals, with a `role`.
*/
export interface Schema$GoogleIamV1Binding {
/**
* The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
* The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
*/
condition?: Schema$GoogleTypeExpr;
/**
* Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid\}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid\}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid\}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid\}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid\}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid\}` and the recovered group retains the role in the binding. * `domain:{domain\}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
* Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid\}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid\}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid\}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid\}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid\}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid\}` and the recovered group retains the role in the binding. * `domain:{domain\}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
*/
members?: string[] | null;
/**
* Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
* Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
*/

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

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

/**
* Associates `members` with a `role`.
* Associates `members`, or principals, with a `role`.
*/
export interface Schema$GoogleIamV1Binding {
/**
* The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
* The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
*/
condition?: Schema$GoogleTypeExpr;
/**
* Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid\}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid\}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid\}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid\}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid\}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid\}` and the recovered group retains the role in the binding. * `domain:{domain\}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
* Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid\}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid\}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid\}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid\}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid\}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid\}` and the recovered group retains the role in the binding. * `domain:{domain\}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
*/
members?: string[] | null;
/**
* Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
* Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
*/

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

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

context: APIRequestContext;
projects: Resource$Projects;
text: Resource$Text;

@@ -106,2 +107,11 @@ voices: Resource$Voices;

/**
* A request to import data.
*/
export interface Schema$ImportDataRequest {
/**
* Customer provide a Cloud Storage link which point to a .csv file which stores all the truth text and Cloud Storage link of audio data.
*/
csvCloudStorageUri?: string | null;
}
/**
* The message returned to the client by the `ListVoices` method.

@@ -116,2 +126,50 @@ */

/**
* This resource represents a long-running operation that is the result of a network API call.
*/
export interface Schema$Operation {
/**
* If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
*/
done?: boolean | null;
/**
* The error result of the operation in case of failure or cancellation.
*/
error?: Schema$Status;
/**
* Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
*/
metadata?: {
[key: string]: any;
} | null;
/**
* The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id\}`.
*/
name?: string | null;
/**
* The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*/
response?: {
[key: string]: any;
} | null;
}
/**
* The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
*/
export interface Schema$Status {
/**
* The status code, which should be an enum value of google.rpc.Code.
*/
code?: number | null;
/**
* A list of messages that carry the error details. There is a common set of message types for APIs to use.
*/
details?: Array<{
[key: string]: any;
}> | null;
/**
* A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
*/
message?: string | null;
}
/**
* Contains text input to be synthesized. Either `text` or `ssml` must be supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT. The input size is limited to 5000 characters.

@@ -193,2 +251,97 @@ */

}
export class Resource$Projects {
context: APIRequestContext;
locations: Resource$Projects$Locations;
constructor(context: APIRequestContext);
}
export class Resource$Projects$Locations {
context: APIRequestContext;
datasets: Resource$Projects$Locations$Datasets;
constructor(context: APIRequestContext);
}
export class Resource$Projects$Locations$Datasets {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* Imports audio+text data for training custom voice.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/texttospeech.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 texttospeech = google.texttospeech('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',
* 'https://www.googleapis.com/auth/dialogflow',
* ],
* });
*
* // 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 texttospeech.projects.locations.datasets.import({
* // The name of the Dataset resource. Format: `projects/{project\}/locations/{location\}/datasets/{dataset\}`
* name: 'projects/my-project/locations/my-location/datasets/my-dataset',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {
* // "csvCloudStorageUri": "my_csvCloudStorageUri"
* // }
* },
* });
* console.log(res.data);
*
* // Example response
* // {
* // "done": false,
* // "error": {},
* // "metadata": {},
* // "name": "my_name",
* // "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.
*/
import(params: Params$Resource$Projects$Locations$Datasets$Import, options: StreamMethodOptions): GaxiosPromise<Readable>;
import(params?: Params$Resource$Projects$Locations$Datasets$Import, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
import(params: Params$Resource$Projects$Locations$Datasets$Import, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
import(params: Params$Resource$Projects$Locations$Datasets$Import, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
import(params: Params$Resource$Projects$Locations$Datasets$Import, callback: BodyResponseCallback<Schema$Operation>): void;
import(callback: BodyResponseCallback<Schema$Operation>): void;
}
export interface Params$Resource$Projects$Locations$Datasets$Import extends StandardParameters {
/**
* The name of the Dataset resource. Format: `projects/{project\}/locations/{location\}/datasets/{dataset\}`
*/
name?: string;
/**
* Request body metadata
*/
requestBody?: Schema$ImportDataRequest;
}
export class Resource$Text {

@@ -195,0 +348,0 @@ context: APIRequestContext;

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

};
this.projects = new Resource$Projects(this.context);
this.text = new Resource$Text(this.context);

@@ -48,2 +49,53 @@ this.voices = new Resource$Voices(this.context);

texttospeech_v1.Texttospeech = Texttospeech;
class Resource$Projects {
constructor(context) {
this.context = context;
this.locations = new Resource$Projects$Locations(this.context);
}
}
texttospeech_v1.Resource$Projects = Resource$Projects;
class Resource$Projects$Locations {
constructor(context) {
this.context = context;
this.datasets = new Resource$Projects$Locations$Datasets(this.context);
}
}
texttospeech_v1.Resource$Projects$Locations = Resource$Projects$Locations;
class Resource$Projects$Locations$Datasets {
constructor(context) {
this.context = context;
}
import(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
}, options),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
googleapis_common_1.createAPIRequest(parameters, callback);
}
else {
return googleapis_common_1.createAPIRequest(parameters);
}
}
}
texttospeech_v1.Resource$Projects$Locations$Datasets = Resource$Projects$Locations$Datasets;
class Resource$Text {

@@ -50,0 +102,0 @@ constructor(context) {

@@ -105,2 +105,15 @@ /// <reference types="node" />

/**
* Description of the custom voice to be synthesized.
*/
export interface Schema$CustomVoiceParams {
/**
* Required. The name of the AutoML model that synthesizes the custom voice.
*/
model?: string | null;
/**
* Optional. The usage of the synthesized audio to be reported.
*/
reportedUsage?: string | null;
}
/**
* The message returned to the client by the `ListVoices` method.

@@ -204,2 +217,6 @@ */

/**
* The configuration for a custom voice. If [CustomVoiceParams.model] is set, the service will choose the custom voice matching the specified configuration.
*/
customVoice?: Schema$CustomVoiceParams;
/**
* Required. The language (and potentially also the region) of the voice expressed as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g. "en-US". This should not include a script tag (e.g. use "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred from the input provided in the SynthesisInput. The TTS service will use this parameter to help choose an appropriate voice. Note that the TTS service may choose a voice with a slightly different language code than the one selected; it may substitute a different region (e.g. using en-US rather than en-CA if there isn't a Canadian voice available), or even a different language, e.g. using "nb" (Norwegian Bokmal) instead of "no" (Norwegian)".

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

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

import { tpu_v1alpha1 } from './v1alpha1';
import { tpu_v2alpha1 } from './v2alpha1';
export declare const VERSIONS: {
v1: typeof tpu_v1.Tpu;
v1alpha1: typeof tpu_v1alpha1.Tpu;
v2alpha1: typeof tpu_v2alpha1.Tpu;
};

@@ -14,2 +16,4 @@ export declare function tpu(version: 'v1'): tpu_v1.Tpu;

export declare function tpu(options: tpu_v1alpha1.Options): tpu_v1alpha1.Tpu;
export declare function tpu(version: 'v2alpha1'): tpu_v2alpha1.Tpu;
export declare function tpu(options: tpu_v2alpha1.Options): tpu_v2alpha1.Tpu;
declare const auth: AuthPlus;

@@ -19,2 +23,3 @@ export { auth };

export { tpu_v1alpha1 };
export { tpu_v2alpha1 };
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.tpu_v1alpha1 = exports.tpu_v1 = exports.auth = exports.tpu = exports.VERSIONS = void 0;
exports.tpu_v2alpha1 = exports.tpu_v1alpha1 = exports.tpu_v1 = exports.auth = exports.tpu = exports.VERSIONS = void 0;
/*! THIS FILE IS AUTO-GENERATED */

@@ -23,5 +23,8 @@ const googleapis_common_1 = require("googleapis-common");

Object.defineProperty(exports, "tpu_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.tpu_v1alpha1; } });
const v2alpha1_1 = require("./v2alpha1");
Object.defineProperty(exports, "tpu_v2alpha1", { enumerable: true, get: function () { return v2alpha1_1.tpu_v2alpha1; } });
exports.VERSIONS = {
v1: v1_1.tpu_v1.Tpu,
v1alpha1: v1alpha1_1.tpu_v1alpha1.Tpu,
v2alpha1: v2alpha1_1.tpu_v2alpha1.Tpu,
};

@@ -28,0 +31,0 @@ function tpu(versionOrOptions) {

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

/**
* Human readable stack trace string.
* Human-readable stack trace string.
*/

@@ -160,3 +160,3 @@ context?: string | null;

/**
* The length in bytes of text in this character group, e.g. digits of a number, string length, or AST (abstract syntax tree) node.
* The number of bytes of source code making up this stack trace element.
*/

@@ -174,3 +174,3 @@ length?: string | null;

/**
* An array of Stack elements.
* An array of stack elements.
*/

@@ -184,3 +184,3 @@ elements?: Schema$StackTraceElement[];

/**
* The source position information of the stacktrace element.
* The source position information of the stack trace element.
*/

@@ -187,0 +187,0 @@ position?: Schema$Position;

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

/**
* Human readable stack trace string.
* Human-readable stack trace string.
*/

@@ -160,3 +160,3 @@ context?: string | null;

/**
* The length in bytes of text in this character group, e.g. digits of a number, string length, or AST (abstract syntax tree) node.
* The number of bytes of source code making up this stack trace element.
*/

@@ -174,3 +174,3 @@ length?: string | null;

/**
* An array of Stack elements.
* An array of stack elements.
*/

@@ -184,3 +184,3 @@ elements?: Schema$StackTraceElement[];

/**
* The source position information of the stacktrace element.
* The source position information of the stack trace element.
*/

@@ -187,0 +187,0 @@ position?: Schema$Position;

@@ -35,3 +35,3 @@ import { Schema } from 'googleapis-common';

generateAllAPIs(discoveryUrl: string, useCache: boolean): Promise<ChangeSet[]>;
generateIndex(metadata: Schema[]): Promise<void>;
generateIndex(metadata: Schema[], directory?: string): Promise<void>;
getPkgPathAndData(apisPath: string, file: string, desc: string, defaultVersion?: string): Promise<[string, PkgData]>;

@@ -42,3 +42,3 @@ /**

*/
generateAPI(apiDiscoveryUrl: string): Promise<void>;
generateAPI(apiDiscoveryUrl: string): Promise<string>;
private generate;

@@ -45,0 +45,0 @@ /**

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

}
async generateIndex(metadata) {
async generateIndex(metadata, directory) {
var _a;

@@ -140,2 +140,5 @@ const apis = {};

}
if (directory && file !== directory) {
continue;
}
apis[file] = {};

@@ -172,2 +175,5 @@ const files = await readDir(path.join(apisPath, file));

}
if (directory) {
return;
}
await this.render('index.njk', { apis }, indexPath);

@@ -201,6 +207,7 @@ await this.render('root-index.njk', { apis }, rootIndexPath);

const isUrl = apiDiscoveryUrl.startsWith('https://');
let filePath;
if (!isUrl) {
this.log(`Reading from file ${path.relative('.', apiDiscoveryUrl)}`);
const file = await readFile(apiDiscoveryUrl, 'utf-8');
await this.generate(apiDiscoveryUrl, JSON.parse(file));
filePath = await this.generate(apiDiscoveryUrl, JSON.parse(file));
}

@@ -210,4 +217,5 @@ else {

const res = await gaxios_1.request({ url: apiDiscoveryUrl });
await this.generate(apiDiscoveryUrl, res.data);
filePath = await this.generate(apiDiscoveryUrl, res.data);
}
return filePath;
}

@@ -286,8 +294,12 @@ async generate(apiDiscoveryUrl, schema) {

const useCache = argv['use-cache'];
const includePrivate = argv['include-private'];
console.log(`useCache: ${useCache}`);
const gen = new Generator({ debug: true, includePrivate: false });
console.log(`includePrivate: ${includePrivate}`);
const gen = new Generator({ debug: true, includePrivate });
if (!discoveryUrl && argv._.length > 0) {
argv._.forEach(async (url) => {
console.log(`Generating API for ${url}`);
await gen.generateAPI('' + url);
const filePath = await gen.generateAPI('' + url);
const filePathParts = filePath.split('/');
await gen.generateIndex([], filePathParts[filePathParts.length - 2]);
console.log('Generated API for ' + url);

@@ -294,0 +306,0 @@ });

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

export { container_v1beta1 } from './apis/container/v1beta1';
export { containeranalysis_v1 } from './apis/containeranalysis/v1';
export { containeranalysis_v1alpha1 } from './apis/containeranalysis/v1alpha1';

@@ -136,2 +137,3 @@ export { containeranalysis_v1beta1 } from './apis/containeranalysis/v1beta1';

export { datamigration_v1beta1 } from './apis/datamigration/v1beta1';
export { datapipelines_v1 } from './apis/datapipelines/v1';
export { dataproc_v1 } from './apis/dataproc/v1';

@@ -142,2 +144,3 @@ export { dataproc_v1beta2 } from './apis/dataproc/v1beta2';

export { datastore_v1beta3 } from './apis/datastore/v1beta3';
export { datastream_v1alpha1 } from './apis/datastream/v1alpha1';
export { deploymentmanager_alpha } from './apis/deploymentmanager/alpha';

@@ -167,2 +170,3 @@ export { deploymentmanager_v2 } from './apis/deploymentmanager/v2';

export { documentai_v1beta3 } from './apis/documentai/v1beta3';
export { domains_v1 } from './apis/domains/v1';
export { domains_v1alpha2 } from './apis/domains/v1alpha2';

@@ -367,2 +371,3 @@ export { domains_v1beta1 } from './apis/domains/v1beta1';

export { tpu_v1alpha1 } from './apis/tpu/v1alpha1';
export { tpu_v2alpha1 } from './apis/tpu/v2alpha1';
export { trafficdirector_v2 } from './apis/trafficdirector/v2';

@@ -369,0 +374,0 @@ export { transcoder_v1beta1 } from './apis/transcoder/v1beta1';

{
"name": "googleapis",
"version": "89.0.0",
"version": "90.0.0",
"repository": "googleapis/google-api-nodejs-client",

@@ -67,3 +67,3 @@ "license": "Apache-2.0",

"@types/ncp": "^2.0.1",
"@types/node": "^14.17.1",
"@types/node": "^16.0.0",
"@types/nunjucks": "^3.1.1",

@@ -97,3 +97,3 @@ "@types/prettier": "^2.0.0",

"server-destroy": "^1.0.1",
"sinon": "^11.0.0",
"sinon": "^12.0.0",
"tmp": "^0.2.0",

@@ -100,0 +100,0 @@ "typescript": "^3.8.3",

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Sorry, the diff of this file is too big 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