Skip to content

Commit

Permalink
More constants for FunctionApp (#2)
Browse files Browse the repository at this point in the history
* Add more Linux and Windows docker versions

* FunctionAppDockerVersions

* .

* FunctionAppEditModes
FunctionAppWorkerRuntimes

* 003
  • Loading branch information
StefH authored Apr 30, 2020
1 parent 386c6d1 commit a8f53c7
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</PropertyGroup>

<PropertyGroup>
<VersionPrefix>0.0.2</VersionPrefix>
<VersionPrefix>0.0.3</VersionPrefix>
<Copyright>Copyright © 2020 Stef Heyenrath</Copyright>
<Authors>Stef Heyenrath</Authors>
<PackageReleaseNotes>See CHANGELOG.md</PackageReleaseNotes>
Expand Down
2 changes: 1 addition & 1 deletion GitHubReleaseNotes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/~https://github.com/StefH/GitHubReleaseNotes

GitHubReleaseNotes.exe --output CHANGELOG.md --skip-empty-releases --exclude-labels question invalid doc --version 0.0.2
GitHubReleaseNotes.exe --output CHANGELOG.md --skip-empty-releases --exclude-labels question invalid doc --version 0.0.3
2 changes: 2 additions & 0 deletions Pulumi.Azure.Constants Solution.sln.DotSettings
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=JS/@EntryIndexedValue">JS</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=LM/@EntryIndexedValue">LM</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=SHARED/@EntryIndexedValue">SHARED</s:String>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Nano/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Pulumi/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Runtimes/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Skus/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
13 changes: 13 additions & 0 deletions src/Pulumi.Azure.Constants/FunctionApp/FunctionAppEditModes.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// ReSharper disable once CheckNamespace
namespace Pulumi.Azure.Constants
{
/// <summary>
/// Dictates whether editing in the Azure portal is enabled.
/// </summary>
public static class FunctionAppEditModes
{
public const string ReadWrite = "readwrite";

public const string Readonly = "readonly";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ namespace Pulumi.Azure.Constants
/// </summary>
public static class FunctionAppSiteConfigLinuxFxVersions
{
public const string V2 = "DOCKER|mcr.microsoft.com/azure-functions/dotnet:2.0";
public const string DotNetV2 = "DOCKER|mcr.microsoft.com/azure-functions/dotnet:2.0";

public const string V3 = "DOCKER|mcr.microsoft.com/azure-functions/dotnet:3.0";
public const string DotNetV3 = "DOCKER|mcr.microsoft.com/azure-functions/dotnet:3.0";

public const string NodeV2 = "DOCKER|mcr.microsoft.com/azure-functions/node:2.0";

public const string PowerShellV2 = "DOCKER|mcr.microsoft.com/azure-functions/powershell:2.0";

public const string PythonV2 = "DOCKER|mcr.microsoft.com/azure-functions/python:2.0";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// ReSharper disable once CheckNamespace
namespace Pulumi.Azure.Constants
{
/// <summary>
/// Windows App Framework and version for the AppService.
/// </summary>
public static class FunctionAppSiteConfigWindowsVersions
{
public const string DotNetV2NanoServer1709 = "DOCKER|mcr.microsoft.com/azure-functions/dotnet:2.0-nanoserver-1709";

public const string DotNetV2NanoServer1803 = "DOCKER|mcr.microsoft.com/azure-functions/dotnet:2.0-nanoserver-1803";

public const string DotNetV2NanoServer1809 = "DOCKER|mcr.microsoft.com/azure-functions/dotnet:2.0-nanoserver-1809";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// ReSharper disable once CheckNamespace
namespace Pulumi.Azure.Constants
{
/// <summary>
/// he language worker runtime to load in the function app. This will correspond to the language being used in your application (for example, "dotnet").
/// For functions in multiple languages you will need to publish them to multiple apps, each with a corresponding worker runtime value.
/// </summary>
public static class FunctionAppWorkerRuntimes
{
/// <summary>
/// C#/F#
/// </summary>
public const string DotNet = "dotnet";

/// <summary>
/// JavaScript/TypeScript
/// </summary>
public const string Node = "node";

/// <summary>
/// Java
/// </summary>
public const string Java = "java";

/// <summary>
/// PowerShell
/// </summary>
public const string PowerShell = "powershell";

/// <summary>
/// Python
/// </summary>
public const string Python = "python";
}
}

0 comments on commit a8f53c7

Please sign in to comment.