Google Cloud OsConfig V1 Client - Class File (1.1.1)

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

A remote or local file.

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

Namespace

Google \ Cloud \ OsConfig \ V1 \ OSPolicy \ Resource

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ remote Google\Cloud\OsConfig\V1\OSPolicy\Resource\File\Remote

A generic remote file.

↳ gcs Google\Cloud\OsConfig\V1\OSPolicy\Resource\File\Gcs

A Cloud Storage object.

↳ local_path string

A local path within the VM to use.

↳ allow_insecure bool

Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified.

getRemote

A generic remote file.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\OSPolicy\Resource\File\Remote|null

hasRemote

setRemote

A generic remote file.

Parameter
NameDescription
var Google\Cloud\OsConfig\V1\OSPolicy\Resource\File\Remote
Returns
TypeDescription
$this

getGcs

A Cloud Storage object.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\OSPolicy\Resource\File\Gcs|null

hasGcs

setGcs

A Cloud Storage object.

Parameter
NameDescription
var Google\Cloud\OsConfig\V1\OSPolicy\Resource\File\Gcs
Returns
TypeDescription
$this

getLocalPath

A local path within the VM to use.

Returns
TypeDescription
string

hasLocalPath

setLocalPath

A local path within the VM to use.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAllowInsecure

Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified.

Cloud Storage: An object generation number must be specified.

Returns
TypeDescription
bool

setAllowInsecure

Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified.

Cloud Storage: An object generation number must be specified.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getType

Returns
TypeDescription
string