Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::OSPolicy::Resource::File (v0.15.0)

Reference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::OSPolicy::Resource::File.

A remote or local file.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#allow_insecure

def allow_insecure() -> ::Boolean
Returns
  • (::Boolean) — 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.

#allow_insecure=

def allow_insecure=(value) -> ::Boolean
Parameter
  • value (::Boolean) — 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
  • (::Boolean) — 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.

#gcs

def gcs() -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File::Gcs
Returns

#gcs=

def gcs=(value) -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File::Gcs
Parameter
Returns

#local_path

def local_path() -> ::String
Returns
  • (::String) — A local path within the VM to use.

#local_path=

def local_path=(value) -> ::String
Parameter
  • value (::String) — A local path within the VM to use.
Returns
  • (::String) — A local path within the VM to use.

#remote

def remote() -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File::Remote

#remote=

def remote=(value) -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File::Remote
Parameter