# Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::OSPolicy::Resource::File (v1.9.0)

1.9.0 (latest) 1.8.1 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.16.0 0.15.2 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.1 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**

- ([::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File::Gcs](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-OSPolicy-Resource-File-Gcs)) --- A Cloud Storage object.


  Note: The following fields are mutually exclusive: `gcs`, `remote`, `local_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #gcs=

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

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File::Gcs](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-OSPolicy-Resource-File-Gcs)) --- A Cloud Storage object.


  Note: The following fields are mutually exclusive: `gcs`, `remote`, `local_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File::Gcs](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-OSPolicy-Resource-File-Gcs)) --- A Cloud Storage object.


  Note: The following fields are mutually exclusive: `gcs`, `remote`, `local_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #local_path

    def local_path() -> ::String

**Returns**

- (::String) --- A local path within the VM to use.

  Note: The following fields are mutually exclusive: `local_path`, `remote`, `gcs`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #local_path=

    def local_path=(value) -> ::String

**Parameter**

- **value** (::String) --- A local path within the VM to use.


  Note: The following fields are mutually exclusive: `local_path`, `remote`, `gcs`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- A local path within the VM to use.

  Note: The following fields are mutually exclusive: `local_path`, `remote`, `gcs`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #remote

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

**Returns**

- ([::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File::Remote](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-OSPolicy-Resource-File-Remote)) --- A generic remote file.


  Note: The following fields are mutually exclusive: `remote`, `gcs`, `local_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #remote=

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

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File::Remote](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-OSPolicy-Resource-File-Remote)) --- A generic remote file.


  Note: The following fields are mutually exclusive: `remote`, `gcs`, `local_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File::Remote](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-OSPolicy-Resource-File-Remote)) --- A generic remote file.


  Note: The following fields are mutually exclusive: `remote`, `gcs`, `local_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.