Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the Remediation class.
 /// </summary>
 /// <param name="policyAssignmentId">The resource ID of the policy
 /// assignment that should be remediated.</param>
 /// <param name="policyDefinitionReferenceId">The policy definition
 /// reference ID of the individual definition that should be
 /// remediated. Required when the policy assignment being remediated
 /// assigns a policy set definition.</param>
 /// <param name="provisioningState">The status of the
 /// remediation.</param>
 /// <param name="createdOn">The time at which the remediation was
 /// created.</param>
 /// <param name="lastUpdatedOn">The time at which the remediation was
 /// last updated.</param>
 /// <param name="filters">The filters that will be applied to determine
 /// which resources to remediate.</param>
 /// <param name="deploymentStatus">The deployment status summary for
 /// all deplyoments created by the remediation.</param>
 /// <param name="id">The ID of the remediation.</param>
 /// <param name="type">The type of the remediation.</param>
 /// <param name="name">The name of the remediation.</param>
 public Remediation(string policyAssignmentId = default(string), string policyDefinitionReferenceId = default(string), string provisioningState = default(string), System.DateTime?createdOn = default(System.DateTime?), System.DateTime?lastUpdatedOn = default(System.DateTime?), RemediationFilters filters = default(RemediationFilters), RemediationDeploymentSummary deploymentStatus = default(RemediationDeploymentSummary), string id = default(string), string type = default(string), string name = default(string))
 {
     PolicyAssignmentId          = policyAssignmentId;
     PolicyDefinitionReferenceId = policyDefinitionReferenceId;
     ProvisioningState           = provisioningState;
     CreatedOn        = createdOn;
     LastUpdatedOn    = lastUpdatedOn;
     Filters          = filters;
     DeploymentStatus = deploymentStatus;
     Id   = id;
     Type = type;
     Name = name;
     CustomInit();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the Remediation class.
 /// </summary>
 /// <param name="policyAssignmentId">The resource ID of the policy
 /// assignment that should be remediated.</param>
 /// <param name="policyDefinitionReferenceId">The policy definition
 /// reference ID of the individual definition that should be
 /// remediated. Required when the policy assignment being remediated
 /// assigns a policy set definition.</param>
 /// <param name="resourceDiscoveryMode">The way resources to remediate
 /// are discovered. Defaults to ExistingNonCompliant if not specified.
 /// Possible values include: 'ExistingNonCompliant',
 /// 'ReEvaluateCompliance'</param>
 /// <param name="provisioningState">The status of the
 /// remediation.</param>
 /// <param name="createdOn">The time at which the remediation was
 /// created.</param>
 /// <param name="lastUpdatedOn">The time at which the remediation was
 /// last updated.</param>
 /// <param name="filters">The filters that will be applied to determine
 /// which resources to remediate.</param>
 /// <param name="deploymentStatus">The deployment status summary for
 /// all deployments created by the remediation.</param>
 /// <param name="statusMessage">The remediation status message.
 /// Provides additional details regarding the state of the
 /// remediation.</param>
 /// <param name="correlationId">The remediation correlation Id. Can be
 /// used to find events related to the remediation in the activity
 /// log.</param>
 /// <param name="resourceCount">Determines the max number of resources
 /// that can be remediated by the remediation job. If not provided, the
 /// default resource count is used.</param>
 /// <param name="parallelDeployments">Determines how many resources to
 /// remediate at any given time. Can be used to increase or reduce the
 /// pace of the remediation. If not provided, the default parallel
 /// deployments value is used.</param>
 /// <param name="failureThreshold">The remediation failure threshold
 /// settings</param>
 /// <param name="id">The ID of the remediation.</param>
 /// <param name="type">The type of the remediation.</param>
 /// <param name="name">The name of the remediation.</param>
 /// <param name="systemData">Azure Resource Manager metadata containing
 /// createdBy and modifiedBy information.</param>
 public Remediation(string policyAssignmentId = default(string), string policyDefinitionReferenceId = default(string), string resourceDiscoveryMode = default(string), string provisioningState = default(string), System.DateTime?createdOn = default(System.DateTime?), System.DateTime?lastUpdatedOn = default(System.DateTime?), RemediationFilters filters = default(RemediationFilters), RemediationDeploymentSummary deploymentStatus = default(RemediationDeploymentSummary), string statusMessage = default(string), string correlationId = default(string), int?resourceCount = default(int?), int?parallelDeployments = default(int?), RemediationPropertiesFailureThreshold failureThreshold = default(RemediationPropertiesFailureThreshold), string id = default(string), string type = default(string), string name = default(string), SystemData systemData = default(SystemData))
 {
     PolicyAssignmentId          = policyAssignmentId;
     PolicyDefinitionReferenceId = policyDefinitionReferenceId;
     ResourceDiscoveryMode       = resourceDiscoveryMode;
     ProvisioningState           = provisioningState;
     CreatedOn           = createdOn;
     LastUpdatedOn       = lastUpdatedOn;
     Filters             = filters;
     DeploymentStatus    = deploymentStatus;
     StatusMessage       = statusMessage;
     CorrelationId       = correlationId;
     ResourceCount       = resourceCount;
     ParallelDeployments = parallelDeployments;
     FailureThreshold    = failureThreshold;
     Id         = id;
     Type       = type;
     Name       = name;
     SystemData = systemData;
     CustomInit();
 }