@@ -578,7 +578,7 @@ public void getIamPolicyTest() throws Exception {
578578 .build ();
579579 mockSecurityCenter .addResponse (expectedResponse );
580580
581- ResourceName resource = AssetName . ofOrganizationAssetName ("[ORGANIZATION]" , "[ASSET ]" );
581+ ResourceName resource = SourceName . ofOrganizationSourceName ("[ORGANIZATION]" , "[SOURCE ]" );
582582
583583 Policy actualResponse = client .getIamPolicy (resource );
584584 Assert .assertEquals (expectedResponse , actualResponse );
@@ -600,7 +600,7 @@ public void getIamPolicyExceptionTest() throws Exception {
600600 mockSecurityCenter .addException (exception );
601601
602602 try {
603- ResourceName resource = AssetName . ofOrganizationAssetName ("[ORGANIZATION]" , "[ASSET ]" );
603+ ResourceName resource = SourceName . ofOrganizationSourceName ("[ORGANIZATION]" , "[SOURCE ]" );
604604 client .getIamPolicy (resource );
605605 Assert .fail ("No exception raised" );
606606 } catch (InvalidArgumentException e ) {
@@ -1689,7 +1689,7 @@ public void setIamPolicyTest() throws Exception {
16891689 .build ();
16901690 mockSecurityCenter .addResponse (expectedResponse );
16911691
1692- ResourceName resource = AssetName . ofOrganizationAssetName ("[ORGANIZATION]" , "[ASSET ]" );
1692+ ResourceName resource = SourceName . ofOrganizationSourceName ("[ORGANIZATION]" , "[SOURCE ]" );
16931693 Policy policy = Policy .newBuilder ().build ();
16941694
16951695 Policy actualResponse = client .setIamPolicy (resource , policy );
@@ -1713,7 +1713,7 @@ public void setIamPolicyExceptionTest() throws Exception {
17131713 mockSecurityCenter .addException (exception );
17141714
17151715 try {
1716- ResourceName resource = AssetName . ofOrganizationAssetName ("[ORGANIZATION]" , "[ASSET ]" );
1716+ ResourceName resource = SourceName . ofOrganizationSourceName ("[ORGANIZATION]" , "[SOURCE ]" );
17171717 Policy policy = Policy .newBuilder ().build ();
17181718 client .setIamPolicy (resource , policy );
17191719 Assert .fail ("No exception raised" );
@@ -1771,7 +1771,7 @@ public void testIamPermissionsTest() throws Exception {
17711771 TestIamPermissionsResponse .newBuilder ().addAllPermissions (new ArrayList <String >()).build ();
17721772 mockSecurityCenter .addResponse (expectedResponse );
17731773
1774- ResourceName resource = AssetName . ofOrganizationAssetName ("[ORGANIZATION]" , "[ASSET ]" );
1774+ ResourceName resource = SourceName . ofOrganizationSourceName ("[ORGANIZATION]" , "[SOURCE ]" );
17751775 List <String > permissions = new ArrayList <>();
17761776
17771777 TestIamPermissionsResponse actualResponse = client .testIamPermissions (resource , permissions );
@@ -1795,7 +1795,7 @@ public void testIamPermissionsExceptionTest() throws Exception {
17951795 mockSecurityCenter .addException (exception );
17961796
17971797 try {
1798- ResourceName resource = AssetName . ofOrganizationAssetName ("[ORGANIZATION]" , "[ASSET ]" );
1798+ ResourceName resource = SourceName . ofOrganizationSourceName ("[ORGANIZATION]" , "[SOURCE ]" );
17991799 List <String > permissions = new ArrayList <>();
18001800 client .testIamPermissions (resource , permissions );
18011801 Assert .fail ("No exception raised" );
0 commit comments