View Source GoogleApi.OSConfig.V1.Model.OSPolicyResource (google_api_os_config v0.20.0)

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.


  • exec (type: GoogleApi.OSConfig.V1.Model.OSPolicyResourceExecResource.t, default: nil) - Exec resource
  • file (type: GoogleApi.OSConfig.V1.Model.OSPolicyResourceFileResource.t, default: nil) - File resource
  • id (type: String.t, default: nil) - 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 (type: GoogleApi.OSConfig.V1.Model.OSPolicyResourcePackageResource.t, default: nil) - Package resource
  • repository (type: GoogleApi.OSConfig.V1.Model.OSPolicyResourceRepositoryResource.t, default: nil) - Package repository resource

Link to this section Summary


Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this section Functions


decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.