Google Cloud Api Gateway V1 Client - Class File (1.1.1)

Reference documentation and code samples for the Google Cloud Api Gateway V1 Client class File.

A lightweight description of a file.

Generated from protobuf message google.cloud.apigateway.v1.ApiConfig.File

Namespace

Google \ Cloud \ ApiGateway \ V1 \ ApiConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ path string

The file path (full or relative path). This is typically the path of the file when it is uploaded.

↳ contents string

The bytes that constitute the file.

getPath

The file path (full or relative path). This is typically the path of the file when it is uploaded.

Returns
TypeDescription
string

setPath

The file path (full or relative path). This is typically the path of the file when it is uploaded.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getContents

The bytes that constitute the file.

Returns
TypeDescription
string

setContents

The bytes that constitute the file.

Parameter
NameDescription
var string
Returns
TypeDescription
$this