Skip to content

Commit

Permalink
fix(Metrics Router): add new region eu-fr2 (#295)
Browse files Browse the repository at this point in the history
Signed-off-by: Divi-Tiru-Sai-Gopala-Pavana-Phaneendra <[email protected]>
  • Loading branch information
PhaniDivi-613 authored Jan 23, 2024
1 parent a0b7479 commit 3446628
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
6 changes: 4 additions & 2 deletions metricsrouterv3/metrics_router_v3.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 metricsrouterv3 : Operations and models for the MetricsRouterV3 service
Expand Down Expand Up @@ -120,6 +120,8 @@ func GetServiceURLForRegion(region string) (string, error) {
"private.eu-gb": "https://private.eu-gb.metrics-router.cloud.ibm.com/api/v3", // The server for IBM Cloud Metrics Routing Service in the eu-gb region.
"eu-es": "https://eu-es.metrics-router.cloud.ibm.com/api/v3", // The server for IBM Cloud Metrics Routing Service in the eu-es region.
"private.eu-es": "https://private.eu-es.metrics-router.cloud.ibm.com/api/v3", // The server for IBM Cloud Metrics Routing Service in the eu-es region.
"eu-fr2": "https://eu-fr2.metrics-router.cloud.ibm.com/api/v3", // The server for IBM Cloud Metrics Routing Service in the eu-fr2 region.
"private.eu-fr2": "https://private.eu-fr2.metrics-router.cloud.ibm.com/api/v3", // The server for IBM Cloud Metrics Routing Service in the eu-fr2 region.
"us-east": "https://us-east.metrics-router.cloud.ibm.com/api/v3", // The server for IBM Cloud Metrics Routing Service in the us-east region.
"private.us-east": "https://private.us-east.metrics-router.cloud.ibm.com/api/v3", // The server for IBM Cloud Metrics Routing Service in the us-east region.
"us-south": "https://us-south.metrics-router.cloud.ibm.com/api/v3", // The server for IBM Cloud Metrics Routing Service in the us-south region.
Expand Down
2 changes: 1 addition & 1 deletion metricsrouterv3/metrics_router_v3_examples_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build examples

/**
* (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
2 changes: 1 addition & 1 deletion metricsrouterv3/metrics_router_v3_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build integration

/**
* (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
2 changes: 1 addition & 1 deletion metricsrouterv3/metrics_router_v3_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
10 changes: 9 additions & 1 deletion metricsrouterv3/metrics_router_v3_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 @@ -186,6 +186,14 @@ var _ = Describe(`MetricsRouterV3`, func() {
Expect(url).To(Equal("https://private.eu-es.metrics-router.cloud.ibm.com/api/v3"))
Expect(err).To(BeNil())

url, err = metricsrouterv3.GetServiceURLForRegion("eu-fr2")
Expect(url).To(Equal("https://eu-fr2.metrics-router.cloud.ibm.com/api/v3"))
Expect(err).To(BeNil())

url, err = metricsrouterv3.GetServiceURLForRegion("private.eu-fr2")
Expect(url).To(Equal("https://private.eu-fr2.metrics-router.cloud.ibm.com/api/v3"))
Expect(err).To(BeNil())

url, err = metricsrouterv3.GetServiceURLForRegion("us-east")
Expect(url).To(Equal("https://us-east.metrics-router.cloud.ibm.com/api/v3"))
Expect(err).To(BeNil())
Expand Down

0 comments on commit 3446628

Please sign in to comment.