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

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
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getSha1Sum

The SHA1 hash of the file, in hex.

Returns
TypeDescription
string

setSha1Sum

The SHA1 hash of the file, in hex.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMimeType

The MIME type of the file.

Defaults to the value from Google Cloud Storage.

Returns
TypeDescription
string

setMimeType

The MIME type of the file.

Defaults to the value from Google Cloud Storage.

Parameter
NameDescription
var string
Returns
TypeDescription
$this