Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::OSPolicy::Resource::File (v1.6.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

defallow_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=

defallow_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

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

#gcs=

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

#local_path

deflocal_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=

deflocal_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

defremote()->::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File::Remote
Returns

#remote=

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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.