class Google::Apis::OsconfigV1alpha::OsPolicyResourceFile

A remote or local file.

Attributes

allow_insecure[RW]

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. Corresponds to the JSON property `allowInsecure` @return [Boolean]

allow_insecure?[RW]

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. Corresponds to the JSON property `allowInsecure` @return [Boolean]

gcs[RW]

Specifies a file available as a Cloud Storage Object. Corresponds to the JSON property `gcs` @return [Google::Apis::OsconfigV1alpha::OsPolicyResourceFileGcs]

local_path[RW]

A local path within the VM to use. Corresponds to the JSON property `localPath` @return [String]

remote[RW]

Specifies a file available via some URI. Corresponds to the JSON property `remote` @return [Google::Apis::OsconfigV1alpha::OsPolicyResourceFileRemote]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/osconfig_v1alpha/classes.rb, line 1643
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/osconfig_v1alpha/classes.rb, line 1648
def update!(**args)
  @allow_insecure = args[:allow_insecure] if args.key?(:allow_insecure)
  @gcs = args[:gcs] if args.key?(:gcs)
  @local_path = args[:local_path] if args.key?(:local_path)
  @remote = args[:remote] if args.key?(:remote)
end