Class OSPolicyResource
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.
Implements
Inherited Members
Namespace: Google.Apis.OSConfig.v2beta.Data
Assembly: Google.Apis.OSConfig.v2beta.dll
Syntax
public class OSPolicyResource : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Exec
Exec resource
Declaration
[JsonProperty("exec")]
public virtual OSPolicyResourceExecResource Exec { get; set; }
Property Value
Type | Description |
---|---|
OSPolicyResourceExecResource |
File
File resource
Declaration
[JsonProperty("file")]
public virtual OSPolicyResourceFileResource File { get; set; }
Property Value
Type | Description |
---|---|
OSPolicyResourceFileResource |
Id
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.
Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
Type | Description |
---|---|
string |
Pkg
Package resource
Declaration
[JsonProperty("pkg")]
public virtual OSPolicyResourcePackageResource Pkg { get; set; }
Property Value
Type | Description |
---|---|
OSPolicyResourcePackageResource |
Repository
Package repository resource
Declaration
[JsonProperty("repository")]
public virtual OSPolicyResourceRepositoryResource Repository { get; set; }
Property Value
Type | Description |
---|---|
OSPolicyResourceRepositoryResource |