Class Upload (3.6.0)
Stay organized with collections
Save and categorize content based on your preferences.
Inheritance
Pumpify
>
Upload
Package
gcs-resumable-upload
Constructors
(constructor)(cfg)
constructor(cfg: UploadConfig);
Constructs a new instance of the Upload
class
Parameter
Properties
apiEndpoint
Property Value
authClient
authClient: {
request: <T = any>(opts: GaxiosOptions) => Promise<GaxiosResponse<T>> | GaxiosPromise<T>;
};
Property Value
Type | Description |
{
request: <T = any>(opts: GaxiosOptions) => Promise<GaxiosResponse<T>> | GaxiosPromise<T>;
} | |
authConfig
authConfig?: {
scopes?: string[];
};
Property Value
Type | Description |
{
scopes?: string[];
} | |
baseURI
Property Value
bucket
Property Value
cacheKey
Property Value
configStore
configStore: ConfigStore;
Property Value
Type | Description |
ConfigStore | |
contentLength
contentLength: number | '*';
Property Value
Type | Description |
number | '*' | |
customRequestOptions
customRequestOptions: GaxiosOptions;
Property Value
Type | Description |
GaxiosOptions | |
encryption
Property Value
file
Property Value
generation
Property Value
key
Property Value
Type | Description |
string | __global.Buffer | |
kmsKeyName
Property Value
maxRetryDelay
Property Value
maxRetryTotalTimeout
maxRetryTotalTimeout: number;
Property Value
metadata: ConfigMetadata;
Property Value
numBytesWritten
Property Value
numRetries
Property Value
offset
Property Value
origin
Property Value
params
Property Value
predefinedAcl
predefinedAcl?: PredefinedAcl;
Property Value
private
Property Value
public
Property Value
retryableErrorFn
retryableErrorFn?: (err: ApiError) => boolean;
Property Value
Type | Description |
(err: ApiError) => boolean | |
retryDelayMultiplier
retryDelayMultiplier: number;
Property Value
retryLimit
Property Value
timeOfFirstRequest
timeOfFirstRequest: number;
Property Value
uri
Property Value
uriProvidedManually
uriProvidedManually: boolean;
Property Value
userProject
Property Value
Methods
createURI()
createURI(): Promise<string>;
Returns
Type | Description |
Promise<string> | |
createURI(callback)
createURI(callback: CreateUriCallback): void;
Parameter
Returns
createURIAsync()
protected createURIAsync(): Promise<string>;
Returns
Type | Description |
Promise<string> | |
deleteConfig()
Returns
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-03-16 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]