Skip to content

Commit

Permalink
fix(ATracker): add new region eu-fr2
Browse files Browse the repository at this point in the history
  • Loading branch information
Divi-Tiru-Sai-Gopala-Pavana-Phaneendra committed Jan 23, 2024
1 parent d923306 commit 721fc32
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions atrackerv2/atracker_v2.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -15,7 +15,7 @@
*/

/*
* IBM OpenAPI SDK Code Generator Version: 3.80.0-29334a73-20230925-151553
* IBM OpenAPI SDK Code Generator Version: 3.84.1-55f6d880-20240110-194020
*/

// Package atrackerv2 : Operations and models for the AtrackerV2 service
Expand Down Expand Up @@ -123,14 +123,14 @@ func GetServiceURLForRegion(region string) (string, error) {
"private.eu-gb": "https://private.eu-gb.atracker.cloud.ibm.com", // The server for IBM Cloud Activity Tracker Service in the eu-gb region.
"eu-es": "https://eu-es.atracker.cloud.ibm.com", // The server for IBM Cloud Activity Tracker Service in the eu-es region.
"private.eu-es": "https://private.eu-es.atracker.cloud.ibm.com", // The server for IBM Cloud Activity Tracker Service in the eu-es region.
"eu-fr2": "https://eu-fr2.atracker.cloud.ibm.com", // The server for IBM Cloud Activity Tracker Service in the eu-fr2 region.
"private.eu-fr2": "https://private.eu-fr2.atracker.cloud.ibm.com", // The server for IBM Cloud Activity Tracker Service in the eu-fr2 region.
"au-syd": "https://au-syd.atracker.cloud.ibm.com", // The server for IBM Cloud Activity Tracker Service in the au-syd region.
"private.au-syd": "https://private.au-syd.atracker.cloud.ibm.com", // The server for IBM Cloud Activity Tracker Service in the au-syd region.
"ca-tor": "https://us-east.atracker.cloud.ibm.com", // The server for IBM Cloud Activity Tracker Service for ca-tor points to the us-east region.
"private.ca-tor": "https://private.us-east.atracker.cloud.ibm.com", // The server for IBM Cloud Activity Tracker Service for ca-tor points to the us-east region.
"br-sao": "https://us-south.atracker.cloud.ibm.com", // The server for IBM Cloud Activity Tracker Service for br-sao points to the us-south region.
"private.br-sao": "https://private.us-south.atracker.cloud.ibm.com", // The server for IBM Cloud Activity Tracker Service for br-sao points to the us-south region.
"eu-fr2": "https://eu-de.atracker.cloud.ibm.com", // The server for IBM Cloud Activity Tracker Service for eu-fr2 points to the eu-de region.
"private.eu-fr2": "https://private.eu-de.atracker.cloud.ibm.com", // The server for IBM Cloud Activity Tracker Service for eu-fr2 points to the eu-de region.
"jp-tok": "https://eu-de.atracker.cloud.ibm.com", // The server for IBM Cloud Activity Tracker Service for jp-tok points to the eu-de region.
"private.jp-tok": "https://private.eu-de.atracker.cloud.ibm.com", // The server for IBM Cloud Activity Tracker Service for jp-tok points to the eu-de region.
"jp-osa": "https://eu-de.atracker.cloud.ibm.com", // The server for IBM Cloud Activity Tracker Service for jp-osa points to the eu-de region.
Expand Down
2 changes: 1 addition & 1 deletion atrackerv2/atracker_v2_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
18 changes: 9 additions & 9 deletions atrackerv2/atracker_v2_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -194,6 +194,14 @@ var _ = Describe(`AtrackerV2`, func() {
Expect(url).To(Equal("https://private.eu-es.atracker.cloud.ibm.com"))
Expect(err).To(BeNil())

url, err = atrackerv2.GetServiceURLForRegion("eu-fr2")
Expect(url).To(Equal("https://eu-fr2.atracker.cloud.ibm.com"))
Expect(err).To(BeNil())

url, err = atrackerv2.GetServiceURLForRegion("private.eu-fr2")
Expect(url).To(Equal("https://private.eu-fr2.atracker.cloud.ibm.com"))
Expect(err).To(BeNil())

url, err = atrackerv2.GetServiceURLForRegion("au-syd")
Expect(url).To(Equal("https://au-syd.atracker.cloud.ibm.com"))
Expect(err).To(BeNil())
Expand All @@ -218,14 +226,6 @@ var _ = Describe(`AtrackerV2`, func() {
Expect(url).To(Equal("https://private.us-south.atracker.cloud.ibm.com"))
Expect(err).To(BeNil())

url, err = atrackerv2.GetServiceURLForRegion("eu-fr2")
Expect(url).To(Equal("https://eu-de.atracker.cloud.ibm.com"))
Expect(err).To(BeNil())

url, err = atrackerv2.GetServiceURLForRegion("private.eu-fr2")
Expect(url).To(Equal("https://private.eu-de.atracker.cloud.ibm.com"))
Expect(err).To(BeNil())

url, err = atrackerv2.GetServiceURLForRegion("jp-tok")
Expect(url).To(Equal("https://eu-de.atracker.cloud.ibm.com"))
Expect(err).To(BeNil())
Expand Down

0 comments on commit 721fc32

Please sign in to comment.