File(mapping=None, *, ignore_unknown_fields=False, **kwargs)
A remote or local file. .. attribute:: remote
A generic remote file.
:type: google.cloud.osconfig_v1alpha.types.OSPolicy.Resource.File.Remote
Attributes | |
---|---|
Name | Description |
gcs |
google.cloud.osconfig_v1alpha.types.OSPolicy.Resource.File.Gcs
A Cloud Storage object. |
local_path |
str
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. |
Classes
Gcs
Gcs(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Specifies a file available as a Cloud Storage Object. .. attribute:: bucket
Required. Bucket of the Cloud Storage object.
:type: str
Remote
Remote(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Specifies a file available via some URI. .. attribute:: uri
Required. URI from which to fetch the object. It should
contain both the protocol and path following the format
{protocol}://{location}
.
:type: str