GetGuestPolicyResult class
Result data returned by getGuestPolicy.
Constructors
-
GetGuestPolicyResult({required AssignmentResponse assignment, required String createTime, required String description, required String etag, required String name, required List<
PackageRepositoryResponse> packageRepositories, required List<PackageResponse> packages, required List<SoftwareRecipeResponse> recipes, required String updateTime}) -
Creates a new GetGuestPolicyResult.
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.createTimeTime this guest policy was created.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.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.recipesA list of Recipes to install on the VM instance.updateTimeLast time this guest policy was updated.const -
GetGuestPolicyResult.fromMap(Map<
String, dynamic> map) -
factory
Properties
- assignment → AssignmentResponse
-
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
- createTime → String
-
Time this guest policy was created.
final
- description → String
-
Description of the guest policy. Length of the description is limited to 1024 characters.
final
- etag → String
-
The etag for this guest policy. If this is provided on update, it must match the server's etag.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Unique name of the resource in this project using one of the following forms:
projects/{project_number}/guestPolicies/{guest_policy_id}.final -
packageRepositories
→ List<
PackageRepositoryResponse> -
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
→ List<
PackageResponse> -
The software packages to be managed by this policy.
final
-
recipes
→ List<
SoftwareRecipeResponse> -
A list of Recipes to install on the VM instance.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updateTime → String
-
Last time this guest policy was updated.
final
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