Skip to content

Commit

Permalink
feat: GCP support
Browse files Browse the repository at this point in the history
  • Loading branch information
nadeem-cs committed May 2, 2024
1 parent d0b952c commit 6a65f03
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
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

}
}

0 comments on commit 6a65f03

Please sign in to comment.