OSPolicyResourceFileResourceResponse class
A resource that manages the state of a file.
Constructors
-
OSPolicyResourceFileResourceResponse({required Input<
String> content, required Input<OSPolicyResourceFileResponse> file, required Input<String> path, required Input<String> permissions, required Input<String> state}) -
Creates a new OSPolicyResourceFileResourceResponse.
contentA a file with this content. The size of the content is limited to 32KiB.fileA remote or local source.pathThe absolute path of the file within the VM.permissionsConsists 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: 4stateDesired state of the file.const -
OSPolicyResourceFileResourceResponse.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
content
→ Input<
String> -
A a file with this content. The size of the content is limited to 32KiB.
final
-
file
→ Input<
OSPolicyResourceFileResponse> -
A remote or local source.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
path
→ Input<
String> -
The absolute path of the file within the VM.
final
-
permissions
→ Input<
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
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
state
→ Input<
String> -
Desired state of the file.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited