OsPolicyAssignmentArgs constructor
- Input<
String> ? description, - Input<
String> ? etag, - required Input<
OSPolicyAssignmentInstanceFilter> instanceFilter, - Input<
String> ? location, - Input<
String> ? name, - required Input<
List< osPolicies,OSPolicy> > - required Input<
String> osPolicyAssignmentId, - Input<
String> ? project, - required Input<
OSPolicyAssignmentRollout> rollout,
Creates a new OsPolicyAssignmentArgs.
description OS policy assignment description. Length of the description is limited to 1024 characters.
etag The etag for this OS policy assignment. If this is provided on update, it must match the server's etag.
instanceFilter Filter to select VMs.
location Optional.
name Resource name. Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id} This field is ignored when you create an OS policy assignment.
osPolicies List of OS policies to be applied to the VMs.
osPolicyAssignmentId 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.
project Optional.
rollout 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.
Implementation
const OsPolicyAssignmentArgs({
this.description,
this.etag,
required this.instanceFilter,
this.location,
this.name,
required this.osPolicies,
required this.osPolicyAssignmentId,
this.project,
required this.rollout,
});