Skip to content

Commit

Permalink
Merge pull request #39 from contentstack/feat/DX-70-GCP-NA-support
Browse files Browse the repository at this point in the history
feat: GCP support
  • Loading branch information
nadeem-cs authored May 3, 2024
2 parents c035a0b + d4d427b commit 5495d5d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### Version: 2.14.0
#### Date: May-07-2024

##### New Feature:
- GCP_NA region support added

### Version: 2.13.0
#### Date: April-02-2024

Expand Down
2 changes: 1 addition & 1 deletion Contentstack.Core/Configuration/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ internal string HostURL
{
get
{
if (Region == ContentstackRegion.EU || Region == ContentstackRegion.AZURE_EU || Region == ContentstackRegion.AZURE_NA)
if (Region == ContentstackRegion.EU || Region == ContentstackRegion.AZURE_EU || Region == ContentstackRegion.AZURE_NA || Region == ContentstackRegion.GCP_NA)
return "cdn.contentstack.com";
return "cdn.contentstack.io";
}
Expand Down
31 changes: 19 additions & 12 deletions Contentstack.Core/Internals/ContentstackRegion.cs
Original file line number Diff line number Diff line change
@@ -1,28 +1,33 @@
using System;
namespace Contentstack.Core.Internals
{
/// <summary>
/// Contentstack region.
/// <summary>
/// Contentstack region.
/// </summary>
public enum ContentstackRegion
{
/// <summary>
/// To specify US region.
/// <summary>
/// To specify US region.
/// </summary>
US,
/// <summary>
/// To specify EU region.
/// <summary>
/// To specify EU region.
/// </summary>
EU,
/// <summary>
/// To specify EU region.
/// <summary>
/// To specify AZURE_EU region.
/// </summary>
AZURE_EU,

/// <summary>
/// To specify EU region.
/// <summary>
/// To specify AZURE_NA region.
/// </summary>
AZURE_NA
AZURE_NA,

/// <summary>
/// To specify GCP_NA region.
/// </summary>
GCP_NA
}


Expand All @@ -34,7 +39,9 @@ internal enum ContentstackRegionCode

azure_eu,

azure_na
azure_na,

gcp_na

}
}
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>2.13.0</Version>
<Version>2.14.0</Version>
</PropertyGroup>
</Project>

0 comments on commit 5495d5d

Please sign in to comment.