Reference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::OSPolicy::Resource::FileResource.
A resource that manages the state of a file.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#content
def content() -> ::String
-
(::String) — A a file with this content.
The size of the content is limited to 1024 characters.
Note: The following fields are mutually exclusive:
content
,file
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#content=
def content=(value) -> ::String
-
value (::String) — A a file with this content.
The size of the content is limited to 1024 characters.
Note: The following fields are mutually exclusive:
content
,file
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — A a file with this content.
The size of the content is limited to 1024 characters.
Note: The following fields are mutually exclusive:
content
,file
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#file
def file() -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File
-
(::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File) — A remote or local source.
Note: The following fields are mutually exclusive:
file
,content
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#file=
def file=(value) -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File
-
value (::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File) — A remote or local source.
Note: The following fields are mutually exclusive:
file
,content
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File) — A remote or local source.
Note: The following fields are mutually exclusive:
file
,content
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#path
def path() -> ::String
- (::String) — Required. The absolute path of the file within the VM.
#path=
def path=(value) -> ::String
- value (::String) — Required. The absolute path of the file within the VM.
- (::String) — Required. The absolute path of the file within the VM.
#permissions
def permissions() -> ::String
-
(::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
#permissions=
def permissions=(value) -> ::String
-
value (::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
-
(::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
#state
def state() -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::FileResource::DesiredState
- (::Google::Cloud::OsConfig::V1::OSPolicy::Resource::FileResource::DesiredState) — Required. Desired state of the file.
#state=
def state=(value) -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::FileResource::DesiredState
- value (::Google::Cloud::OsConfig::V1::OSPolicy::Resource::FileResource::DesiredState) — Required. Desired state of the file.
- (::Google::Cloud::OsConfig::V1::OSPolicy::Resource::FileResource::DesiredState) — Required. Desired state of the file.