diff --git a/sdk/dotnet/ApiManagement/Certificate.cs b/sdk/dotnet/ApiManagement/Certificate.cs index de9836aa74..6ddd236091 100644 --- a/sdk/dotnet/ApiManagement/Certificate.cs +++ b/sdk/dotnet/ApiManagement/Certificate.cs @@ -23,9 +23,11 @@ namespace Pulumi.Azure.ApiManagement /// using Pulumi; /// using Azure = Pulumi.Azure; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { @@ -62,9 +64,11 @@ namespace Pulumi.Azure.ApiManagement /// using Pulumi; /// using Azure = Pulumi.Azure; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { diff --git a/sdk/dotnet/ApiManagement/GatewayCertificateAuthority.cs b/sdk/dotnet/ApiManagement/GatewayCertificateAuthority.cs index 85e5bcd3b4..5096d5552d 100644 --- a/sdk/dotnet/ApiManagement/GatewayCertificateAuthority.cs +++ b/sdk/dotnet/ApiManagement/GatewayCertificateAuthority.cs @@ -22,9 +22,11 @@ namespace Pulumi.Azure.ApiManagement /// using Pulumi; /// using Azure = Pulumi.Azure; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { diff --git a/sdk/dotnet/ApiManagement/GatewayHostNameConfiguration.cs b/sdk/dotnet/ApiManagement/GatewayHostNameConfiguration.cs index 2b506183d5..ce61dba2ab 100644 --- a/sdk/dotnet/ApiManagement/GatewayHostNameConfiguration.cs +++ b/sdk/dotnet/ApiManagement/GatewayHostNameConfiguration.cs @@ -22,9 +22,11 @@ namespace Pulumi.Azure.ApiManagement /// using Pulumi; /// using Azure = Pulumi.Azure; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { diff --git a/sdk/dotnet/AppService/Certificate.cs b/sdk/dotnet/AppService/Certificate.cs index 33c24f6f50..20f76bba7b 100644 --- a/sdk/dotnet/AppService/Certificate.cs +++ b/sdk/dotnet/AppService/Certificate.cs @@ -24,9 +24,11 @@ namespace Pulumi.Azure.AppService /// using Pulumi; /// using Azure = Pulumi.Azure; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { diff --git a/sdk/dotnet/AppService/PublicCertificate.cs b/sdk/dotnet/AppService/PublicCertificate.cs index 345b96bfc9..6d1fc9b3f3 100644 --- a/sdk/dotnet/AppService/PublicCertificate.cs +++ b/sdk/dotnet/AppService/PublicCertificate.cs @@ -22,9 +22,11 @@ namespace Pulumi.Azure.AppService /// using Pulumi; /// using Azure = Pulumi.Azure; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { diff --git a/sdk/dotnet/ArcKubernetes/ClusterExtension.cs b/sdk/dotnet/ArcKubernetes/ClusterExtension.cs index 00ca19b4dd..ad2d591e52 100644 --- a/sdk/dotnet/ArcKubernetes/ClusterExtension.cs +++ b/sdk/dotnet/ArcKubernetes/ClusterExtension.cs @@ -22,9 +22,11 @@ namespace Pulumi.Azure.ArcKubernetes /// using Pulumi; /// using Azure = Pulumi.Azure; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { diff --git a/sdk/dotnet/ArcKubernetes/FluxConfiguration.cs b/sdk/dotnet/ArcKubernetes/FluxConfiguration.cs index 4beb7b411a..0ec0c12132 100644 --- a/sdk/dotnet/ArcKubernetes/FluxConfiguration.cs +++ b/sdk/dotnet/ArcKubernetes/FluxConfiguration.cs @@ -22,9 +22,11 @@ namespace Pulumi.Azure.ArcKubernetes /// using Pulumi; /// using Azure = Pulumi.Azure; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { diff --git a/sdk/dotnet/Automation/Certificate.cs b/sdk/dotnet/Automation/Certificate.cs index 08d3f7d96d..0219d34cfc 100644 --- a/sdk/dotnet/Automation/Certificate.cs +++ b/sdk/dotnet/Automation/Certificate.cs @@ -22,9 +22,11 @@ namespace Pulumi.Azure.Automation /// using Pulumi; /// using Azure = Pulumi.Azure; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { diff --git a/sdk/dotnet/Automation/ConnectionCertificate.cs b/sdk/dotnet/Automation/ConnectionCertificate.cs index 2bc32c1b82..f626b35720 100644 --- a/sdk/dotnet/Automation/ConnectionCertificate.cs +++ b/sdk/dotnet/Automation/ConnectionCertificate.cs @@ -22,9 +22,11 @@ namespace Pulumi.Azure.Automation /// using Pulumi; /// using Azure = Pulumi.Azure; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { diff --git a/sdk/dotnet/Batch/Certificate.cs b/sdk/dotnet/Batch/Certificate.cs index b83dbe54c2..55bb64915d 100644 --- a/sdk/dotnet/Batch/Certificate.cs +++ b/sdk/dotnet/Batch/Certificate.cs @@ -22,9 +22,11 @@ namespace Pulumi.Azure.Batch /// using Pulumi; /// using Azure = Pulumi.Azure; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { diff --git a/sdk/dotnet/Batch/Pool.cs b/sdk/dotnet/Batch/Pool.cs index 83755fe086..90d0e1e65a 100644 --- a/sdk/dotnet/Batch/Pool.cs +++ b/sdk/dotnet/Batch/Pool.cs @@ -22,9 +22,11 @@ namespace Pulumi.Azure.Batch /// using Pulumi; /// using Azure = Pulumi.Azure; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { diff --git a/sdk/dotnet/Cdn/FrontdoorSecret.cs b/sdk/dotnet/Cdn/FrontdoorSecret.cs index 5064331641..98800eb64b 100644 --- a/sdk/dotnet/Cdn/FrontdoorSecret.cs +++ b/sdk/dotnet/Cdn/FrontdoorSecret.cs @@ -23,9 +23,11 @@ namespace Pulumi.Azure.Cdn /// using Azure = Pulumi.Azure; /// using AzureAD = Pulumi.AzureAD; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { diff --git a/sdk/dotnet/Iot/Certificate.cs b/sdk/dotnet/Iot/Certificate.cs index b5f705214e..e3c6a72136 100644 --- a/sdk/dotnet/Iot/Certificate.cs +++ b/sdk/dotnet/Iot/Certificate.cs @@ -22,9 +22,11 @@ namespace Pulumi.Azure.Iot /// using Pulumi; /// using Azure = Pulumi.Azure; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { diff --git a/sdk/dotnet/Iot/IotHubCertificate.cs b/sdk/dotnet/Iot/IotHubCertificate.cs index 6f81d6f8a8..e8b5c93722 100644 --- a/sdk/dotnet/Iot/IotHubCertificate.cs +++ b/sdk/dotnet/Iot/IotHubCertificate.cs @@ -22,9 +22,11 @@ namespace Pulumi.Azure.Iot /// using Pulumi; /// using Azure = Pulumi.Azure; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { diff --git a/sdk/dotnet/KeyVault/Certifiate.cs b/sdk/dotnet/KeyVault/Certifiate.cs index b84804f1f0..806b556a52 100644 --- a/sdk/dotnet/KeyVault/Certifiate.cs +++ b/sdk/dotnet/KeyVault/Certifiate.cs @@ -30,9 +30,11 @@ namespace Pulumi.Azure.KeyVault /// using Pulumi; /// using Azure = Pulumi.Azure; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { diff --git a/sdk/dotnet/KeyVault/Certificate.cs b/sdk/dotnet/KeyVault/Certificate.cs index 9df3727270..73d0bb3c67 100644 --- a/sdk/dotnet/KeyVault/Certificate.cs +++ b/sdk/dotnet/KeyVault/Certificate.cs @@ -30,9 +30,11 @@ namespace Pulumi.Azure.KeyVault /// using Pulumi; /// using Azure = Pulumi.Azure; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { diff --git a/sdk/dotnet/LogicApps/IntegrationAccountAssembly.cs b/sdk/dotnet/LogicApps/IntegrationAccountAssembly.cs index a27fa292a6..92cb33ad51 100644 --- a/sdk/dotnet/LogicApps/IntegrationAccountAssembly.cs +++ b/sdk/dotnet/LogicApps/IntegrationAccountAssembly.cs @@ -22,9 +22,11 @@ namespace Pulumi.Azure.LogicApps /// using Pulumi; /// using Azure = Pulumi.Azure; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { diff --git a/sdk/dotnet/Nginx/Certificate.cs b/sdk/dotnet/Nginx/Certificate.cs index 87a4fd0c1d..9c5583f677 100644 --- a/sdk/dotnet/Nginx/Certificate.cs +++ b/sdk/dotnet/Nginx/Certificate.cs @@ -22,9 +22,11 @@ namespace Pulumi.Azure.Nginx /// using Pulumi; /// using Azure = Pulumi.Azure; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { diff --git a/sdk/dotnet/SignalR/ServiceCustomCertificate.cs b/sdk/dotnet/SignalR/ServiceCustomCertificate.cs index 5dce71d409..19febcfaeb 100644 --- a/sdk/dotnet/SignalR/ServiceCustomCertificate.cs +++ b/sdk/dotnet/SignalR/ServiceCustomCertificate.cs @@ -22,9 +22,11 @@ namespace Pulumi.Azure.SignalR /// using Pulumi; /// using Azure = Pulumi.Azure; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { diff --git a/sdk/dotnet/SignalR/ServiceCustomDomain.cs b/sdk/dotnet/SignalR/ServiceCustomDomain.cs index 7496fdfd81..83b0702a51 100644 --- a/sdk/dotnet/SignalR/ServiceCustomDomain.cs +++ b/sdk/dotnet/SignalR/ServiceCustomDomain.cs @@ -22,9 +22,11 @@ namespace Pulumi.Azure.SignalR /// using Pulumi; /// using Azure = Pulumi.Azure; /// - /// private static string ReadFileBase64(string path) { - /// return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path))); - /// } + /// + /// string ReadFileBase64(string path) + /// { + /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))); + /// } /// /// return await Deployment.RunAsync(() => /// { diff --git a/sdk/go/azure/apimanagement/certificate.go b/sdk/go/azure/apimanagement/certificate.go index 8fd57adc8b..8a44150b34 100644 --- a/sdk/go/azure/apimanagement/certificate.go +++ b/sdk/go/azure/apimanagement/certificate.go @@ -31,9 +31,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } @@ -87,9 +87,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } diff --git a/sdk/go/azure/apimanagement/gatewayCertificateAuthority.go b/sdk/go/azure/apimanagement/gatewayCertificateAuthority.go index 5223664676..c1c9ad5238 100644 --- a/sdk/go/azure/apimanagement/gatewayCertificateAuthority.go +++ b/sdk/go/azure/apimanagement/gatewayCertificateAuthority.go @@ -30,9 +30,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } diff --git a/sdk/go/azure/apimanagement/gatewayHostNameConfiguration.go b/sdk/go/azure/apimanagement/gatewayHostNameConfiguration.go index 4cc188ad26..109bc0e5bf 100644 --- a/sdk/go/azure/apimanagement/gatewayHostNameConfiguration.go +++ b/sdk/go/azure/apimanagement/gatewayHostNameConfiguration.go @@ -30,9 +30,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } diff --git a/sdk/go/azure/appservice/certificate.go b/sdk/go/azure/appservice/certificate.go index 151e149be8..19db2d5e54 100644 --- a/sdk/go/azure/appservice/certificate.go +++ b/sdk/go/azure/appservice/certificate.go @@ -32,9 +32,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } diff --git a/sdk/go/azure/appservice/publicCertificate.go b/sdk/go/azure/appservice/publicCertificate.go index 44fba8a007..f5a4a76fe3 100644 --- a/sdk/go/azure/appservice/publicCertificate.go +++ b/sdk/go/azure/appservice/publicCertificate.go @@ -30,9 +30,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } diff --git a/sdk/go/azure/arckubernetes/clusterExtension.go b/sdk/go/azure/arckubernetes/clusterExtension.go index d77a46ab60..cfc9d0edae 100644 --- a/sdk/go/azure/arckubernetes/clusterExtension.go +++ b/sdk/go/azure/arckubernetes/clusterExtension.go @@ -30,9 +30,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } diff --git a/sdk/go/azure/arckubernetes/fluxConfiguration.go b/sdk/go/azure/arckubernetes/fluxConfiguration.go index c7d747b6e7..f7f9d4c224 100644 --- a/sdk/go/azure/arckubernetes/fluxConfiguration.go +++ b/sdk/go/azure/arckubernetes/fluxConfiguration.go @@ -30,9 +30,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } diff --git a/sdk/go/azure/automation/certificate.go b/sdk/go/azure/automation/certificate.go index 3fa78ca207..f967df9182 100644 --- a/sdk/go/azure/automation/certificate.go +++ b/sdk/go/azure/automation/certificate.go @@ -30,9 +30,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } diff --git a/sdk/go/azure/automation/connectionCertificate.go b/sdk/go/azure/automation/connectionCertificate.go index eb9f9d26ea..c85b9f5323 100644 --- a/sdk/go/azure/automation/connectionCertificate.go +++ b/sdk/go/azure/automation/connectionCertificate.go @@ -30,9 +30,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } diff --git a/sdk/go/azure/batch/certificate.go b/sdk/go/azure/batch/certificate.go index 04a89c472e..598b6f3174 100644 --- a/sdk/go/azure/batch/certificate.go +++ b/sdk/go/azure/batch/certificate.go @@ -31,9 +31,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } diff --git a/sdk/go/azure/batch/pool.go b/sdk/go/azure/batch/pool.go index 2f5d2c01cf..841d478825 100644 --- a/sdk/go/azure/batch/pool.go +++ b/sdk/go/azure/batch/pool.go @@ -31,9 +31,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } diff --git a/sdk/go/azure/cdn/frontdoorSecret.go b/sdk/go/azure/cdn/frontdoorSecret.go index cda81d3323..f24cfec6d6 100644 --- a/sdk/go/azure/cdn/frontdoorSecret.go +++ b/sdk/go/azure/cdn/frontdoorSecret.go @@ -32,9 +32,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } diff --git a/sdk/go/azure/iot/certificate.go b/sdk/go/azure/iot/certificate.go index b904ff30bf..a31e56f3a6 100644 --- a/sdk/go/azure/iot/certificate.go +++ b/sdk/go/azure/iot/certificate.go @@ -30,9 +30,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } diff --git a/sdk/go/azure/iot/iotHubCertificate.go b/sdk/go/azure/iot/iotHubCertificate.go index c26f068b3f..02c6e59eec 100644 --- a/sdk/go/azure/iot/iotHubCertificate.go +++ b/sdk/go/azure/iot/iotHubCertificate.go @@ -30,9 +30,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } diff --git a/sdk/go/azure/keyvault/certifiate.go b/sdk/go/azure/keyvault/certifiate.go index cd562c81d7..55d360ec27 100644 --- a/sdk/go/azure/keyvault/certifiate.go +++ b/sdk/go/azure/keyvault/certifiate.go @@ -38,9 +38,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } diff --git a/sdk/go/azure/keyvault/certificate.go b/sdk/go/azure/keyvault/certificate.go index aa0c4f8e5d..a73c6cb175 100644 --- a/sdk/go/azure/keyvault/certificate.go +++ b/sdk/go/azure/keyvault/certificate.go @@ -38,9 +38,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } diff --git a/sdk/go/azure/logicapps/integrationAccountAssembly.go b/sdk/go/azure/logicapps/integrationAccountAssembly.go index 612d939db9..6a35309143 100644 --- a/sdk/go/azure/logicapps/integrationAccountAssembly.go +++ b/sdk/go/azure/logicapps/integrationAccountAssembly.go @@ -30,9 +30,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } diff --git a/sdk/go/azure/nginx/certificate.go b/sdk/go/azure/nginx/certificate.go index 31821d6767..6c87e83cc6 100644 --- a/sdk/go/azure/nginx/certificate.go +++ b/sdk/go/azure/nginx/certificate.go @@ -32,9 +32,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } diff --git a/sdk/go/azure/signalr/serviceCustomCertificate.go b/sdk/go/azure/signalr/serviceCustomCertificate.go index 9ffd016f31..0ea7a5c4a2 100644 --- a/sdk/go/azure/signalr/serviceCustomCertificate.go +++ b/sdk/go/azure/signalr/serviceCustomCertificate.go @@ -31,9 +31,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } diff --git a/sdk/go/azure/signalr/serviceCustomDomain.go b/sdk/go/azure/signalr/serviceCustomDomain.go index 8bc3066fd0..f62aca5688 100644 --- a/sdk/go/azure/signalr/serviceCustomDomain.go +++ b/sdk/go/azure/signalr/serviceCustomDomain.go @@ -31,9 +31,9 @@ import ( // // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// func filebase64OrPanic(path string) string { // if fileData, err := os.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// return base64.StdEncoding.EncodeToString(fileData[:]) // } else { // panic(err.Error()) // } diff --git a/sdk/nodejs/apimanagement/certificate.ts b/sdk/nodejs/apimanagement/certificate.ts index 462a00f476..3f8d37e41c 100644 --- a/sdk/nodejs/apimanagement/certificate.ts +++ b/sdk/nodejs/apimanagement/certificate.ts @@ -26,7 +26,7 @@ import * as utilities from "../utilities"; * const exampleCertificate = new azure.apimanagement.Certificate("exampleCertificate", { * apiManagementName: exampleService.name, * resourceGroupName: exampleResourceGroup.name, - * data: Buffer.from(fs.readFileSync("example.pfx"), 'binary').toString('base64'), + * data: Buffer.from(fs.readFileSync("example.pfx", 'binary')).toString('base64'), * }); * ``` * ### With Key Vault Certificate) @@ -64,7 +64,7 @@ import * as utilities from "../utilities"; * const exampleCertificate = new azure.keyvault.Certificate("exampleCertificate", { * keyVaultId: exampleKeyVault.id, * certificate: { - * contents: Buffer.from(fs.readFileSync("example_cert.pfx"), 'binary').toString('base64'), + * contents: Buffer.from(fs.readFileSync("example_cert.pfx", 'binary')).toString('base64'), * password: "terraform", * }, * certificatePolicy: { diff --git a/sdk/nodejs/apimanagement/gatewayCertificateAuthority.ts b/sdk/nodejs/apimanagement/gatewayCertificateAuthority.ts index 339b3c1c98..d8e22fb750 100644 --- a/sdk/nodejs/apimanagement/gatewayCertificateAuthority.ts +++ b/sdk/nodejs/apimanagement/gatewayCertificateAuthority.ts @@ -35,7 +35,7 @@ import * as utilities from "../utilities"; * const exampleCertificate = new azure.apimanagement.Certificate("exampleCertificate", { * apiManagementName: exampleService.name, * resourceGroupName: exampleResourceGroup.name, - * data: Buffer.from(fs.readFileSync("example.pfx"), 'binary').toString('base64'), + * data: Buffer.from(fs.readFileSync("example.pfx", 'binary')).toString('base64'), * }); * const exampleGatewayCertificateAuthority = new azure.apimanagement.GatewayCertificateAuthority("exampleGatewayCertificateAuthority", { * apiManagementId: exampleService.id, diff --git a/sdk/nodejs/apimanagement/gatewayHostNameConfiguration.ts b/sdk/nodejs/apimanagement/gatewayHostNameConfiguration.ts index 8d526c4ae2..0def967f68 100644 --- a/sdk/nodejs/apimanagement/gatewayHostNameConfiguration.ts +++ b/sdk/nodejs/apimanagement/gatewayHostNameConfiguration.ts @@ -35,7 +35,7 @@ import * as utilities from "../utilities"; * const exampleCertificate = new azure.apimanagement.Certificate("exampleCertificate", { * apiManagementName: exampleService.name, * resourceGroupName: exampleResourceGroup.name, - * data: Buffer.from(fs.readFileSync("example.pfx"), 'binary').toString('base64'), + * data: Buffer.from(fs.readFileSync("example.pfx", 'binary')).toString('base64'), * }); * const exampleGatewayHostNameConfiguration = new azure.apimanagement.GatewayHostNameConfiguration("exampleGatewayHostNameConfiguration", { * apiManagementId: exampleService.id, diff --git a/sdk/nodejs/appservice/certificate.ts b/sdk/nodejs/appservice/certificate.ts index 6ae51be9f1..b1d8cc4b0f 100644 --- a/sdk/nodejs/appservice/certificate.ts +++ b/sdk/nodejs/appservice/certificate.ts @@ -20,7 +20,7 @@ import * as utilities from "../utilities"; * const exampleCertificate = new azure.appservice.Certificate("exampleCertificate", { * resourceGroupName: exampleResourceGroup.name, * location: exampleResourceGroup.location, - * pfxBlob: Buffer.from(fs.readFileSync("certificate.pfx"), 'binary').toString('base64'), + * pfxBlob: Buffer.from(fs.readFileSync("certificate.pfx", 'binary')).toString('base64'), * password: "password123!", * }); * ``` diff --git a/sdk/nodejs/appservice/publicCertificate.ts b/sdk/nodejs/appservice/publicCertificate.ts index 3769adef7b..50766a5a57 100644 --- a/sdk/nodejs/appservice/publicCertificate.ts +++ b/sdk/nodejs/appservice/publicCertificate.ts @@ -33,7 +33,7 @@ import * as utilities from "../utilities"; * appServiceName: exampleAppService.name, * certificateName: "example-public-certificate", * certificateLocation: "Unknown", - * blob: Buffer.from(fs.readFileSync("app_service_public_certificate.cer"), 'binary').toString('base64'), + * blob: Buffer.from(fs.readFileSync("app_service_public_certificate.cer", 'binary')).toString('base64'), * }); * ``` * diff --git a/sdk/nodejs/arckubernetes/clusterExtension.ts b/sdk/nodejs/arckubernetes/clusterExtension.ts index 8a37583359..6bcdf793ff 100644 --- a/sdk/nodejs/arckubernetes/clusterExtension.ts +++ b/sdk/nodejs/arckubernetes/clusterExtension.ts @@ -20,7 +20,7 @@ import * as utilities from "../utilities"; * const exampleCluster = new azure.arckubernetes.Cluster("exampleCluster", { * resourceGroupName: exampleResourceGroup.name, * location: "West Europe", - * agentPublicKeyCertificate: Buffer.from(fs.readFileSync("testdata/public.cer"), 'binary').toString('base64'), + * agentPublicKeyCertificate: Buffer.from(fs.readFileSync("testdata/public.cer", 'binary')).toString('base64'), * identity: { * type: "SystemAssigned", * }, diff --git a/sdk/nodejs/arckubernetes/fluxConfiguration.ts b/sdk/nodejs/arckubernetes/fluxConfiguration.ts index 44ee326db4..0c78347257 100644 --- a/sdk/nodejs/arckubernetes/fluxConfiguration.ts +++ b/sdk/nodejs/arckubernetes/fluxConfiguration.ts @@ -20,7 +20,7 @@ import * as utilities from "../utilities"; * const exampleCluster = new azure.arckubernetes.Cluster("exampleCluster", { * resourceGroupName: exampleResourceGroup.name, * location: "West Europe", - * agentPublicKeyCertificate: Buffer.from(fs.readFileSync("testdata/public.cer"), 'binary').toString('base64'), + * agentPublicKeyCertificate: Buffer.from(fs.readFileSync("testdata/public.cer", 'binary')).toString('base64'), * identity: { * type: "SystemAssigned", * }, diff --git a/sdk/nodejs/automation/certificate.ts b/sdk/nodejs/automation/certificate.ts index 544c02f475..87273b9504 100644 --- a/sdk/nodejs/automation/certificate.ts +++ b/sdk/nodejs/automation/certificate.ts @@ -24,7 +24,7 @@ import * as utilities from "../utilities"; * resourceGroupName: exampleResourceGroup.name, * automationAccountName: exampleAccount.name, * description: "This is an example certificate", - * base64: Buffer.from(fs.readFileSync("certificate.pfx"), 'binary').toString('base64'), + * base64: Buffer.from(fs.readFileSync("certificate.pfx", 'binary')).toString('base64'), * exportable: true, * }); * ``` diff --git a/sdk/nodejs/automation/connectionCertificate.ts b/sdk/nodejs/automation/connectionCertificate.ts index 20db244a0d..24236eb371 100644 --- a/sdk/nodejs/automation/connectionCertificate.ts +++ b/sdk/nodejs/automation/connectionCertificate.ts @@ -24,7 +24,7 @@ import * as utilities from "../utilities"; * const exampleCertificate = new azure.automation.Certificate("exampleCertificate", { * resourceGroupName: exampleResourceGroup.name, * automationAccountName: exampleAccount.name, - * base64: Buffer.from(fs.readFileSync("certificate.pfx"), 'binary').toString('base64'), + * base64: Buffer.from(fs.readFileSync("certificate.pfx", 'binary')).toString('base64'), * }); * const exampleConnectionCertificate = new azure.automation.ConnectionCertificate("exampleConnectionCertificate", { * resourceGroupName: exampleResourceGroup.name, diff --git a/sdk/nodejs/batch/certificate.ts b/sdk/nodejs/batch/certificate.ts index be189a226f..185bb126b3 100644 --- a/sdk/nodejs/batch/certificate.ts +++ b/sdk/nodejs/batch/certificate.ts @@ -34,7 +34,7 @@ import * as utilities from "../utilities"; * const exampleCertificate = new azure.batch.Certificate("exampleCertificate", { * resourceGroupName: exampleResourceGroup.name, * accountName: exampleBatch / accountAccount.name, - * certificate: Buffer.from(fs.readFileSync("certificate.pfx"), 'binary').toString('base64'), + * certificate: Buffer.from(fs.readFileSync("certificate.pfx", 'binary')).toString('base64'), * format: "Pfx", * password: "password", * thumbprint: "42C107874FD0E4A9583292A2F1098E8FE4B2EDDA", diff --git a/sdk/nodejs/batch/pool.ts b/sdk/nodejs/batch/pool.ts index 5873689f46..4c1de1e62b 100644 --- a/sdk/nodejs/batch/pool.ts +++ b/sdk/nodejs/batch/pool.ts @@ -36,7 +36,7 @@ import * as utilities from "../utilities"; * const exampleCertificate = new azure.batch.Certificate("exampleCertificate", { * resourceGroupName: exampleResourceGroup.name, * accountName: exampleBatch / accountAccount.name, - * certificate: Buffer.from(fs.readFileSync("certificate.cer"), 'binary').toString('base64'), + * certificate: Buffer.from(fs.readFileSync("certificate.cer", 'binary')).toString('base64'), * format: "Cer", * thumbprint: "312d31a79fa0cef49c00f769afc2b73e9f4edf34", * thumbprintAlgorithm: "SHA1", diff --git a/sdk/nodejs/cdn/frontdoorSecret.ts b/sdk/nodejs/cdn/frontdoorSecret.ts index d072b737b6..a823578e2b 100644 --- a/sdk/nodejs/cdn/frontdoorSecret.ts +++ b/sdk/nodejs/cdn/frontdoorSecret.ts @@ -55,7 +55,7 @@ import * as utilities from "../utilities"; * const exampleCertificate = new azure.keyvault.Certificate("exampleCertificate", { * keyVaultId: exampleKeyVault.id, * certificate: { - * contents: Buffer.from(fs.readFileSync("my-certificate.pfx"), 'binary').toString('base64'), + * contents: Buffer.from(fs.readFileSync("my-certificate.pfx", 'binary')).toString('base64'), * }, * }); * const exampleFrontdoorProfile = new azure.cdn.FrontdoorProfile("exampleFrontdoorProfile", { diff --git a/sdk/nodejs/iot/certificate.ts b/sdk/nodejs/iot/certificate.ts index cdd0c24c91..c433d04af8 100644 --- a/sdk/nodejs/iot/certificate.ts +++ b/sdk/nodejs/iot/certificate.ts @@ -27,7 +27,7 @@ import * as utilities from "../utilities"; * resourceGroupName: exampleResourceGroup.name, * iothubName: exampleIoTHub.name, * isVerified: true, - * certificateContent: Buffer.from(fs.readFileSync("example.cer"), 'binary').toString('base64'), + * certificateContent: Buffer.from(fs.readFileSync("example.cer", 'binary')).toString('base64'), * }); * ``` * diff --git a/sdk/nodejs/iot/iotHubCertificate.ts b/sdk/nodejs/iot/iotHubCertificate.ts index 0d745ce72e..1b4ff2fd23 100644 --- a/sdk/nodejs/iot/iotHubCertificate.ts +++ b/sdk/nodejs/iot/iotHubCertificate.ts @@ -26,7 +26,7 @@ import * as utilities from "../utilities"; * const exampleIotHubCertificate = new azure.iot.IotHubCertificate("exampleIotHubCertificate", { * resourceGroupName: exampleResourceGroup.name, * iotDpsName: exampleIotHubDps.name, - * certificateContent: Buffer.from(fs.readFileSync("example.cer"), 'binary').toString('base64'), + * certificateContent: Buffer.from(fs.readFileSync("example.cer", 'binary')).toString('base64'), * }); * ``` * diff --git a/sdk/nodejs/keyvault/certifiate.ts b/sdk/nodejs/keyvault/certifiate.ts index be1fcecacd..2bc1c8edc3 100644 --- a/sdk/nodejs/keyvault/certifiate.ts +++ b/sdk/nodejs/keyvault/certifiate.ts @@ -81,7 +81,7 @@ import * as utilities from "../utilities"; * const exampleCertificate = new azure.keyvault.Certificate("exampleCertificate", { * keyVaultId: exampleKeyVault.id, * certificate: { - * contents: Buffer.from(fs.readFileSync("certificate-to-import.pfx"), 'binary').toString('base64'), + * contents: Buffer.from(fs.readFileSync("certificate-to-import.pfx", 'binary')).toString('base64'), * password: "", * }, * }); diff --git a/sdk/nodejs/keyvault/certificate.ts b/sdk/nodejs/keyvault/certificate.ts index f51ca6297f..868d6a5337 100644 --- a/sdk/nodejs/keyvault/certificate.ts +++ b/sdk/nodejs/keyvault/certificate.ts @@ -81,7 +81,7 @@ import * as utilities from "../utilities"; * const exampleCertificate = new azure.keyvault.Certificate("exampleCertificate", { * keyVaultId: exampleKeyVault.id, * certificate: { - * contents: Buffer.from(fs.readFileSync("certificate-to-import.pfx"), 'binary').toString('base64'), + * contents: Buffer.from(fs.readFileSync("certificate-to-import.pfx", 'binary')).toString('base64'), * password: "", * }, * }); diff --git a/sdk/nodejs/logicapps/integrationAccountAssembly.ts b/sdk/nodejs/logicapps/integrationAccountAssembly.ts index 23d42cea70..9f10c61d85 100644 --- a/sdk/nodejs/logicapps/integrationAccountAssembly.ts +++ b/sdk/nodejs/logicapps/integrationAccountAssembly.ts @@ -24,7 +24,7 @@ import * as utilities from "../utilities"; * resourceGroupName: exampleResourceGroup.name, * integrationAccountName: exampleIntegrationAccount.name, * assemblyName: "TestAssembly", - * content: Buffer.from(fs.readFileSync("testdata/log4net.dll"), 'binary').toString('base64'), + * content: Buffer.from(fs.readFileSync("testdata/log4net.dll", 'binary')).toString('base64'), * }); * ``` * diff --git a/sdk/nodejs/nginx/certificate.ts b/sdk/nodejs/nginx/certificate.ts index c027790d49..34decae1cb 100644 --- a/sdk/nodejs/nginx/certificate.ts +++ b/sdk/nodejs/nginx/certificate.ts @@ -82,7 +82,7 @@ import * as utilities from "../utilities"; * const exampleCertificate = new azure.keyvault.Certificate("exampleCertificate", { * keyVaultId: exampleKeyVault.id, * certificate: { - * contents: Buffer.from(fs.readFileSync("certificate-to-import.pfx"), 'binary').toString('base64'), + * contents: Buffer.from(fs.readFileSync("certificate-to-import.pfx", 'binary')).toString('base64'), * password: "", * }, * }); diff --git a/sdk/nodejs/signalr/serviceCustomCertificate.ts b/sdk/nodejs/signalr/serviceCustomCertificate.ts index 7e21c9122a..c48bd87c40 100644 --- a/sdk/nodejs/signalr/serviceCustomCertificate.ts +++ b/sdk/nodejs/signalr/serviceCustomCertificate.ts @@ -64,7 +64,7 @@ import * as utilities from "../utilities"; * const exampleCertificate = new azure.keyvault.Certificate("exampleCertificate", { * keyVaultId: exampleKeyVault.id, * certificate: { - * contents: Buffer.from(fs.readFileSync("certificate-to-import.pfx"), 'binary').toString('base64'), + * contents: Buffer.from(fs.readFileSync("certificate-to-import.pfx", 'binary')).toString('base64'), * password: "", * }, * }); diff --git a/sdk/nodejs/signalr/serviceCustomDomain.ts b/sdk/nodejs/signalr/serviceCustomDomain.ts index 1c0944f0ed..c7ded50ae5 100644 --- a/sdk/nodejs/signalr/serviceCustomDomain.ts +++ b/sdk/nodejs/signalr/serviceCustomDomain.ts @@ -64,7 +64,7 @@ import * as utilities from "../utilities"; * const exampleCertificate = new azure.keyvault.Certificate("exampleCertificate", { * keyVaultId: exampleKeyVault.id, * certificate: { - * contents: Buffer.from(fs.readFileSync("certificate-to-import.pfx"), 'binary').toString('base64'), + * contents: Buffer.from(fs.readFileSync("certificate-to-import.pfx", 'binary')).toString('base64'), * password: "", * }, * });