An OS policy resource is used to define the desired state configuration and provides a specific functionality like installing/removing packages, executing a script etc.
The system ensures that resources are always in their desired state by taking necessary actions if they have drifted from their desired state.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#exec
def exec() -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::ExecResource
- (::Google::Cloud::OsConfig::V1::OSPolicy::Resource::ExecResource) — Exec resource
#exec=
def exec=(value) -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::ExecResource
- value (::Google::Cloud::OsConfig::V1::OSPolicy::Resource::ExecResource) — Exec resource
- (::Google::Cloud::OsConfig::V1::OSPolicy::Resource::ExecResource) — Exec resource
#file
def file() -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::FileResource
- (::Google::Cloud::OsConfig::V1::OSPolicy::Resource::FileResource) — File resource
#file=
def file=(value) -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::FileResource
- value (::Google::Cloud::OsConfig::V1::OSPolicy::Resource::FileResource) — File resource
- (::Google::Cloud::OsConfig::V1::OSPolicy::Resource::FileResource) — File resource
#id
def id() -> ::String
-
(::String) —
Required. The id of the resource with the following restrictions:
- Must contain only lowercase letters, numbers, and hyphens.
- Must start with a letter.
- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the OS policy.
#id=
def id=(value) -> ::String
-
value (::String) —
Required. The id of the resource with the following restrictions:
- Must contain only lowercase letters, numbers, and hyphens.
- Must start with a letter.
- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the OS policy.
-
(::String) —
Required. The id of the resource with the following restrictions:
- Must contain only lowercase letters, numbers, and hyphens.
- Must start with a letter.
- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the OS policy.
#pkg
def pkg() -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::PackageResource
- (::Google::Cloud::OsConfig::V1::OSPolicy::Resource::PackageResource) — Package resource
#pkg=
def pkg=(value) -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::PackageResource
- value (::Google::Cloud::OsConfig::V1::OSPolicy::Resource::PackageResource) — Package resource
- (::Google::Cloud::OsConfig::V1::OSPolicy::Resource::PackageResource) — Package resource
#repository
def repository() -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::RepositoryResource
- (::Google::Cloud::OsConfig::V1::OSPolicy::Resource::RepositoryResource) — Package repository resource
#repository=
def repository=(value) -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::RepositoryResource
- value (::Google::Cloud::OsConfig::V1::OSPolicy::Resource::RepositoryResource) — Package repository resource
- (::Google::Cloud::OsConfig::V1::OSPolicy::Resource::RepositoryResource) — Package repository resource