Skip to content

Commit

Permalink
chore: update Java and Python dependencies (googleapis#669)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 408420890

Source-Link: googleapis/googleapis@2921f9f

Source-Link: https://github.com/googleapis/googleapis-gen/commit/6598ca8cbbf5226733a099c4506518a5af6ff74c
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjU5OGNhOGNiYmY1MjI2NzMzYTA5OWM0NTA2NTE4YTVhZjZmZjc0YyJ9
  • Loading branch information
gcf-owl-bot[bot] authored Nov 10, 2021
1 parent c648624 commit 6a5c941
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public void listFoldersTest() throws Exception {
.build();
mockFolders.addResponse(expectedResponse);

ResourceName parent = TagValueName.of("[TAG_VALUE]");
ResourceName parent = FolderName.of("[FOLDER]");

ListFoldersPagedResponse pagedListResponse = client.listFolders(parent);

Expand All @@ -218,7 +218,7 @@ public void listFoldersExceptionTest() throws Exception {
mockFolders.addException(exception);

try {
ResourceName parent = TagValueName.of("[TAG_VALUE]");
ResourceName parent = FolderName.of("[FOLDER]");
client.listFolders(parent);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
Expand Down Expand Up @@ -442,7 +442,7 @@ public void moveFolderTest() throws Exception {
mockFolders.addResponse(resultOperation);

FolderName name = FolderName.of("[FOLDER]");
ResourceName destinationParent = TagValueName.of("[TAG_VALUE]");
ResourceName destinationParent = FolderName.of("[FOLDER]");

Folder actualResponse = client.moveFolderAsync(name, destinationParent).get();
Assert.assertEquals(expectedResponse, actualResponse);
Expand All @@ -466,7 +466,7 @@ public void moveFolderExceptionTest() throws Exception {

try {
FolderName name = FolderName.of("[FOLDER]");
ResourceName destinationParent = TagValueName.of("[TAG_VALUE]");
ResourceName destinationParent = FolderName.of("[FOLDER]");
client.moveFolderAsync(name, destinationParent).get();
Assert.fail("No exception raised");
} catch (ExecutionException e) {
Expand Down Expand Up @@ -552,7 +552,7 @@ public void moveFolderTest3() throws Exception {
mockFolders.addResponse(resultOperation);

String name = "name3373707";
ResourceName destinationParent = TagValueName.of("[TAG_VALUE]");
ResourceName destinationParent = FolderName.of("[FOLDER]");

Folder actualResponse = client.moveFolderAsync(name, destinationParent).get();
Assert.assertEquals(expectedResponse, actualResponse);
Expand All @@ -576,7 +576,7 @@ public void moveFolderExceptionTest3() throws Exception {

try {
String name = "name3373707";
ResourceName destinationParent = TagValueName.of("[TAG_VALUE]");
ResourceName destinationParent = FolderName.of("[FOLDER]");
client.moveFolderAsync(name, destinationParent).get();
Assert.fail("No exception raised");
} catch (ExecutionException e) {
Expand Down Expand Up @@ -859,7 +859,7 @@ public void getIamPolicyTest() throws Exception {
.build();
mockFolders.addResponse(expectedResponse);

ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");

Policy actualResponse = client.getIamPolicy(resource);
Assert.assertEquals(expectedResponse, actualResponse);
Expand All @@ -881,7 +881,7 @@ public void getIamPolicyExceptionTest() throws Exception {
mockFolders.addException(exception);

try {
ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");
client.getIamPolicy(resource);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
Expand Down Expand Up @@ -939,7 +939,7 @@ public void setIamPolicyTest() throws Exception {
.build();
mockFolders.addResponse(expectedResponse);

ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");
Policy policy = Policy.newBuilder().build();

Policy actualResponse = client.setIamPolicy(resource, policy);
Expand All @@ -963,7 +963,7 @@ public void setIamPolicyExceptionTest() throws Exception {
mockFolders.addException(exception);

try {
ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");
Policy policy = Policy.newBuilder().build();
client.setIamPolicy(resource, policy);
Assert.fail("No exception raised");
Expand Down Expand Up @@ -1021,7 +1021,7 @@ public void testIamPermissionsTest() throws Exception {
TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList<String>()).build();
mockFolders.addResponse(expectedResponse);

ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");
List<String> permissions = new ArrayList<>();

TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions);
Expand All @@ -1045,7 +1045,7 @@ public void testIamPermissionsExceptionTest() throws Exception {
mockFolders.addException(exception);

try {
ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");
List<String> permissions = new ArrayList<>();
client.testIamPermissions(resource, permissions);
Assert.fail("No exception raised");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public void getIamPolicyTest() throws Exception {
.build();
mockOrganizations.addResponse(expectedResponse);

ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");

Policy actualResponse = client.getIamPolicy(resource);
Assert.assertEquals(expectedResponse, actualResponse);
Expand All @@ -250,7 +250,7 @@ public void getIamPolicyExceptionTest() throws Exception {
mockOrganizations.addException(exception);

try {
ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");
client.getIamPolicy(resource);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
Expand Down Expand Up @@ -308,7 +308,7 @@ public void setIamPolicyTest() throws Exception {
.build();
mockOrganizations.addResponse(expectedResponse);

ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");

Policy actualResponse = client.setIamPolicy(resource);
Assert.assertEquals(expectedResponse, actualResponse);
Expand All @@ -330,7 +330,7 @@ public void setIamPolicyExceptionTest() throws Exception {
mockOrganizations.addException(exception);

try {
ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");
client.setIamPolicy(resource);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
Expand Down Expand Up @@ -384,7 +384,7 @@ public void testIamPermissionsTest() throws Exception {
TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList<String>()).build();
mockOrganizations.addResponse(expectedResponse);

ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");
List<String> permissions = new ArrayList<>();

TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions);
Expand All @@ -408,7 +408,7 @@ public void testIamPermissionsExceptionTest() throws Exception {
mockOrganizations.addException(exception);

try {
ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");
List<String> permissions = new ArrayList<>();
client.testIamPermissions(resource, permissions);
Assert.fail("No exception raised");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public void listProjectsTest() throws Exception {
.build();
mockProjects.addResponse(expectedResponse);

ResourceName parent = TagValueName.of("[TAG_VALUE]");
ResourceName parent = FolderName.of("[FOLDER]");

ListProjectsPagedResponse pagedListResponse = client.listProjects(parent);

Expand All @@ -223,7 +223,7 @@ public void listProjectsExceptionTest() throws Exception {
mockProjects.addException(exception);

try {
ResourceName parent = TagValueName.of("[TAG_VALUE]");
ResourceName parent = FolderName.of("[FOLDER]");
client.listProjects(parent);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
Expand Down Expand Up @@ -453,7 +453,7 @@ public void moveProjectTest() throws Exception {
mockProjects.addResponse(resultOperation);

ProjectName name = ProjectName.of("[PROJECT]");
ResourceName destinationParent = TagValueName.of("[TAG_VALUE]");
ResourceName destinationParent = FolderName.of("[FOLDER]");

Project actualResponse = client.moveProjectAsync(name, destinationParent).get();
Assert.assertEquals(expectedResponse, actualResponse);
Expand All @@ -477,7 +477,7 @@ public void moveProjectExceptionTest() throws Exception {

try {
ProjectName name = ProjectName.of("[PROJECT]");
ResourceName destinationParent = TagValueName.of("[TAG_VALUE]");
ResourceName destinationParent = FolderName.of("[FOLDER]");
client.moveProjectAsync(name, destinationParent).get();
Assert.fail("No exception raised");
} catch (ExecutionException e) {
Expand Down Expand Up @@ -567,7 +567,7 @@ public void moveProjectTest3() throws Exception {
mockProjects.addResponse(resultOperation);

String name = "name3373707";
ResourceName destinationParent = TagValueName.of("[TAG_VALUE]");
ResourceName destinationParent = FolderName.of("[FOLDER]");

Project actualResponse = client.moveProjectAsync(name, destinationParent).get();
Assert.assertEquals(expectedResponse, actualResponse);
Expand All @@ -591,7 +591,7 @@ public void moveProjectExceptionTest3() throws Exception {

try {
String name = "name3373707";
ResourceName destinationParent = TagValueName.of("[TAG_VALUE]");
ResourceName destinationParent = FolderName.of("[FOLDER]");
client.moveProjectAsync(name, destinationParent).get();
Assert.fail("No exception raised");
} catch (ExecutionException e) {
Expand Down Expand Up @@ -884,7 +884,7 @@ public void getIamPolicyTest() throws Exception {
.build();
mockProjects.addResponse(expectedResponse);

ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");

Policy actualResponse = client.getIamPolicy(resource);
Assert.assertEquals(expectedResponse, actualResponse);
Expand All @@ -906,7 +906,7 @@ public void getIamPolicyExceptionTest() throws Exception {
mockProjects.addException(exception);

try {
ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");
client.getIamPolicy(resource);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
Expand Down Expand Up @@ -964,7 +964,7 @@ public void setIamPolicyTest() throws Exception {
.build();
mockProjects.addResponse(expectedResponse);

ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");
Policy policy = Policy.newBuilder().build();

Policy actualResponse = client.setIamPolicy(resource, policy);
Expand All @@ -988,7 +988,7 @@ public void setIamPolicyExceptionTest() throws Exception {
mockProjects.addException(exception);

try {
ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");
Policy policy = Policy.newBuilder().build();
client.setIamPolicy(resource, policy);
Assert.fail("No exception raised");
Expand Down Expand Up @@ -1046,7 +1046,7 @@ public void testIamPermissionsTest() throws Exception {
TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList<String>()).build();
mockProjects.addResponse(expectedResponse);

ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");
List<String> permissions = new ArrayList<>();

TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions);
Expand All @@ -1070,7 +1070,7 @@ public void testIamPermissionsExceptionTest() throws Exception {
mockProjects.addException(exception);

try {
ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");
List<String> permissions = new ArrayList<>();
client.testIamPermissions(resource, permissions);
Assert.fail("No exception raised");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void listTagBindingsTest() throws Exception {
.build();
mockTagBindings.addResponse(expectedResponse);

ResourceName parent = TagValueName.of("[TAG_VALUE]");
ResourceName parent = FolderName.of("[FOLDER]");

ListTagBindingsPagedResponse pagedListResponse = client.listTagBindings(parent);

Expand All @@ -120,7 +120,7 @@ public void listTagBindingsExceptionTest() throws Exception {
mockTagBindings.addException(exception);

try {
ResourceName parent = TagValueName.of("[TAG_VALUE]");
ResourceName parent = FolderName.of("[FOLDER]");
client.listTagBindings(parent);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void listTagKeysTest() throws Exception {
.build();
mockTagKeys.addResponse(expectedResponse);

ResourceName parent = TagValueName.of("[TAG_VALUE]");
ResourceName parent = FolderName.of("[FOLDER]");

ListTagKeysPagedResponse pagedListResponse = client.listTagKeys(parent);

Expand All @@ -129,7 +129,7 @@ public void listTagKeysExceptionTest() throws Exception {
mockTagKeys.addException(exception);

try {
ResourceName parent = TagValueName.of("[TAG_VALUE]");
ResourceName parent = FolderName.of("[FOLDER]");
client.listTagKeys(parent);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
Expand Down Expand Up @@ -496,7 +496,7 @@ public void getIamPolicyTest() throws Exception {
.build();
mockTagKeys.addResponse(expectedResponse);

ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");

Policy actualResponse = client.getIamPolicy(resource);
Assert.assertEquals(expectedResponse, actualResponse);
Expand All @@ -518,7 +518,7 @@ public void getIamPolicyExceptionTest() throws Exception {
mockTagKeys.addException(exception);

try {
ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");
client.getIamPolicy(resource);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
Expand Down Expand Up @@ -576,7 +576,7 @@ public void setIamPolicyTest() throws Exception {
.build();
mockTagKeys.addResponse(expectedResponse);

ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");
Policy policy = Policy.newBuilder().build();

Policy actualResponse = client.setIamPolicy(resource, policy);
Expand All @@ -600,7 +600,7 @@ public void setIamPolicyExceptionTest() throws Exception {
mockTagKeys.addException(exception);

try {
ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");
Policy policy = Policy.newBuilder().build();
client.setIamPolicy(resource, policy);
Assert.fail("No exception raised");
Expand Down Expand Up @@ -658,7 +658,7 @@ public void testIamPermissionsTest() throws Exception {
TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList<String>()).build();
mockTagKeys.addResponse(expectedResponse);

ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");
List<String> permissions = new ArrayList<>();

TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions);
Expand All @@ -682,7 +682,7 @@ public void testIamPermissionsExceptionTest() throws Exception {
mockTagKeys.addException(exception);

try {
ResourceName resource = TagValueName.of("[TAG_VALUE]");
ResourceName resource = FolderName.of("[FOLDER]");
List<String> permissions = new ArrayList<>();
client.testIamPermissions(resource, permissions);
Assert.fail("No exception raised");
Expand Down
Loading

0 comments on commit 6a5c941

Please sign in to comment.