Cloud OS Config V1alpha API - Class Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource (v0.8.0)

Reference documentation and code samples for the Cloud OS Config V1alpha API class Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource.

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::V1alpha::OSPolicy::Resource::ExecResource

#exec=

def exec=(value) -> ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::ExecResource

#file

def file() -> ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::FileResource

#file=

def file=(value) -> ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::FileResource

#id

def id() -> ::String
Returns
  • (::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
Parameter
  • 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.
Returns
  • (::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::V1alpha::OSPolicy::Resource::PackageResource

#pkg=

def pkg=(value) -> ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::PackageResource

#repository

def repository() -> ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource

#repository=

def repository=(value) -> ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource
Parameter