Google Cloud OsConfig V1 Client - Class Gcs (1.2.2)

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
NameDescription
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
TypeDescription
string

setBucket

Required. Bucket of the Cloud Storage object.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getObject

Required. Name of the Cloud Storage object.

Returns
TypeDescription
string

setObject

Required. Name of the Cloud Storage object.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGeneration

Generation number of the Cloud Storage object.

Returns
TypeDescription
int|string

setGeneration

Generation number of the Cloud Storage object.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this