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
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ remote
↳ gcs
↳ 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.
hasRemote
setRemote
A generic remote file.
$this
getGcs
A Cloud Storage object.
hasGcs
setGcs
A Cloud Storage object.
$this
getLocalPath
A local path within the VM to use.
string
hasLocalPath
setLocalPath
A local path within the VM to use.
var
string
$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.
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.
var
bool
$this
getType
string