UNPKG

4.58 kBJavaScriptView Raw
1"use strict";
2// Copyright 2019 Google LLC
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16 if (k2 === undefined) k2 = k;
17 var desc = Object.getOwnPropertyDescriptor(m, k);
18 if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19 desc = { enumerable: true, get: function() { return m[k]; } };
20 }
21 Object.defineProperty(o, k2, desc);
22}) : (function(o, m, k, k2) {
23 if (k2 === undefined) k2 = k;
24 o[k2] = m[k];
25}));
26var __exportStar = (this && this.__exportStar) || function(m, exports) {
27 for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28};
29Object.defineProperty(exports, "__esModule", { value: true });
30exports.Notification = exports.Iam = exports.HmacKey = exports.File = exports.Channel = exports.Bucket = exports.Storage = exports.RETRYABLE_ERR_FN_DEFAULT = exports.IdempotencyStrategy = exports.ApiError = void 0;
31/**
32 * The `@google-cloud/storage` package has a single named export which is the
33 * {@link Storage} (ES6) class, which should be instantiated with `new`.
34 *
35 * See {@link Storage} and {@link ClientConfig} for client methods and
36 * configuration options.
37 *
38 * @module {Storage} @google-cloud/storage
39 * @alias nodejs-storage
40 *
41 * @example
42 * Install the client library with <a href="https://www.npmjs.com/">npm</a>:
43 * ```
44 * npm install --save @google-cloud/storage
45 * ```
46 *
47 * @example
48 * Import the client library
49 * ```
50 * const {Storage} = require('@google-cloud/storage');
51 * ```
52 *
53 * @example
54 * Create a client that uses <a
55 * href="https://cloud.google.com/docs/authentication/production#providing_credentials_to_your_application">Application
56 * Default Credentials (ADC)</a>:
57 * ```
58 * const storage = new Storage();
59 * ```
60 *
61 * @example
62 * Create a client with <a
63 * href="https://cloud.google.com/docs/authentication/production#obtaining_and_providing_service_account_credentials_manually">explicit
64 * credentials</a>:
65 * ```
66 * const storage = new Storage({ projectId:
67 * 'your-project-id', keyFilename: '/path/to/keyfile.json'
68 * });
69 * ```
70 *
71 * @example <caption>include:samples/quickstart.js</caption>
72 * region_tag:storage_quickstart
73 * Full quickstart example:
74 */
75var index_js_1 = require("./nodejs-common/index.js");
76Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return index_js_1.ApiError; } });
77var storage_js_1 = require("./storage.js");
78Object.defineProperty(exports, "IdempotencyStrategy", { enumerable: true, get: function () { return storage_js_1.IdempotencyStrategy; } });
79Object.defineProperty(exports, "RETRYABLE_ERR_FN_DEFAULT", { enumerable: true, get: function () { return storage_js_1.RETRYABLE_ERR_FN_DEFAULT; } });
80Object.defineProperty(exports, "Storage", { enumerable: true, get: function () { return storage_js_1.Storage; } });
81var bucket_js_1 = require("./bucket.js");
82Object.defineProperty(exports, "Bucket", { enumerable: true, get: function () { return bucket_js_1.Bucket; } });
83__exportStar(require("./crc32c.js"), exports);
84var channel_js_1 = require("./channel.js");
85Object.defineProperty(exports, "Channel", { enumerable: true, get: function () { return channel_js_1.Channel; } });
86var file_js_1 = require("./file.js");
87Object.defineProperty(exports, "File", { enumerable: true, get: function () { return file_js_1.File; } });
88__exportStar(require("./hash-stream-validator.js"), exports);
89var hmacKey_js_1 = require("./hmacKey.js");
90Object.defineProperty(exports, "HmacKey", { enumerable: true, get: function () { return hmacKey_js_1.HmacKey; } });
91var iam_js_1 = require("./iam.js");
92Object.defineProperty(exports, "Iam", { enumerable: true, get: function () { return iam_js_1.Iam; } });
93var notification_js_1 = require("./notification.js");
94Object.defineProperty(exports, "Notification", { enumerable: true, get: function () { return notification_js_1.Notification; } });
95__exportStar(require("./transfer-manager.js"), exports);