From 6a65f0393360a3f817920217230116b85d1f9ecd Mon Sep 17 00:00:00 2001 From: Nadeem Patwekar Date: Thu, 2 May 2024 16:01:04 +0530 Subject: [PATCH] feat: GCP support --- Contentstack.Core/Configuration/Config.cs | 2 +- .../Internals/ContentstackRegion.cs | 31 ++++++++++++------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/Contentstack.Core/Configuration/Config.cs b/Contentstack.Core/Configuration/Config.cs index 4bdd342..ea4e353 100644 --- a/Contentstack.Core/Configuration/Config.cs +++ b/Contentstack.Core/Configuration/Config.cs @@ -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"; } diff --git a/Contentstack.Core/Internals/ContentstackRegion.cs b/Contentstack.Core/Internals/ContentstackRegion.cs index fa0bec1..1ad09cd 100644 --- a/Contentstack.Core/Internals/ContentstackRegion.cs +++ b/Contentstack.Core/Internals/ContentstackRegion.cs @@ -1,28 +1,33 @@ using System; namespace Contentstack.Core.Internals { - /// - /// Contentstack region. + /// + /// Contentstack region. /// public enum ContentstackRegion { - /// - /// To specify US region. + /// + /// To specify US region. /// US, - /// - /// To specify EU region. + /// + /// To specify EU region. /// EU, - /// - /// To specify EU region. + /// + /// To specify AZURE_EU region. /// AZURE_EU, - /// - /// To specify EU region. + /// + /// To specify AZURE_NA region. /// - AZURE_NA + AZURE_NA, + + /// + /// To specify GCP_NA region. + /// + GCP_NA } @@ -34,7 +39,9 @@ internal enum ContentstackRegionCode azure_eu, - azure_na + azure_na, + + gcp_na } }