Skip to content

Commit 3446628

Browse files
fix(Metrics Router): add new region eu-fr2 (#295)
Signed-off-by: Divi-Tiru-Sai-Gopala-Pavana-Phaneendra <divi.tiru.sai.gopala.pavana.phaneendra@ibm.com>
1 parent a0b7479 commit 3446628

5 files changed

+16
-6
lines changed

metricsrouterv3/metrics_router_v3.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corp. 2023.
2+
* (C) Copyright IBM Corp. 2024.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,7 +15,7 @@
1515
*/
1616

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

2121
// Package metricsrouterv3 : Operations and models for the MetricsRouterV3 service
@@ -120,6 +120,8 @@ func GetServiceURLForRegion(region string) (string, error) {
120120
"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.
121121
"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.
122122
"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.
123+
"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.
124+
"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.
123125
"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.
124126
"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.
125127
"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.

metricsrouterv3/metrics_router_v3_examples_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//go:build examples
22

33
/**
4-
* (C) Copyright IBM Corp. 2023.
4+
* (C) Copyright IBM Corp. 2024.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

metricsrouterv3/metrics_router_v3_integration_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//go:build integration
22

33
/**
4-
* (C) Copyright IBM Corp. 2023.
4+
* (C) Copyright IBM Corp. 2024.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

metricsrouterv3/metrics_router_v3_suite_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corp. 2023.
2+
* (C) Copyright IBM Corp. 2024.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

metricsrouterv3/metrics_router_v3_test.go

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corp. 2023.
2+
* (C) Copyright IBM Corp. 2024.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -186,6 +186,14 @@ var _ = Describe(`MetricsRouterV3`, func() {
186186
Expect(url).To(Equal("https://private.eu-es.metrics-router.cloud.ibm.com/api/v3"))
187187
Expect(err).To(BeNil())
188188

189+
url, err = metricsrouterv3.GetServiceURLForRegion("eu-fr2")
190+
Expect(url).To(Equal("https://eu-fr2.metrics-router.cloud.ibm.com/api/v3"))
191+
Expect(err).To(BeNil())
192+
193+
url, err = metricsrouterv3.GetServiceURLForRegion("private.eu-fr2")
194+
Expect(url).To(Equal("https://private.eu-fr2.metrics-router.cloud.ibm.com/api/v3"))
195+
Expect(err).To(BeNil())
196+
189197
url, err = metricsrouterv3.GetServiceURLForRegion("us-east")
190198
Expect(url).To(Equal("https://us-east.metrics-router.cloud.ibm.com/api/v3"))
191199
Expect(err).To(BeNil())

0 commit comments

Comments
 (0)