Google Cloud Appengine Admin V1 Client - Class FileInfo (1.3.4)

Reference documentation and code samples for the Google Cloud Appengine Admin V1 Client class FileInfo.

Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.

Generated from protobuf message google.appengine.v1.FileInfo

Namespace

Google \ Cloud \ AppEngine \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ source_url string

URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'.

↳ sha1_sum string

The SHA1 hash of the file, in hex.

↳ mime_type string

The MIME type of the file. Defaults to the value from Google Cloud Storage.

getSourceUrl

URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'.

Returns
Type Description
string

setSourceUrl

URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'.

Parameter
Name Description
var string
Returns
Type Description
$this

getSha1Sum

The SHA1 hash of the file, in hex.

Returns
Type Description
string

setSha1Sum

The SHA1 hash of the file, in hex.

Parameter
Name Description
var string
Returns
Type Description
$this

getMimeType

The MIME type of the file.

Defaults to the value from Google Cloud Storage.

Returns
Type Description
string

setMimeType

The MIME type of the file.

Defaults to the value from Google Cloud Storage.

Parameter
Name Description
var string
Returns
Type Description
$this