OsPolicyAssignmentArgs class
The set of arguments for OsPolicyAssignment. The set of arguments for OsPolicyAssignment.
Constructors
-
OsPolicyAssignmentArgs({Input<
String> ? description, Input<String> ? etag, required Input<OSPolicyAssignmentInstanceFilter> instanceFilter, Input<String> ? location, Input<String> ? name, required Input<List< osPolicies, required Input<OSPolicy> >String> osPolicyAssignmentId, Input<String> ? project, required Input<OSPolicyAssignmentRollout> rollout}) -
Creates a new OsPolicyAssignmentArgs.
descriptionOS policy assignment description. Length of the description is limited to 1024 characters.etagThe etag for this OS policy assignment. If this is provided on update, it must match the server's etag.instanceFilterFilter to select VMs.locationOptional.nameResource name. Format:projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id}This field is ignored when you create an OS policy assignment.osPoliciesList of OS policies to be applied to the VMs.osPolicyAssignmentIdRequired. The logical name of the OS policy assignment 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.projectOptional.rolloutRollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted.const -
OsPolicyAssignmentArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
description
→ Input<
String> ? -
OS policy assignment description. Length of the description is limited to 1024 characters.
final
-
etag
→ Input<
String> ? -
The etag for this OS policy assignment. If this is provided on update, it must match the server's etag.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
instanceFilter
→ Input<
OSPolicyAssignmentInstanceFilter> -
Filter to select VMs.
final
-
location
→ Input<
String> ? -
final
-
name
→ Input<
String> ? -
Resource name. Format:
projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id}This field is ignored when you create an OS policy assignment.final -
osPolicies
→ Input<
List< OSPolicy> > -
List of OS policies to be applied to the VMs.
final
-
osPolicyAssignmentId
→ Input<
String> -
Required. The logical name of the OS policy assignment 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
-
project
→ Input<
String> ? -
final
-
rollout
→ Input<
OSPolicyAssignmentRollout> -
Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted.
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