OsPolicyAssignmentArgs

data class OsPolicyAssignmentArgs(val description: Output<String>? = null, val etag: Output<String>? = null, val instanceFilter: Output<OSPolicyAssignmentInstanceFilterArgs>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val osPolicies: Output<List<OSPolicyArgs>>? = null, val osPolicyAssignmentId: Output<String>? = null, val project: Output<String>? = null, val rollout: Output<OSPolicyAssignmentRolloutArgs>? = null) : ConvertibleToJava<OsPolicyAssignmentArgs>

Create an OS policy assignment. This method also creates the first revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. For more information, see Method: projects.locations.osPolicyAssignments.operations.cancel.

Constructors

Link copied to clipboard
fun OsPolicyAssignmentArgs(description: Output<String>? = null, etag: Output<String>? = null, instanceFilter: Output<OSPolicyAssignmentInstanceFilterArgs>? = null, location: Output<String>? = null, name: Output<String>? = null, osPolicies: Output<List<OSPolicyArgs>>? = null, osPolicyAssignmentId: Output<String>? = null, project: Output<String>? = null, rollout: Output<OSPolicyAssignmentRolloutArgs>? = null)

Functions

Link copied to clipboard
open override fun toJava(): OsPolicyAssignmentArgs

Properties

Link copied to clipboard
val description: Output<String>? = null

OS policy assignment description. Length of the description is limited to 1024 characters.

Link copied to clipboard
val etag: Output<String>? = null

The etag for this OS policy assignment. If this is provided on update, it must match the server's etag.

Link copied to clipboard

Filter to select VMs.

Link copied to clipboard
val location: Output<String>? = null
Link copied to clipboard
val name: Output<String>? = null

Resource name. Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id} This field is ignored when you create an OS policy assignment.

Link copied to clipboard
val osPolicies: Output<List<OSPolicyArgs>>? = null

List of OS policies to be applied to the VMs.

Link copied to clipboard
val osPolicyAssignmentId: Output<String>? = null

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.

Link copied to clipboard
val project: Output<String>? = null
Link copied to clipboard

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.