View Source GoogleApi.OSConfig.V1.Model.OSPolicyResourceFileResource (google_api_os_config v0.20.0)

A resource that manages the state of a file.

Attributes

  • content (type: String.t, default: nil) - A a file with this content. The size of the content is limited to 1024 characters.
  • file (type: GoogleApi.OSConfig.V1.Model.OSPolicyResourceFile.t, default: nil) - A remote or local source.
  • path (type: String.t, default: nil) - Required. The absolute path of the file within the VM.
  • permissions (type: String.t, default: nil) - 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
  • state (type: String.t, default: nil) - Required. Desired state of the file.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.OSConfig.V1.Model.OSPolicyResourceFileResource{
  content: String.t() | nil,
  file: GoogleApi.OSConfig.V1.Model.OSPolicyResourceFile.t() | nil,
  path: String.t() | nil,
  permissions: String.t() | nil,
  state: String.t() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.