GuestPolicyArgs class
The set of arguments for GuestPolicy. The set of arguments for GuestPolicy.
Constructors
-
GuestPolicyArgs({required Input<
Assignment> assignment, Input<String> ? description, Input<String> ? etag, required Input<String> guestPolicyId, Input<String> ? name, Input<List< ? packageRepositories, Input<PackageRepository> >List< ? packages, Input<Package> >String> ? project, Input<List< ? recipes})SoftwareRecipe> > -
Creates a new GuestPolicyArgs.
assignmentSpecifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or zones. If left empty, all VM instances underneath this policy are targeted. At the same level in the resource hierarchy (that is within a project), the service prevents the creation of multiple policies that conflict with each other. For more information, see how the service handles assignment conflicts.descriptionDescription of the guest policy. Length of the description is limited to 1024 characters.etagThe etag for this guest policy. If this is provided on update, it must match the server's etag.guestPolicyIdRequired. The logical name of the guest policy in the project 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 project.nameUnique name of the resource in this project using one of the following forms:projects/{project_number}/guestPolicies/{guest_policy_id}.packageRepositoriesA list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.packagesThe software packages to be managed by this policy.projectOptional.recipesA list of Recipes to install on the VM instance.const -
GuestPolicyArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
assignment
→ Input<
Assignment> -
Specifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or zones. If left empty, all VM instances underneath this policy are targeted. At the same level in the resource hierarchy (that is within a project), the service prevents the creation of multiple policies that conflict with each other. For more information, see how the service handles assignment conflicts.
final
-
description
→ Input<
String> ? -
Description of the guest policy. Length of the description is limited to 1024 characters.
final
-
etag
→ Input<
String> ? -
The etag for this guest policy. If this is provided on update, it must match the server's etag.
final
-
guestPolicyId
→ Input<
String> -
Required. The logical name of the guest policy in the project 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 project.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
name
→ Input<
String> ? -
Unique name of the resource in this project using one of the following forms:
projects/{project_number}/guestPolicies/{guest_policy_id}.final -
packageRepositories
→ Input<
List< ?PackageRepository> > -
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
final
-
packages
→ Input<
List< ?Package> > -
The software packages to be managed by this policy.
final
-
project
→ Input<
String> ? -
final
-
recipes
→ Input<
List< ?SoftwareRecipe> > -
A list of Recipes to install on the VM instance.
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