@@ -186,7 +186,7 @@ public void getConnectionProfileTest() throws Exception {
186186 ConnectionProfile expectedResponse =
187187 ConnectionProfile .newBuilder ()
188188 .setName (
189- ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTIONPROFILE ]" )
189+ ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTION_PROFILE ]" )
190190 .toString ())
191191 .setCreateTime (Timestamp .newBuilder ().build ())
192192 .setUpdateTime (Timestamp .newBuilder ().build ())
@@ -196,7 +196,7 @@ public void getConnectionProfileTest() throws Exception {
196196 mockDatastream .addResponse (expectedResponse );
197197
198198 ConnectionProfileName name =
199- ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTIONPROFILE ]" );
199+ ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTION_PROFILE ]" );
200200
201201 ConnectionProfile actualResponse = client .getConnectionProfile (name );
202202 Assert .assertEquals (expectedResponse , actualResponse );
@@ -220,7 +220,7 @@ public void getConnectionProfileExceptionTest() throws Exception {
220220
221221 try {
222222 ConnectionProfileName name =
223- ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTIONPROFILE ]" );
223+ ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTION_PROFILE ]" );
224224 client .getConnectionProfile (name );
225225 Assert .fail ("No exception raised" );
226226 } catch (InvalidArgumentException e ) {
@@ -233,7 +233,7 @@ public void getConnectionProfileTest2() throws Exception {
233233 ConnectionProfile expectedResponse =
234234 ConnectionProfile .newBuilder ()
235235 .setName (
236- ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTIONPROFILE ]" )
236+ ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTION_PROFILE ]" )
237237 .toString ())
238238 .setCreateTime (Timestamp .newBuilder ().build ())
239239 .setUpdateTime (Timestamp .newBuilder ().build ())
@@ -278,7 +278,7 @@ public void createConnectionProfileTest() throws Exception {
278278 ConnectionProfile expectedResponse =
279279 ConnectionProfile .newBuilder ()
280280 .setName (
281- ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTIONPROFILE ]" )
281+ ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTION_PROFILE ]" )
282282 .toString ())
283283 .setCreateTime (Timestamp .newBuilder ().build ())
284284 .setUpdateTime (Timestamp .newBuilder ().build ())
@@ -338,7 +338,7 @@ public void createConnectionProfileTest2() throws Exception {
338338 ConnectionProfile expectedResponse =
339339 ConnectionProfile .newBuilder ()
340340 .setName (
341- ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTIONPROFILE ]" )
341+ ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTION_PROFILE ]" )
342342 .toString ())
343343 .setCreateTime (Timestamp .newBuilder ().build ())
344344 .setUpdateTime (Timestamp .newBuilder ().build ())
@@ -398,7 +398,7 @@ public void updateConnectionProfileTest() throws Exception {
398398 ConnectionProfile expectedResponse =
399399 ConnectionProfile .newBuilder ()
400400 .setName (
401- ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTIONPROFILE ]" )
401+ ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTION_PROFILE ]" )
402402 .toString ())
403403 .setCreateTime (Timestamp .newBuilder ().build ())
404404 .setUpdateTime (Timestamp .newBuilder ().build ())
@@ -462,7 +462,7 @@ public void deleteConnectionProfileTest() throws Exception {
462462 mockDatastream .addResponse (resultOperation );
463463
464464 ConnectionProfileName name =
465- ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTIONPROFILE ]" );
465+ ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTION_PROFILE ]" );
466466
467467 client .deleteConnectionProfileAsync (name ).get ();
468468
@@ -485,7 +485,7 @@ public void deleteConnectionProfileExceptionTest() throws Exception {
485485
486486 try {
487487 ConnectionProfileName name =
488- ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTIONPROFILE ]" );
488+ ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTION_PROFILE ]" );
489489 client .deleteConnectionProfileAsync (name ).get ();
490490 Assert .fail ("No exception raised" );
491491 } catch (ExecutionException e ) {
@@ -547,7 +547,7 @@ public void discoverConnectionProfileTest() throws Exception {
547547 DiscoverConnectionProfileRequest request =
548548 DiscoverConnectionProfileRequest .newBuilder ()
549549 .setParent (
550- ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTIONPROFILE ]" )
550+ ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTION_PROFILE ]" )
551551 .toString ())
552552 .build ();
553553
@@ -582,7 +582,7 @@ public void discoverConnectionProfileExceptionTest() throws Exception {
582582 DiscoverConnectionProfileRequest request =
583583 DiscoverConnectionProfileRequest .newBuilder ()
584584 .setParent (
585- ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTIONPROFILE ]" )
585+ ConnectionProfileName .of ("[PROJECT]" , "[LOCATION]" , "[CONNECTION_PROFILE ]" )
586586 .toString ())
587587 .build ();
588588 client .discoverConnectionProfile (request );
@@ -1171,7 +1171,7 @@ public void createPrivateConnectionTest() throws Exception {
11711171 PrivateConnection expectedResponse =
11721172 PrivateConnection .newBuilder ()
11731173 .setName (
1174- PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATECONNECTION ]" )
1174+ PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATE_CONNECTION ]" )
11751175 .toString ())
11761176 .setCreateTime (Timestamp .newBuilder ().build ())
11771177 .setUpdateTime (Timestamp .newBuilder ().build ())
@@ -1233,7 +1233,7 @@ public void createPrivateConnectionTest2() throws Exception {
12331233 PrivateConnection expectedResponse =
12341234 PrivateConnection .newBuilder ()
12351235 .setName (
1236- PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATECONNECTION ]" )
1236+ PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATE_CONNECTION ]" )
12371237 .toString ())
12381238 .setCreateTime (Timestamp .newBuilder ().build ())
12391239 .setUpdateTime (Timestamp .newBuilder ().build ())
@@ -1295,7 +1295,7 @@ public void getPrivateConnectionTest() throws Exception {
12951295 PrivateConnection expectedResponse =
12961296 PrivateConnection .newBuilder ()
12971297 .setName (
1298- PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATECONNECTION ]" )
1298+ PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATE_CONNECTION ]" )
12991299 .toString ())
13001300 .setCreateTime (Timestamp .newBuilder ().build ())
13011301 .setUpdateTime (Timestamp .newBuilder ().build ())
@@ -1307,7 +1307,7 @@ public void getPrivateConnectionTest() throws Exception {
13071307 mockDatastream .addResponse (expectedResponse );
13081308
13091309 PrivateConnectionName name =
1310- PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATECONNECTION ]" );
1310+ PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATE_CONNECTION ]" );
13111311
13121312 PrivateConnection actualResponse = client .getPrivateConnection (name );
13131313 Assert .assertEquals (expectedResponse , actualResponse );
@@ -1331,7 +1331,7 @@ public void getPrivateConnectionExceptionTest() throws Exception {
13311331
13321332 try {
13331333 PrivateConnectionName name =
1334- PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATECONNECTION ]" );
1334+ PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATE_CONNECTION ]" );
13351335 client .getPrivateConnection (name );
13361336 Assert .fail ("No exception raised" );
13371337 } catch (InvalidArgumentException e ) {
@@ -1344,7 +1344,7 @@ public void getPrivateConnectionTest2() throws Exception {
13441344 PrivateConnection expectedResponse =
13451345 PrivateConnection .newBuilder ()
13461346 .setName (
1347- PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATECONNECTION ]" )
1347+ PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATE_CONNECTION ]" )
13481348 .toString ())
13491349 .setCreateTime (Timestamp .newBuilder ().build ())
13501350 .setUpdateTime (Timestamp .newBuilder ().build ())
@@ -1488,7 +1488,7 @@ public void deletePrivateConnectionTest() throws Exception {
14881488 mockDatastream .addResponse (resultOperation );
14891489
14901490 PrivateConnectionName name =
1491- PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATECONNECTION ]" );
1491+ PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATE_CONNECTION ]" );
14921492
14931493 client .deletePrivateConnectionAsync (name ).get ();
14941494
@@ -1511,7 +1511,7 @@ public void deletePrivateConnectionExceptionTest() throws Exception {
15111511
15121512 try {
15131513 PrivateConnectionName name =
1514- PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATECONNECTION ]" );
1514+ PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATE_CONNECTION ]" );
15151515 client .deletePrivateConnectionAsync (name ).get ();
15161516 Assert .fail ("No exception raised" );
15171517 } catch (ExecutionException e ) {
@@ -1569,7 +1569,7 @@ public void createRouteTest() throws Exception {
15691569 Route expectedResponse =
15701570 Route .newBuilder ()
15711571 .setName (
1572- RouteName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATECONNECTION ]" , "[ROUTE]" )
1572+ RouteName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATE_CONNECTION ]" , "[ROUTE]" )
15731573 .toString ())
15741574 .setCreateTime (Timestamp .newBuilder ().build ())
15751575 .setUpdateTime (Timestamp .newBuilder ().build ())
@@ -1587,7 +1587,7 @@ public void createRouteTest() throws Exception {
15871587 mockDatastream .addResponse (resultOperation );
15881588
15891589 PrivateConnectionName parent =
1590- PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATECONNECTION ]" );
1590+ PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATE_CONNECTION ]" );
15911591 Route route = Route .newBuilder ().build ();
15921592 String routeId = "routeId1385647428" ;
15931593
@@ -1614,7 +1614,7 @@ public void createRouteExceptionTest() throws Exception {
16141614
16151615 try {
16161616 PrivateConnectionName parent =
1617- PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATECONNECTION ]" );
1617+ PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATE_CONNECTION ]" );
16181618 Route route = Route .newBuilder ().build ();
16191619 String routeId = "routeId1385647428" ;
16201620 client .createRouteAsync (parent , route , routeId ).get ();
@@ -1631,7 +1631,7 @@ public void createRouteTest2() throws Exception {
16311631 Route expectedResponse =
16321632 Route .newBuilder ()
16331633 .setName (
1634- RouteName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATECONNECTION ]" , "[ROUTE]" )
1634+ RouteName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATE_CONNECTION ]" , "[ROUTE]" )
16351635 .toString ())
16361636 .setCreateTime (Timestamp .newBuilder ().build ())
16371637 .setUpdateTime (Timestamp .newBuilder ().build ())
@@ -1691,7 +1691,7 @@ public void getRouteTest() throws Exception {
16911691 Route expectedResponse =
16921692 Route .newBuilder ()
16931693 .setName (
1694- RouteName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATECONNECTION ]" , "[ROUTE]" )
1694+ RouteName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATE_CONNECTION ]" , "[ROUTE]" )
16951695 .toString ())
16961696 .setCreateTime (Timestamp .newBuilder ().build ())
16971697 .setUpdateTime (Timestamp .newBuilder ().build ())
@@ -1702,7 +1702,7 @@ public void getRouteTest() throws Exception {
17021702 .build ();
17031703 mockDatastream .addResponse (expectedResponse );
17041704
1705- RouteName name = RouteName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATECONNECTION ]" , "[ROUTE]" );
1705+ RouteName name = RouteName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATE_CONNECTION ]" , "[ROUTE]" );
17061706
17071707 Route actualResponse = client .getRoute (name );
17081708 Assert .assertEquals (expectedResponse , actualResponse );
@@ -1724,7 +1724,7 @@ public void getRouteExceptionTest() throws Exception {
17241724 mockDatastream .addException (exception );
17251725
17261726 try {
1727- RouteName name = RouteName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATECONNECTION ]" , "[ROUTE]" );
1727+ RouteName name = RouteName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATE_CONNECTION ]" , "[ROUTE]" );
17281728 client .getRoute (name );
17291729 Assert .fail ("No exception raised" );
17301730 } catch (InvalidArgumentException e ) {
@@ -1737,7 +1737,7 @@ public void getRouteTest2() throws Exception {
17371737 Route expectedResponse =
17381738 Route .newBuilder ()
17391739 .setName (
1740- RouteName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATECONNECTION ]" , "[ROUTE]" )
1740+ RouteName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATE_CONNECTION ]" , "[ROUTE]" )
17411741 .toString ())
17421742 .setCreateTime (Timestamp .newBuilder ().build ())
17431743 .setUpdateTime (Timestamp .newBuilder ().build ())
@@ -1789,7 +1789,7 @@ public void listRoutesTest() throws Exception {
17891789 mockDatastream .addResponse (expectedResponse );
17901790
17911791 PrivateConnectionName parent =
1792- PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATECONNECTION ]" );
1792+ PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATE_CONNECTION ]" );
17931793
17941794 ListRoutesPagedResponse pagedListResponse = client .listRoutes (parent );
17951795
@@ -1816,7 +1816,7 @@ public void listRoutesExceptionTest() throws Exception {
18161816
18171817 try {
18181818 PrivateConnectionName parent =
1819- PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATECONNECTION ]" );
1819+ PrivateConnectionName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATE_CONNECTION ]" );
18201820 client .listRoutes (parent );
18211821 Assert .fail ("No exception raised" );
18221822 } catch (InvalidArgumentException e ) {
@@ -1879,7 +1879,7 @@ public void deleteRouteTest() throws Exception {
18791879 .build ();
18801880 mockDatastream .addResponse (resultOperation );
18811881
1882- RouteName name = RouteName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATECONNECTION ]" , "[ROUTE]" );
1882+ RouteName name = RouteName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATE_CONNECTION ]" , "[ROUTE]" );
18831883
18841884 client .deleteRouteAsync (name ).get ();
18851885
@@ -1900,7 +1900,7 @@ public void deleteRouteExceptionTest() throws Exception {
19001900 mockDatastream .addException (exception );
19011901
19021902 try {
1903- RouteName name = RouteName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATECONNECTION ]" , "[ROUTE]" );
1903+ RouteName name = RouteName .of ("[PROJECT]" , "[LOCATION]" , "[PRIVATE_CONNECTION ]" , "[ROUTE]" );
19041904 client .deleteRouteAsync (name ).get ();
19051905 Assert .fail ("No exception raised" );
19061906 } catch (ExecutionException e ) {
0 commit comments