// both cloud and local public AutomationCertificate(CertificateJson localJson, Microsoft.Azure.Management.Automation.Models.Certificate cloudCertificate) : base(localJson, cloudCertificate.Properties.LastModifiedTime.LocalDateTime) { this.setThumbprint(localJson.Thumbprint); this.setCertPath(localJson.CertPath); this.setPassword(localJson.Password); this.setExportable(localJson.Exportable); this.Encrypted = localJson.Encrypted; }
// local only - from json public AutomationCertificate(CertificateJson localJson) : base(localJson, null) { this.setThumbprint(localJson.Thumbprint); this.setCertPath(localJson.CertPath); this.setPassword(localJson.Password); this.setExportable(localJson.Exportable); this.Encrypted = localJson.Encrypted; }