"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. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Notification = exports.Iam = exports.HmacKey = exports.File = exports.Channel = exports.Bucket = exports.Storage = exports.RETRYABLE_ERR_FN_DEFAULT = exports.IdempotencyStrategy = exports.ApiError = void 0; /** * The `@google-cloud/storage` package has a single named export which is the * {@link Storage} (ES6) class, which should be instantiated with `new`. * * See {@link Storage} and {@link ClientConfig} for client methods and * configuration options. * * @module {Storage} @google-cloud/storage * @alias nodejs-storage * * @example * Install the client library with npm: * ``` * npm install --save @google-cloud/storage * ``` * * @example * Import the client library * ``` * const {Storage} = require('@google-cloud/storage'); * ``` * * @example * Create a client that uses Application * Default Credentials (ADC): * ``` * const storage = new Storage(); * ``` * * @example * Create a client with explicit * credentials: * ``` * const storage = new Storage({ projectId: * 'your-project-id', keyFilename: '/path/to/keyfile.json' * }); * ``` * * @example