Google Cloud OsConfig V1 Client - Class Gcs (2.0.0)

Reference documentation and code samples for the Google Cloud OsConfig V1 Client class Gcs.

Specifies a file available as a Cloud Storage Object.

Generated from protobuf message google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs

Namespace

Google \ Cloud \ OsConfig \ V1 \ OSPolicy \ Resource \ File

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ bucket string

Required. Bucket of the Cloud Storage object.

↳ object string

Required. Name of the Cloud Storage object.

↳ generation int|string

Generation number of the Cloud Storage object.

getBucket

Required. Bucket of the Cloud Storage object.

Returns
Type Description
string

setBucket

Required. Bucket of the Cloud Storage object.

Parameter
Name Description
var string
Returns
Type Description
$this

getObject

Required. Name of the Cloud Storage object.

Returns
Type Description
string

setObject

Required. Name of the Cloud Storage object.

Parameter
Name Description
var string
Returns
Type Description
$this

getGeneration

Generation number of the Cloud Storage object.

Returns
Type Description
int|string

setGeneration

Generation number of the Cloud Storage object.

Parameter
Name Description
var int|string
Returns
Type Description
$this