Share via


Attestation Constructors

Definition

Overloads

Attestation()

Initializes a new instance of the Attestation class.

Attestation(String, String, String, String, String, String, Nullable<DateTime>, String, String, IList<AttestationEvidence>, String, Nullable<DateTime>, SystemData)

Initializes a new instance of the Attestation class.

Attestation()

Initializes a new instance of the Attestation class.

public Attestation ();
Public Sub New ()

Applies to

Attestation(String, String, String, String, String, String, Nullable<DateTime>, String, String, IList<AttestationEvidence>, String, Nullable<DateTime>, SystemData)

Initializes a new instance of the Attestation class.

public Attestation (string policyAssignmentId, string id = default, string name = default, string type = default, string policyDefinitionReferenceId = default, string complianceState = default, DateTime? expiresOn = default, string owner = default, string comments = default, System.Collections.Generic.IList<Microsoft.Azure.Management.PolicyInsights.Models.AttestationEvidence> evidence = default, string provisioningState = default, DateTime? lastComplianceStateChangeAt = default, Microsoft.Azure.Management.PolicyInsights.Models.SystemData systemData = default);
new Microsoft.Azure.Management.PolicyInsights.Models.Attestation : string * string * string * string * string * string * Nullable<DateTime> * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.PolicyInsights.Models.AttestationEvidence> * string * Nullable<DateTime> * Microsoft.Azure.Management.PolicyInsights.Models.SystemData -> Microsoft.Azure.Management.PolicyInsights.Models.Attestation
Public Sub New (policyAssignmentId As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional policyDefinitionReferenceId As String = Nothing, Optional complianceState As String = Nothing, Optional expiresOn As Nullable(Of DateTime) = Nothing, Optional owner As String = Nothing, Optional comments As String = Nothing, Optional evidence As IList(Of AttestationEvidence) = Nothing, Optional provisioningState As String = Nothing, Optional lastComplianceStateChangeAt As Nullable(Of DateTime) = Nothing, Optional systemData As SystemData = Nothing)

Parameters

policyAssignmentId
String

The resource ID of the policy assignment that the attestation is setting the state for.

id
String

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name
String

The name of the resource

type
String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

policyDefinitionReferenceId
String

The policy definition reference ID from a policy set definition that the attestation is setting the state for. If the policy assignment assigns a policy set definition the attestation can choose a definition within the set definition with this property or omit this and set the state for the entire set definition.

complianceState
String

The compliance state that should be set on the resource. Possible values include: 'Compliant', 'NonCompliant', 'Unknown'

expiresOn
Nullable<DateTime>

The time the compliance state should expire.

owner
String

The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID.

comments
String

Comments describing why this attestation was created.

evidence
IList<AttestationEvidence>

The evidence supporting the compliance state set in this attestation.

provisioningState
String

The status of the attestation.

lastComplianceStateChangeAt
Nullable<DateTime>

The time the compliance state was last changed in this attestation.

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Applies to