Google Cloud Functions V2 Client - Class StorageSource (1.4.2)

Reference documentation and code samples for the Google Cloud Functions V2 Client class StorageSource.

Location of the source in an archive file in Google Cloud Storage.

Generated from protobuf message google.cloud.functions.v2.StorageSource

Namespace

Google \ Cloud \ Functions \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ bucket string

Google Cloud Storage bucket containing the source (see Bucket Name Requirements).

↳ object string

Google Cloud Storage object containing the source. This object must be a gzipped archive file (.tar.gz) containing source to build.

↳ generation int|string

Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

getBucket

Google Cloud Storage bucket containing the source (see Bucket Name Requirements).

Returns
TypeDescription
string

setBucket

Google Cloud Storage bucket containing the source (see Bucket Name Requirements).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getObject

Google Cloud Storage object containing the source.

This object must be a gzipped archive file (.tar.gz) containing source to build.

Returns
TypeDescription
string

setObject

Google Cloud Storage object containing the source.

This object must be a gzipped archive file (.tar.gz) containing source to build.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGeneration

Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

Returns
TypeDescription
int|string

setGeneration

Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this