OSPolicyResource class
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.
Constructors
-
OSPolicyResource({Input<
OSPolicyResourceExecResource> ? exec, Input<OSPolicyResourceFileResource> ? file, required Input<String> id, Input<OSPolicyResourcePackageResource> ? pkg, Input<OSPolicyResourceRepositoryResource> ? repository}) -
Creates a new OSPolicyResource.
execExec resourcefileFile resourceidThe 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.pkgPackage resourcerepositoryPackage repository resourceconst -
OSPolicyResource.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
exec
→ Input<
OSPolicyResourceExecResource> ? -
Exec resource
final
-
file
→ Input<
OSPolicyResourceFileResource> ? -
File resource
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
→ Input<
String> -
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.
final
-
pkg
→ Input<
OSPolicyResourcePackageResource> ? -
Package resource
final
-
repository
→ Input<
OSPolicyResourceRepositoryResource> ? -
Package repository resource
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited