class Google::Apis::OsconfigV1alpha::OsPolicyResourceFile
A remote or local file.
Attributes
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]
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]
Specifies a file available as a Cloud Storage Object. Corresponds to the JSON property `gcs` @return [Google::Apis::OsconfigV1alpha::OsPolicyResourceFileGcs]
A local path within the VM to use. Corresponds to the JSON property `localPath` @return [String]
Specifies a file available via some URI. Corresponds to the JSON property `remote` @return [Google::Apis::OsconfigV1alpha::OsPolicyResourceFileRemote]
Public Class Methods
# File lib/google/apis/osconfig_v1alpha/classes.rb, line 1643 def initialize(**args) update!(**args) end
Public Instance Methods
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