Framework/Models/ContinuousCompliance/AutomationAccount.ps1

Set-StrictMode -Version Latest 
enum ScheduleFrequency
{
    Hour
    Day
}

class AutomationAccount
{
    hidden [string] $Name
    hidden [string] $ResourceGroup 
    hidden [string] $Location
    hidden [string] $AzureADAppName
    hidden [Hashtable] $RGTags
    hidden [Hashtable] $AccountTags
}
class UserConfig
{
      hidden [string] $ResourceGroupNames
      hidden [OMSCredential] $OMSCredential
      hidden [string] $StorageAccountName
      hidden [string] $StorageAccountRG
}

class OMSCredential
{
    hidden [string] $OMSWorkspaceId
    hidden [string] $OMSSharedKey
}
class SelfSignedCertificate
{
     hidden [DateTime] $CertStartDate
     hidden [DateTime] $CertEndDate
     hidden [DateTime] $CredStartDate
     hidden [DateTime] $CredEndDate
     hidden [string] $Provider
     SelfSignedCertificate()
     {
        $this.CertStartDate = (Get-Date).AddDays(-1);
        $this.CertEndDate = (Get-Date).AddMonths(6).AddDays(1);          
        $this.CredStartDate = (Get-Date);
        $this.CredEndDate = (Get-Date).AddMonths(6);
        $this.Provider = "Microsoft Enhanced RSA and AES Cryptographic Provider"
     }
}

class Runbook
{
    hidden [string] $Name 
    hidden [string] $Type 
    hidden [string] $Description
    hidden [boolean] $LogProgress
    hidden [boolean] $LogVerbose 
    hidden [string] $Key
    #tags of dictionary type
}

class RunbookSchedule
{
    hidden [string] $Name
    hidden [string] $Frequency
    hidden [int] $Interval
    hidden [System.DateTime] $StartTime
    hidden [System.DateTime] $ExpiryTime
    hidden [string] $Description
    hidden [string[]] $LinkedRubooks
    hidden [string] $Key
}

class Variable
{
    hidden [string] $Name
    hidden [string] $Value
    hidden [boolean] $IsEncrypted
    hidden [string] $Description
}