Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CognitiveServices + rename files #1

Merged
merged 1 commit into from
Apr 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.1</VersionPrefix>
<VersionPrefix>0.0.2</VersionPrefix>
<Copyright>Copyright © 2020 Stef Heyenrath</Copyright>
<Authors>Stef Heyenrath</Authors>
<PackageReleaseNotes>See CHANGELOG.md</PackageReleaseNotes>
Expand Down
1 change: 1 addition & 0 deletions Pulumi.Azure.Constants Solution.sln.DotSettings
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=GRS/@EntryIndexedValue">GRS</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=IOS/@EntryIndexedValue">IOS</s:String>
<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/=Pulumi/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Skus/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ With this package, you can easily use constants:
var storageAccount = new Account("test", new AccountArgs
{
ResourceGroupName = resourceGroup.Name,
AccountReplicationType = AccountReplicationTypes.LocallyRedundantStorage, // You can now use a constant string here
AccountTier = AccountTiers.Standard // You can now use a constant string here
AccountReplicationType = StorageAccountReplicationTypes.LocallyRedundantStorage, // You can now use a constant here
AccountTier = StorageAccountTiers.Standard // You can now use a constant here
});
```

Expand All @@ -34,6 +34,7 @@ Constants are defined for the following resources:
- AppServicePlan
- Blob
- ConfigurationStore (AppConfiguration)
- Cognitive (CognitiveServices)
- Container
- FunctionApp
- Insights (ApplicationInsights)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Pulumi.Azure.Constants
/// <summary>
/// The kind of the App Service Plan to create.
/// </summary>
public static class PlanSkuKinds
public static class AppServicePlanSkuKinds
{
public const string Windows = nameof(Windows);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Pulumi.Azure.Constants
/// <summary>
/// Specifies the plan's instance size.
/// </summary>
public static class PlanSkuArgsSizes
public static class AppServicePlanSkuSizes
{
public const string F1 = nameof(F1);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// ReSharper disable once CheckNamespace
namespace Pulumi.Azure.Constants
{
/// <summary>
/// Specifies the type of Cognitive Service Account that should be created.
/// </summary>
public static class CognitiveAccountKinds
{
public const string Academic = nameof(Academic);
public const string BingAutoSuggest = "Bing.Autosuggest";
public const string BingAutoSuggestV7 = "Bing.Autosuggest.v7";
public const string BingCustomSearch = "Bing.CustomSearch";
public const string BingSearch = "Bing.Search";
public const string BingSearchV7 = "Bing.Search.v7";
public const string BingSpeech = "Bing.Speech";
public const string BingSpellCheck = "Bing.SpellCheck";
public const string BingSpellCheckV7 = "Bing.SpellCheck.v7";
public const string CognitiveServices = "CognitiveServices";
public const string ComputerVision = "ComputerVision";
public const string ContentModerator = "ContentModerator";
public const string CustomSpeech = nameof(CustomSpeech);
public const string CustomVisionPrediction = "CustomVision.Prediction";
public const string CustomVisionTraining = "CustomVision.Training";
public const string Emotion = nameof(Emotion);
public const string Face = nameof(Face);
public const string FormRecognizer = nameof(FormRecognizer);
public const string ImmersiveReader = nameof(ImmersiveReader);
public const string LUISLUISAuthoring = "LUISLUIS.Authoring";
public const string QnAMaker = nameof(QnAMaker);
public const string Recommendations = nameof(Recommendations);
public const string SpeakerRecognition = nameof(SpeakerRecognition);
public const string SpeechSpeechServices =nameof(SpeechSpeechServices);
public const string SpeechTranslation = nameof(SpeechTranslation);
public const string TextAnalytics = nameof(TextAnalytics);
public const string TextTranslation = nameof(TextTranslation);
public const string WebLM = nameof(WebLM);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// ReSharper disable once CheckNamespace
namespace Pulumi.Azure.Constants
{
/// <summary>
/// Specifies the SKU Name for this Cognitive Service Account.
/// </summary>
public static class CognitiveServicesAccountSkuNames
{
public const string F0 = nameof(F0);
public const string F1 = nameof(F1);
public const string S0 = nameof(S0);
public const string S1 = nameof(S1);
public const string S2 = nameof(S2);
public const string S3 = nameof(S3);
public const string S4 = nameof(S4);
public const string S5 = nameof(S5);
public const string S6 = nameof(S6);
public const string P0 = nameof(P0);
public const string P1 = nameof(P1);
public const string P2 = nameof(P2);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Pulumi.Azure.Constants
/// <summary>
/// Defines the access tier for `BlobStorage`, `FileStorage` and `StorageV2` accounts.
/// </summary>
public static class AccessTiers
public static class StorageAccessTiers
{
public const string Hot = nameof(Hot);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Pulumi.Azure.Constants
/// Defines the Kind of account. Valid options are `BlobStorage`, `BlockBlobStorage`, `FileStorage`, `Storage` and `StorageV2`.
/// Changing this forces a new resource to be created. Defaults to `StorageV2`.
/// </summary>
public static class AccountKinds
public static class StorageAccountKinds
{
public const string BlobStorage = nameof(BlobStorage);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Pulumi.Azure.Constants
/// <summary>
/// Defines the type of replication to use for this storage account.
/// </summary>
public static class AccountReplicationTypes
public static class StorageAccountReplicationTypes
{
public const string LRS = nameof(LRS);
public const string LocallyRedundantStorage = LRS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Pulumi.Azure.Constants
/// <summary>
/// Defines the Tier to use for this storage account.
/// </summary>
public static class AccountTiers
public static class StorageAccountTiers
{
public const string Standard = nameof(Standard);

Expand Down