Updating NPM dependencies

This commit is contained in:
Drew Heavner
2020-11-11 13:30:52 +00:00
committed by GitHub
parent 7a6fb66c63
commit bd487ef324
9068 changed files with 1400893 additions and 587661 deletions

View File

@@ -8,3 +8,6 @@ export declare function manufacturers(version: 'v1'): manufacturers_v1.Manufactu
export declare function manufacturers(options: manufacturers_v1.Options): manufacturers_v1.Manufacturers;
declare const auth: AuthPlus;
export { auth };
export { manufacturers_v1 };
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
//# sourceMappingURL=index.d.ts.map

View File

@@ -1,5 +1,5 @@
"use strict";
// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
@@ -12,9 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.manufacturers_v1 = exports.auth = exports.manufacturers = exports.VERSIONS = void 0;
/*! THIS FILE IS AUTO-GENERATED */
const googleapis_common_1 = require("googleapis-common");
const v1_1 = require("./v1");
Object.defineProperty(exports, "manufacturers_v1", { enumerable: true, get: function () { return v1_1.manufacturers_v1; } });
exports.VERSIONS = {
v1: v1_1.manufacturers_v1.Manufacturers,
};
@@ -24,4 +26,6 @@ function manufacturers(versionOrOptions) {
exports.manufacturers = manufacturers;
const auth = new googleapis_common_1.AuthPlus();
exports.auth = auth;
var googleapis_common_2 = require("googleapis-common");
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
//# sourceMappingURL=index.js.map

View File

@@ -1,26 +1,15 @@
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
import { GaxiosPromise } from 'gaxios';
/// <reference types="node" />
import { OAuth2Client, JWT, Compute, UserRefreshClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
import { Readable } from 'stream';
export declare namespace manufacturers_v1 {
export interface Options extends GlobalOptions {
version: 'v1';
}
interface StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | GoogleAuth;
/**
* V1 error format.
*/
@@ -72,14 +61,10 @@ export declare namespace manufacturers_v1 {
* Public API for managing Manufacturer Center related data.
*
* @example
* ```js
* const {google} = require('googleapis');
* const manufacturers = google.manufacturers('v1');
*
* @namespace manufacturers
* @type {Function}
* @version v1
* @variation v1
* @param {object=} options Options for Manufacturers
* ```
*/
export class Manufacturers {
context: APIRequestContext;
@@ -195,7 +180,11 @@ export declare namespace manufacturers_v1 {
*/
releaseDate?: string | null;
/**
* The scent of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#scent.
* Rich product content. For more information, see https://support.google.com/manufacturers/answer/9389865
*/
richProductContent?: string[] | null;
/**
* The scent of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#scent.
*/
scent?: string | null;
/**
@@ -271,7 +260,7 @@ export declare namespace manufacturers_v1 {
status?: string | null;
}
/**
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} The JSON representation for `Empty` is empty JSON object `{\}`.
*/
export interface Schema$Empty {
}
@@ -390,11 +379,11 @@ export declare namespace manufacturers_v1 {
*/
issues?: Schema$Issue[];
/**
* Name in the format `{target_country}:{content_language}:{product_id}`. `target_country` - The target country of the product as a CLDR territory code (for example, US). `content_language` - The content language of the product as a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id.
* Name in the format `{target_country\}:{content_language\}:{product_id\}`. `target_country` - The target country of the product as a CLDR territory code (for example, US). `content_language` - The content language of the product as a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id.
*/
name?: string | null;
/**
* Parent ID in the format `accounts/{account_id}`. `account_id` - The ID of the Manufacturer Center account.
* Parent ID in the format `accounts/{account_id\}`. `account_id` - The ID of the Manufacturer Center account.
*/
parent?: string | null;
/**
@@ -432,115 +421,316 @@ export declare namespace manufacturers_v1 {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* manufacturers.accounts.products.delete
* @desc Deletes the product from a Manufacturer Center account.
* @alias manufacturers.accounts.products.delete
* @memberOf! ()
* Deletes the product from a Manufacturer Center account.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/manufacturers.googleapis.com
* // - Login into gcloud by running:
* // `$ gcloud auth application-default login`
* // - Install the npm module by running:
* // `$ npm install googleapis`
*
* @param {object} params Parameters for request
* @param {string} params.name Name in the format `{target_country}:{content_language}:{product_id}`. `target_country` - The target country of the product as a CLDR territory code (for example, US). `content_language` - The content language of the product as a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id.
* @param {string} params.parent Parent ID in the format `accounts/{account_id}`. `account_id` - The ID of the Manufacturer Center account.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
* const {google} = require('googleapis');
* const manufacturers = google.manufacturers('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/manufacturercenter'],
* });
*
* // 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 manufacturers.accounts.products.delete({
* // Name in the format `{target_country\}:{content_language\}:{product_id\}`. `target_country` - The target country of the product as a CLDR territory code (for example, US). `content_language` - The content language of the product as a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id.
* name: '[^/]+',
* // Parent ID in the format `accounts/{account_id\}`. `account_id` - The ID of the Manufacturer Center account.
* parent: 'accounts/my-account',
* });
* 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$Accounts$Products$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
delete(params?: Params$Resource$Accounts$Products$Delete, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
delete(params: Params$Resource$Accounts$Products$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
delete(params: Params$Resource$Accounts$Products$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
delete(params: Params$Resource$Accounts$Products$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
delete(callback: BodyResponseCallback<Schema$Empty>): void;
/**
* manufacturers.accounts.products.get
* @desc Gets the product from a Manufacturer Center account, including product issues. A recently updated product takes around 15 minutes to process. Changes are only visible after it has been processed. While some issues may be available once the product has been processed, other issues may take days to appear.
* @alias manufacturers.accounts.products.get
* @memberOf! ()
* Gets the product from a Manufacturer Center account, including product issues. A recently updated product takes around 15 minutes to process. Changes are only visible after it has been processed. While some issues may be available once the product has been processed, other issues may take days to appear.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/manufacturers.googleapis.com
* // - Login into gcloud by running:
* // `$ gcloud auth application-default login`
* // - Install the npm module by running:
* // `$ npm install googleapis`
*
* @param {object} params Parameters for request
* @param {string=} params.include The information to be included in the response. Only sections listed here will be returned.
* @param {string} params.name Name in the format `{target_country}:{content_language}:{product_id}`. `target_country` - The target country of the product as a CLDR territory code (for example, US). `content_language` - The content language of the product as a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id.
* @param {string} params.parent Parent ID in the format `accounts/{account_id}`. `account_id` - The ID of the Manufacturer Center account.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
* const {google} = require('googleapis');
* const manufacturers = google.manufacturers('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/manufacturercenter'],
* });
*
* // 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 manufacturers.accounts.products.get({
* // The information to be included in the response. Only sections listed here will be returned.
* include: 'placeholder-value',
* // Name in the format `{target_country\}:{content_language\}:{product_id\}`. `target_country` - The target country of the product as a CLDR territory code (for example, US). `content_language` - The content language of the product as a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id.
* name: '[^/]+',
* // Parent ID in the format `accounts/{account_id\}`. `account_id` - The ID of the Manufacturer Center account.
* parent: 'accounts/my-account',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "attributes": {},
* // "contentLanguage": "my_contentLanguage",
* // "destinationStatuses": [],
* // "issues": [],
* // "name": "my_name",
* // "parent": "my_parent",
* // "productId": "my_productId",
* // "targetCountry": "my_targetCountry"
* // }
* }
*
* main().catch(e => {
* console.error(e);
* throw e;
* });
*
* ```
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
get(params: Params$Resource$Accounts$Products$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
get(params?: Params$Resource$Accounts$Products$Get, options?: MethodOptions): GaxiosPromise<Schema$Product>;
get(params: Params$Resource$Accounts$Products$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
get(params: Params$Resource$Accounts$Products$Get, options: MethodOptions | BodyResponseCallback<Schema$Product>, callback: BodyResponseCallback<Schema$Product>): void;
get(params: Params$Resource$Accounts$Products$Get, callback: BodyResponseCallback<Schema$Product>): void;
get(callback: BodyResponseCallback<Schema$Product>): void;
/**
* manufacturers.accounts.products.list
* @desc Lists all the products in a Manufacturer Center account.
* @alias manufacturers.accounts.products.list
* @memberOf! ()
* Lists all the products in a Manufacturer Center account.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/manufacturers.googleapis.com
* // - Login into gcloud by running:
* // `$ gcloud auth application-default login`
* // - Install the npm module by running:
* // `$ npm install googleapis`
*
* @param {object} params Parameters for request
* @param {string=} params.include The information to be included in the response. Only sections listed here will be returned.
* @param {integer=} params.pageSize Maximum number of product statuses to return in the response, used for paging.
* @param {string=} params.pageToken The token returned by the previous request.
* @param {string} params.parent Parent ID in the format `accounts/{account_id}`. `account_id` - The ID of the Manufacturer Center account.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
* const {google} = require('googleapis');
* const manufacturers = google.manufacturers('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/manufacturercenter'],
* });
*
* // 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 manufacturers.accounts.products.list({
* // The information to be included in the response. Only sections listed here will be returned.
* include: 'placeholder-value',
* // Maximum number of product statuses to return in the response, used for paging.
* pageSize: 'placeholder-value',
* // The token returned by the previous request.
* pageToken: 'placeholder-value',
* // Parent ID in the format `accounts/{account_id\}`. `account_id` - The ID of the Manufacturer Center account.
* parent: 'accounts/my-account',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "nextPageToken": "my_nextPageToken",
* // "products": []
* // }
* }
*
* 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$Accounts$Products$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
list(params?: Params$Resource$Accounts$Products$List, options?: MethodOptions): GaxiosPromise<Schema$ListProductsResponse>;
list(params: Params$Resource$Accounts$Products$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
list(params: Params$Resource$Accounts$Products$List, options: MethodOptions | BodyResponseCallback<Schema$ListProductsResponse>, callback: BodyResponseCallback<Schema$ListProductsResponse>): void;
list(params: Params$Resource$Accounts$Products$List, callback: BodyResponseCallback<Schema$ListProductsResponse>): void;
list(callback: BodyResponseCallback<Schema$ListProductsResponse>): void;
/**
* manufacturers.accounts.products.update
* @desc Inserts or updates the attributes of the product in a Manufacturer Center account. Creates a product with the provided attributes. If the product already exists, then all attributes are replaced with the new ones. The checks at upload time are minimal. All required attributes need to be present for a product to be valid. Issues may show up later after the API has accepted a new upload for a product and it is possible to overwrite an existing valid product with an invalid product. To detect this, you should retrieve the product and check it for issues once the new version is available. Uploaded attributes first need to be processed before they can be retrieved. Until then, new products will be unavailable, and retrieval of previously uploaded products will return the original state of the product.
* @alias manufacturers.accounts.products.update
* @memberOf! ()
* Inserts or updates the attributes of the product in a Manufacturer Center account. Creates a product with the provided attributes. If the product already exists, then all attributes are replaced with the new ones. The checks at upload time are minimal. All required attributes need to be present for a product to be valid. Issues may show up later after the API has accepted a new upload for a product and it is possible to overwrite an existing valid product with an invalid product. To detect this, you should retrieve the product and check it for issues once the new version is available. Uploaded attributes first need to be processed before they can be retrieved. Until then, new products will be unavailable, and retrieval of previously uploaded products will return the original state of the product.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/manufacturers.googleapis.com
* // - Login into gcloud by running:
* // `$ gcloud auth application-default login`
* // - Install the npm module by running:
* // `$ npm install googleapis`
*
* @param {object} params Parameters for request
* @param {string} params.name Name in the format `{target_country}:{content_language}:{product_id}`. `target_country` - The target country of the product as a CLDR territory code (for example, US). `content_language` - The content language of the product as a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id.
* @param {string} params.parent Parent ID in the format `accounts/{account_id}`. `account_id` - The ID of the Manufacturer Center account.
* @param {().Attributes} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
* const {google} = require('googleapis');
* const manufacturers = google.manufacturers('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/manufacturercenter'],
* });
*
* // 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 manufacturers.accounts.products.update({
* // Name in the format `{target_country\}:{content_language\}:{product_id\}`. `target_country` - The target country of the product as a CLDR territory code (for example, US). `content_language` - The content language of the product as a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id.
* name: '[^/]+',
* // Parent ID in the format `accounts/{account_id\}`. `account_id` - The ID of the Manufacturer Center account.
* parent: 'accounts/my-account',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {
* // "additionalImageLink": [],
* // "ageGroup": "my_ageGroup",
* // "brand": "my_brand",
* // "capacity": {},
* // "color": "my_color",
* // "count": {},
* // "description": "my_description",
* // "disclosureDate": "my_disclosureDate",
* // "excludedDestination": [],
* // "featureDescription": [],
* // "flavor": "my_flavor",
* // "format": "my_format",
* // "gender": "my_gender",
* // "gtin": [],
* // "imageLink": {},
* // "includedDestination": [],
* // "itemGroupId": "my_itemGroupId",
* // "material": "my_material",
* // "mpn": "my_mpn",
* // "pattern": "my_pattern",
* // "productDetail": [],
* // "productLine": "my_productLine",
* // "productName": "my_productName",
* // "productPageUrl": "my_productPageUrl",
* // "productType": [],
* // "releaseDate": "my_releaseDate",
* // "richProductContent": [],
* // "scent": "my_scent",
* // "size": "my_size",
* // "sizeSystem": "my_sizeSystem",
* // "sizeType": "my_sizeType",
* // "suggestedRetailPrice": {},
* // "targetClientId": "my_targetClientId",
* // "theme": "my_theme",
* // "title": "my_title",
* // "videoLink": []
* // }
* },
* });
* 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.
*/
update(params: Params$Resource$Accounts$Products$Update, options: StreamMethodOptions): GaxiosPromise<Readable>;
update(params?: Params$Resource$Accounts$Products$Update, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
update(params: Params$Resource$Accounts$Products$Update, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
update(params: Params$Resource$Accounts$Products$Update, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
update(params: Params$Resource$Accounts$Products$Update, callback: BodyResponseCallback<Schema$Empty>): void;
update(callback: BodyResponseCallback<Schema$Empty>): void;
}
export interface Params$Resource$Accounts$Products$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name in the format `{target_country}:{content_language}:{product_id}`. `target_country` - The target country of the product as a CLDR territory code (for example, US). `content_language` - The content language of the product as a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id.
* Name in the format `{target_country\}:{content_language\}:{product_id\}`. `target_country` - The target country of the product as a CLDR territory code (for example, US). `content_language` - The content language of the product as a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id.
*/
name?: string;
/**
* Parent ID in the format `accounts/{account_id}`. `account_id` - The ID of the Manufacturer Center account.
* Parent ID in the format `accounts/{account_id\}`. `account_id` - The ID of the Manufacturer Center account.
*/
parent?: string;
}
export interface Params$Resource$Accounts$Products$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The information to be included in the response. Only sections listed here will be returned.
*/
include?: string[];
/**
* Name in the format `{target_country}:{content_language}:{product_id}`. `target_country` - The target country of the product as a CLDR territory code (for example, US). `content_language` - The content language of the product as a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id.
* Name in the format `{target_country\}:{content_language\}:{product_id\}`. `target_country` - The target country of the product as a CLDR territory code (for example, US). `content_language` - The content language of the product as a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id.
*/
name?: string;
/**
* Parent ID in the format `accounts/{account_id}`. `account_id` - The ID of the Manufacturer Center account.
* Parent ID in the format `accounts/{account_id\}`. `account_id` - The ID of the Manufacturer Center account.
*/
parent?: string;
}
export interface Params$Resource$Accounts$Products$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The information to be included in the response. Only sections listed here will be returned.
*/
@@ -554,21 +744,17 @@ export declare namespace manufacturers_v1 {
*/
pageToken?: string;
/**
* Parent ID in the format `accounts/{account_id}`. `account_id` - The ID of the Manufacturer Center account.
* Parent ID in the format `accounts/{account_id\}`. `account_id` - The ID of the Manufacturer Center account.
*/
parent?: string;
}
export interface Params$Resource$Accounts$Products$Update extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name in the format `{target_country}:{content_language}:{product_id}`. `target_country` - The target country of the product as a CLDR territory code (for example, US). `content_language` - The content language of the product as a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id.
* Name in the format `{target_country\}:{content_language\}:{product_id\}`. `target_country` - The target country of the product as a CLDR territory code (for example, US). `content_language` - The content language of the product as a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id.
*/
name?: string;
/**
* Parent ID in the format `accounts/{account_id}`. `account_id` - The ID of the Manufacturer Center account.
* Parent ID in the format `accounts/{account_id\}`. `account_id` - The ID of the Manufacturer Center account.
*/
parent?: string;
/**
@@ -578,3 +764,4 @@ export declare namespace manufacturers_v1 {
}
export {};
}
//# sourceMappingURL=v1.d.ts.map

View File

@@ -1,26 +1,25 @@
"use strict";
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Copyright 2020 Google LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.manufacturers_v1 = void 0;
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/class-name-casing */
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-empty-interface */
/* eslint-disable @typescript-eslint/no-namespace */
/* eslint-disable no-irregular-whitespace */
const googleapis_common_1 = require("googleapis-common");
// tslint:disable: no-any
// tslint:disable: class-name
// tslint:disable: variable-name
// tslint:disable: jsdoc-format
// tslint:disable: no-namespace
var manufacturers_v1;
(function (manufacturers_v1) {
/**
@@ -29,14 +28,10 @@ var manufacturers_v1;
* Public API for managing Manufacturer Center related data.
*
* @example
* ```js
* const {google} = require('googleapis');
* const manufacturers = google.manufacturers('v1');
*
* @namespace manufacturers
* @type {Function}
* @version v1
* @variation v1
* @param {object=} options Options for Manufacturers
* ```
*/
class Manufacturers {
constructor(options, google) {