Class: Google::Cloud::OsConfig::V1::OSPolicy::Resource::FileResource
- Inherits:
-
Object
- Object
- Google::Cloud::OsConfig::V1::OSPolicy::Resource::FileResource
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/osconfig/v1/os_policy.rb
Overview
A resource that manages the state of a file.
Defined Under Namespace
Modules: DesiredState
Instance Attribute Summary collapse
-
#content ⇒ ::String
A a file with this content.
-
#file ⇒ ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File
A remote or local source.
-
#path ⇒ ::String
Required.
-
#permissions ⇒ ::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).
-
#state ⇒ ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::FileResource::DesiredState
Required.
Instance Attribute Details
#content ⇒ ::String
525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 |
# File 'proto_docs/google/cloud/osconfig/v1/os_policy.rb', line 525 class FileResource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Desired state of the file. module DesiredState # Unspecified is invalid. DESIRED_STATE_UNSPECIFIED = 0 # Ensure file at path is present. PRESENT = 1 # Ensure file at path is absent. ABSENT = 2 # Ensure the contents of the file at path matches. If the file does # not exist it will be created. CONTENTS_MATCH = 3 end end |
#file ⇒ ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File
525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 |
# File 'proto_docs/google/cloud/osconfig/v1/os_policy.rb', line 525 class FileResource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Desired state of the file. module DesiredState # Unspecified is invalid. DESIRED_STATE_UNSPECIFIED = 0 # Ensure file at path is present. PRESENT = 1 # Ensure file at path is absent. ABSENT = 2 # Ensure the contents of the file at path matches. If the file does # not exist it will be created. CONTENTS_MATCH = 3 end end |
#path ⇒ ::String
525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 |
# File 'proto_docs/google/cloud/osconfig/v1/os_policy.rb', line 525 class FileResource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Desired state of the file. module DesiredState # Unspecified is invalid. DESIRED_STATE_UNSPECIFIED = 0 # Ensure file at path is present. PRESENT = 1 # Ensure file at path is absent. ABSENT = 2 # Ensure the contents of the file at path matches. If the file does # not exist it will be created. CONTENTS_MATCH = 3 end end |
#permissions ⇒ ::String
525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 |
# File 'proto_docs/google/cloud/osconfig/v1/os_policy.rb', line 525 class FileResource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Desired state of the file. module DesiredState # Unspecified is invalid. DESIRED_STATE_UNSPECIFIED = 0 # Ensure file at path is present. PRESENT = 1 # Ensure file at path is absent. ABSENT = 2 # Ensure the contents of the file at path matches. If the file does # not exist it will be created. CONTENTS_MATCH = 3 end end |
#state ⇒ ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::FileResource::DesiredState
525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 |
# File 'proto_docs/google/cloud/osconfig/v1/os_policy.rb', line 525 class FileResource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Desired state of the file. module DesiredState # Unspecified is invalid. DESIRED_STATE_UNSPECIFIED = 0 # Ensure file at path is present. PRESENT = 1 # Ensure file at path is absent. ABSENT = 2 # Ensure the contents of the file at path matches. If the file does # not exist it will be created. CONTENTS_MATCH = 3 end end |