class Google::Apis::OsconfigV1alpha::OsPolicyResourceFileResource
A resource that manages the state of a file.
Attributes
A a file with this content. The size of the content is limited to 1024 characters. Corresponds to the JSON property `content` @return [String]
A remote or local file. Corresponds to the JSON property `file` @return [Google::Apis::OsconfigV1alpha::OsPolicyResourceFile]
Required. The absolute path of the file within the VM. Corresponds to the JSON property `path` @return [String]
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4 Corresponds to the JSON property `permissions` @return [String]
Required. Desired state of the file. Corresponds to the JSON property `state` @return [String]
Public Class Methods
# File lib/google/apis/osconfig_v1alpha/classes.rb, line 1750 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/osconfig_v1alpha/classes.rb, line 1755 def update!(**args) @content = args[:content] if args.key?(:content) @file = args[:file] if args.key?(:file) @path = args[:path] if args.key?(:path) @permissions = args[:permissions] if args.key?(:permissions) @state = args[:state] if args.key?(:state) end