Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

OSPolicyResourceFileResource

import type { OSPolicyResourceFileResource } from "https://googleapis.deno.dev/v1/osconfig:v1.ts";

A resource that manages the state of a file.

interface OSPolicyResourceFileResource {
content?: string;
path?: string;
permissions?: string;
state?:
| "DESIRED_STATE_UNSPECIFIED"
| "PRESENT"
| "ABSENT"
| "CONTENTS_MATCH";
}

§Properties

§
content?: string
[src]

A a file with this content. The size of the content is limited to 32KiB.

§

A remote or local source.

§
path?: string
[src]

Required. The absolute path of the file within the VM.

§
permissions?: string
[src]

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?: "DESIRED_STATE_UNSPECIFIED" | "PRESENT" | "ABSENT" | "CONTENTS_MATCH"
[src]

Required. Desired state of the file.