Skip to content

Commit

Permalink
chore: Integrate new gapic-generator-java and rules_gapic (googleapis…
Browse files Browse the repository at this point in the history
…#782)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 454027580

Source-Link: googleapis/googleapis@1b22277

Source-Link: https://github.com/googleapis/googleapis-gen/commit/e04cea20d0d12eb5c3bdb360a9e72b654edcb638
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTA0Y2VhMjBkMGQxMmViNWMzYmRiMzYwYTllNzJiNjU0ZWRjYjYzOCJ9
  • Loading branch information
gcf-owl-bot[bot] authored Jun 13, 2022
1 parent a1ac0e6 commit 7357bca
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public final ListSecretsPagedResponse listSecrets(ListSecretsRequest request) {
* while (true) {
* ListSecretsResponse response =
* secretManagerServiceClient.listSecretsCallable().call(request);
* for (Secret element : response.getResponsesList()) {
* for (Secret element : response.getSecretsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -1026,7 +1026,7 @@ public final ListSecretVersionsPagedResponse listSecretVersions(
* while (true) {
* ListSecretVersionsResponse response =
* secretManagerServiceClient.listSecretVersionsCallable().call(request);
* for (SecretVersion element : response.getResponsesList()) {
* for (SecretVersion element : response.getVersionsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -1696,7 +1696,7 @@ public final SecretVersion destroySecretVersion(DestroySecretVersionRequest requ
* SecretManagerServiceClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(ProjectName.of("[PROJECT]").toString())
* .setResource(SecretName.of("[PROJECT]", "[SECRET]").toString())
* .setPolicy(Policy.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
Expand Down Expand Up @@ -1727,7 +1727,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* SecretManagerServiceClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(ProjectName.of("[PROJECT]").toString())
* .setResource(SecretName.of("[PROJECT]", "[SECRET]").toString())
* .setPolicy(Policy.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
Expand Down Expand Up @@ -1756,7 +1756,7 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
* SecretManagerServiceClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(ProjectName.of("[PROJECT]").toString())
* .setResource(SecretName.of("[PROJECT]", "[SECRET]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* Policy response = secretManagerServiceClient.getIamPolicy(request);
Expand Down Expand Up @@ -1784,7 +1784,7 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* SecretManagerServiceClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(ProjectName.of("[PROJECT]").toString())
* .setResource(SecretName.of("[PROJECT]", "[SECRET]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* ApiFuture<Policy> future =
Expand Down Expand Up @@ -1816,7 +1816,7 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
* SecretManagerServiceClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(ProjectName.of("[PROJECT]").toString())
* .setResource(SecretName.of("[PROJECT]", "[SECRET]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* TestIamPermissionsResponse response = secretManagerServiceClient.testIamPermissions(request);
Expand Down Expand Up @@ -1848,7 +1848,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
* SecretManagerServiceClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(ProjectName.of("[PROJECT]").toString())
* .setResource(SecretName.of("[PROJECT]", "[SECRET]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* ApiFuture<TestIamPermissionsResponse> future =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ public void setIamPolicyTest() throws Exception {

SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder()
.setResource(ProjectName.of("[PROJECT]").toString())
.setResource(SecretName.of("[PROJECT]", "[SECRET]").toString())
.setPolicy(Policy.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Expand Down Expand Up @@ -1137,7 +1137,7 @@ public void setIamPolicyExceptionTest() throws Exception {
try {
SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder()
.setResource(ProjectName.of("[PROJECT]").toString())
.setResource(SecretName.of("[PROJECT]", "[SECRET]").toString())
.setPolicy(Policy.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Expand All @@ -1161,7 +1161,7 @@ public void getIamPolicyTest() throws Exception {

GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
.setResource(ProjectName.of("[PROJECT]").toString())
.setResource(SecretName.of("[PROJECT]", "[SECRET]").toString())
.setOptions(GetPolicyOptions.newBuilder().build())
.build();

Expand All @@ -1188,7 +1188,7 @@ public void getIamPolicyExceptionTest() throws Exception {
try {
GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
.setResource(ProjectName.of("[PROJECT]").toString())
.setResource(SecretName.of("[PROJECT]", "[SECRET]").toString())
.setOptions(GetPolicyOptions.newBuilder().build())
.build();
client.getIamPolicy(request);
Expand All @@ -1206,7 +1206,7 @@ public void testIamPermissionsTest() throws Exception {

TestIamPermissionsRequest request =
TestIamPermissionsRequest.newBuilder()
.setResource(ProjectName.of("[PROJECT]").toString())
.setResource(SecretName.of("[PROJECT]", "[SECRET]").toString())
.addAllPermissions(new ArrayList<String>())
.build();

Expand All @@ -1233,7 +1233,7 @@ public void testIamPermissionsExceptionTest() throws Exception {
try {
TestIamPermissionsRequest request =
TestIamPermissionsRequest.newBuilder()
.setResource(ProjectName.of("[PROJECT]").toString())
.setResource(SecretName.of("[PROJECT]", "[SECRET]").toString())
.addAllPermissions(new ArrayList<String>())
.build();
client.testIamPermissions(request);
Expand Down

0 comments on commit 7357bca

Please sign in to comment.