Skip to content

Commit c884551

Browse files
chore: Update generation configuration at Thu Sep 11 02:27:29 UTC 2025 (googleapis#3284)
* chore: Update generation configuration at Tue Sep 9 02:27:44 UTC 2025 * chore: generate libraries at Tue Sep 9 02:28:19 UTC 2025 * chore: Update generation configuration at Wed Sep 10 02:25:32 UTC 2025 * chore: Update generation configuration at Thu Sep 11 02:27:29 UTC 2025 * chore(storagecontrol): add new dependency com.google.api.grpc:proto-google-iam-v1 --------- Co-authored-by: BenWhitehead <[email protected]>
1 parent eb1d2ba commit c884551

File tree

19 files changed

+2044
-141
lines changed

19 files changed

+2044
-141
lines changed

generation_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
gapic_generator_version: 2.62.1
2-
googleapis_commitish: 46403a9acec0719c130b33eb38b2ee62a45f9f6c
2+
googleapis_commitish: 9978d435df71bb16ecadd1e4421640748d0bf533
33
libraries_bom_version: 26.67.0
44
libraries:
55
- api_shortname: storage

google-cloud-storage-control/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
<groupId>com.google.api.grpc</groupId>
4040
<artifactId>proto-google-common-protos</artifactId>
4141
</dependency>
42+
<dependency>
43+
<groupId>com.google.api.grpc</groupId>
44+
<artifactId>proto-google-iam-v1</artifactId>
45+
</dependency>
4246
<dependency>
4347
<groupId>com.google.api</groupId>
4448
<artifactId>api-common</artifactId>

google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java

Lines changed: 477 additions & 0 deletions
Large diffs are not rendered by default.

google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
import com.google.api.gax.rpc.PagedCallSettings;
3434
import com.google.api.gax.rpc.TransportChannelProvider;
3535
import com.google.api.gax.rpc.UnaryCallSettings;
36+
import com.google.iam.v1.GetIamPolicyRequest;
37+
import com.google.iam.v1.Policy;
38+
import com.google.iam.v1.SetIamPolicyRequest;
39+
import com.google.iam.v1.TestIamPermissionsRequest;
40+
import com.google.iam.v1.TestIamPermissionsResponse;
3641
import com.google.longrunning.Operation;
3742
import com.google.protobuf.Empty;
3843
import com.google.storage.control.v2.stub.StorageControlStubSettings;
@@ -274,6 +279,22 @@ public UnaryCallSettings<GetAnywhereCacheRequest, AnywhereCache> getAnywhereCach
274279
.updateOrganizationIntelligenceConfigSettings();
275280
}
276281

282+
/** Returns the object with the settings used for calls to getIamPolicy. */
283+
public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
284+
return ((StorageControlStubSettings) getStubSettings()).getIamPolicySettings();
285+
}
286+
287+
/** Returns the object with the settings used for calls to setIamPolicy. */
288+
public UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings() {
289+
return ((StorageControlStubSettings) getStubSettings()).setIamPolicySettings();
290+
}
291+
292+
/** Returns the object with the settings used for calls to testIamPermissions. */
293+
public UnaryCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>
294+
testIamPermissionsSettings() {
295+
return ((StorageControlStubSettings) getStubSettings()).testIamPermissionsSettings();
296+
}
297+
277298
public static final StorageControlSettings create(StorageControlStubSettings stub)
278299
throws IOException {
279300
return new StorageControlSettings.Builder(stub.toBuilder()).build();
@@ -546,6 +567,22 @@ public UnaryCallSettings.Builder<RenameFolderRequest, Operation> renameFolderSet
546567
return getStubSettingsBuilder().updateOrganizationIntelligenceConfigSettings();
547568
}
548569

570+
/** Returns the builder for the settings used for calls to getIamPolicy. */
571+
public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettings() {
572+
return getStubSettingsBuilder().getIamPolicySettings();
573+
}
574+
575+
/** Returns the builder for the settings used for calls to setIamPolicy. */
576+
public UnaryCallSettings.Builder<SetIamPolicyRequest, Policy> setIamPolicySettings() {
577+
return getStubSettingsBuilder().setIamPolicySettings();
578+
}
579+
580+
/** Returns the builder for the settings used for calls to testIamPermissions. */
581+
public UnaryCallSettings.Builder<TestIamPermissionsRequest, TestIamPermissionsResponse>
582+
testIamPermissionsSettings() {
583+
return getStubSettingsBuilder().testIamPermissionsSettings();
584+
}
585+
549586
@Override
550587
public StorageControlSettings build() throws IOException {
551588
return new StorageControlSettings(this);

google-cloud-storage-control/src/main/java/com/google/storage/control/v2/gapic_metadata.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
"GetFolderIntelligenceConfig": {
3838
"methods": ["getFolderIntelligenceConfig", "getFolderIntelligenceConfig", "getFolderIntelligenceConfig", "getFolderIntelligenceConfigCallable"]
3939
},
40+
"GetIamPolicy": {
41+
"methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"]
42+
},
4043
"GetManagedFolder": {
4144
"methods": ["getManagedFolder", "getManagedFolder", "getManagedFolder", "getManagedFolderCallable"]
4245
},
@@ -67,6 +70,12 @@
6770
"ResumeAnywhereCache": {
6871
"methods": ["resumeAnywhereCache", "resumeAnywhereCache", "resumeAnywhereCache", "resumeAnywhereCacheCallable"]
6972
},
73+
"SetIamPolicy": {
74+
"methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"]
75+
},
76+
"TestIamPermissions": {
77+
"methods": ["testIamPermissions", "testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"]
78+
},
7079
"UpdateAnywhereCache": {
7180
"methods": ["updateAnywhereCacheAsync", "updateAnywhereCacheAsync", "updateAnywhereCacheOperationCallable", "updateAnywhereCacheCallable"]
7281
},

google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
import com.google.api.gax.rpc.UnaryCallable;
3131
import com.google.api.pathtemplate.PathTemplate;
3232
import com.google.common.base.Strings;
33+
import com.google.iam.v1.GetIamPolicyRequest;
34+
import com.google.iam.v1.Policy;
35+
import com.google.iam.v1.SetIamPolicyRequest;
36+
import com.google.iam.v1.TestIamPermissionsRequest;
37+
import com.google.iam.v1.TestIamPermissionsResponse;
3338
import com.google.longrunning.Operation;
3439
import com.google.longrunning.stub.GrpcOperationsStub;
3540
import com.google.protobuf.Empty;
@@ -343,6 +348,36 @@ public class GrpcStorageControlStub extends StorageControlStub {
343348
.setSampledToLocalTracing(true)
344349
.build();
345350

351+
private static final MethodDescriptor<GetIamPolicyRequest, Policy> getIamPolicyMethodDescriptor =
352+
MethodDescriptor.<GetIamPolicyRequest, Policy>newBuilder()
353+
.setType(MethodDescriptor.MethodType.UNARY)
354+
.setFullMethodName("google.storage.control.v2.StorageControl/GetIamPolicy")
355+
.setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
356+
.setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
357+
.setSampledToLocalTracing(true)
358+
.build();
359+
360+
private static final MethodDescriptor<SetIamPolicyRequest, Policy> setIamPolicyMethodDescriptor =
361+
MethodDescriptor.<SetIamPolicyRequest, Policy>newBuilder()
362+
.setType(MethodDescriptor.MethodType.UNARY)
363+
.setFullMethodName("google.storage.control.v2.StorageControl/SetIamPolicy")
364+
.setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
365+
.setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
366+
.setSampledToLocalTracing(true)
367+
.build();
368+
369+
private static final MethodDescriptor<TestIamPermissionsRequest, TestIamPermissionsResponse>
370+
testIamPermissionsMethodDescriptor =
371+
MethodDescriptor.<TestIamPermissionsRequest, TestIamPermissionsResponse>newBuilder()
372+
.setType(MethodDescriptor.MethodType.UNARY)
373+
.setFullMethodName("google.storage.control.v2.StorageControl/TestIamPermissions")
374+
.setRequestMarshaller(
375+
ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
376+
.setResponseMarshaller(
377+
ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
378+
.setSampledToLocalTracing(true)
379+
.build();
380+
346381
private final UnaryCallable<CreateFolderRequest, Folder> createFolderCallable;
347382
private final UnaryCallable<DeleteFolderRequest, Empty> deleteFolderCallable;
348383
private final UnaryCallable<GetFolderRequest, Folder> getFolderCallable;
@@ -391,6 +426,10 @@ public class GrpcStorageControlStub extends StorageControlStub {
391426
getOrganizationIntelligenceConfigCallable;
392427
private final UnaryCallable<UpdateOrganizationIntelligenceConfigRequest, IntelligenceConfig>
393428
updateOrganizationIntelligenceConfigCallable;
429+
private final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable;
430+
private final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable;
431+
private final UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse>
432+
testIamPermissionsCallable;
394433

395434
private final BackgroundResource backgroundResources;
396435
private final GrpcOperationsStub operationsStub;
@@ -430,6 +469,20 @@ public class GrpcStorageControlStub extends StorageControlStub {
430469
PathTemplate.create("{bucket=projects/*/buckets/*}/**");
431470
private static final PathTemplate LIST_ANYWHERE_CACHES_0_PATH_TEMPLATE =
432471
PathTemplate.create("{bucket=**}");
472+
private static final PathTemplate GET_IAM_POLICY_0_PATH_TEMPLATE =
473+
PathTemplate.create("{bucket=**}");
474+
private static final PathTemplate GET_IAM_POLICY_1_PATH_TEMPLATE =
475+
PathTemplate.create("{bucket=projects/*/buckets/*}/**");
476+
private static final PathTemplate SET_IAM_POLICY_0_PATH_TEMPLATE =
477+
PathTemplate.create("{bucket=**}");
478+
private static final PathTemplate SET_IAM_POLICY_1_PATH_TEMPLATE =
479+
PathTemplate.create("{bucket=projects/*/buckets/*}/**");
480+
private static final PathTemplate TEST_IAM_PERMISSIONS_0_PATH_TEMPLATE =
481+
PathTemplate.create("{bucket=**}");
482+
private static final PathTemplate TEST_IAM_PERMISSIONS_1_PATH_TEMPLATE =
483+
PathTemplate.create("{bucket=projects/*/buckets/*}/objects/**");
484+
private static final PathTemplate TEST_IAM_PERMISSIONS_2_PATH_TEMPLATE =
485+
PathTemplate.create("{bucket=projects/*/buckets/*}/managedFolders/**");
433486

434487
public static final GrpcStorageControlStub create(StorageControlStubSettings settings)
435488
throws IOException {
@@ -859,6 +912,44 @@ protected GrpcStorageControlStub(
859912
return builder.build();
860913
})
861914
.build();
915+
GrpcCallSettings<GetIamPolicyRequest, Policy> getIamPolicyTransportSettings =
916+
GrpcCallSettings.<GetIamPolicyRequest, Policy>newBuilder()
917+
.setMethodDescriptor(getIamPolicyMethodDescriptor)
918+
.setParamsExtractor(
919+
request -> {
920+
RequestParamsBuilder builder = RequestParamsBuilder.create();
921+
builder.add(request.getResource(), "bucket", GET_IAM_POLICY_0_PATH_TEMPLATE);
922+
builder.add(request.getResource(), "bucket", GET_IAM_POLICY_1_PATH_TEMPLATE);
923+
return builder.build();
924+
})
925+
.build();
926+
GrpcCallSettings<SetIamPolicyRequest, Policy> setIamPolicyTransportSettings =
927+
GrpcCallSettings.<SetIamPolicyRequest, Policy>newBuilder()
928+
.setMethodDescriptor(setIamPolicyMethodDescriptor)
929+
.setParamsExtractor(
930+
request -> {
931+
RequestParamsBuilder builder = RequestParamsBuilder.create();
932+
builder.add(request.getResource(), "bucket", SET_IAM_POLICY_0_PATH_TEMPLATE);
933+
builder.add(request.getResource(), "bucket", SET_IAM_POLICY_1_PATH_TEMPLATE);
934+
return builder.build();
935+
})
936+
.build();
937+
GrpcCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>
938+
testIamPermissionsTransportSettings =
939+
GrpcCallSettings.<TestIamPermissionsRequest, TestIamPermissionsResponse>newBuilder()
940+
.setMethodDescriptor(testIamPermissionsMethodDescriptor)
941+
.setParamsExtractor(
942+
request -> {
943+
RequestParamsBuilder builder = RequestParamsBuilder.create();
944+
builder.add(
945+
request.getResource(), "bucket", TEST_IAM_PERMISSIONS_0_PATH_TEMPLATE);
946+
builder.add(
947+
request.getResource(), "bucket", TEST_IAM_PERMISSIONS_1_PATH_TEMPLATE);
948+
builder.add(
949+
request.getResource(), "bucket", TEST_IAM_PERMISSIONS_2_PATH_TEMPLATE);
950+
return builder.build();
951+
})
952+
.build();
862953

863954
this.createFolderCallable =
864955
callableFactory.createUnaryCallable(
@@ -990,6 +1081,17 @@ protected GrpcStorageControlStub(
9901081
updateOrganizationIntelligenceConfigTransportSettings,
9911082
settings.updateOrganizationIntelligenceConfigSettings(),
9921083
clientContext);
1084+
this.getIamPolicyCallable =
1085+
callableFactory.createUnaryCallable(
1086+
getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
1087+
this.setIamPolicyCallable =
1088+
callableFactory.createUnaryCallable(
1089+
setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
1090+
this.testIamPermissionsCallable =
1091+
callableFactory.createUnaryCallable(
1092+
testIamPermissionsTransportSettings,
1093+
settings.testIamPermissionsSettings(),
1094+
clientContext);
9931095

9941096
this.backgroundResources =
9951097
new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -1157,6 +1259,22 @@ public UnaryCallable<GetAnywhereCacheRequest, AnywhereCache> getAnywhereCacheCal
11571259
return updateOrganizationIntelligenceConfigCallable;
11581260
}
11591261

1262+
@Override
1263+
public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
1264+
return getIamPolicyCallable;
1265+
}
1266+
1267+
@Override
1268+
public UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
1269+
return setIamPolicyCallable;
1270+
}
1271+
1272+
@Override
1273+
public UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse>
1274+
testIamPermissionsCallable() {
1275+
return testIamPermissionsCallable;
1276+
}
1277+
11601278
@Override
11611279
public final void close() {
11621280
try {

google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/HttpJsonStorageControlStub.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
import com.google.api.gax.rpc.ClientContext;
3030
import com.google.api.gax.rpc.RequestParamsBuilder;
3131
import com.google.api.gax.rpc.UnaryCallable;
32+
import com.google.iam.v1.GetIamPolicyRequest;
33+
import com.google.iam.v1.Policy;
34+
import com.google.iam.v1.SetIamPolicyRequest;
35+
import com.google.iam.v1.TestIamPermissionsRequest;
36+
import com.google.iam.v1.TestIamPermissionsResponse;
3237
import com.google.longrunning.Operation;
3338
import com.google.protobuf.Empty;
3439
import com.google.protobuf.TypeRegistry;
@@ -689,6 +694,28 @@ public UnaryCallable<GetAnywhereCacheRequest, AnywhereCache> getAnywhereCacheCal
689694
+ " method yet.");
690695
}
691696

697+
@Override
698+
public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
699+
throw new UnsupportedOperationException(
700+
"Not implemented: getIamPolicyCallable(). REST transport is not implemented for this method"
701+
+ " yet.");
702+
}
703+
704+
@Override
705+
public UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
706+
throw new UnsupportedOperationException(
707+
"Not implemented: setIamPolicyCallable(). REST transport is not implemented for this method"
708+
+ " yet.");
709+
}
710+
711+
@Override
712+
public UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse>
713+
testIamPermissionsCallable() {
714+
throw new UnsupportedOperationException(
715+
"Not implemented: testIamPermissionsCallable(). REST transport is not implemented for this"
716+
+ " method yet.");
717+
}
718+
692719
@Override
693720
public final void close() {
694721
try {

google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStub.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
import com.google.api.gax.core.BackgroundResource;
2424
import com.google.api.gax.rpc.OperationCallable;
2525
import com.google.api.gax.rpc.UnaryCallable;
26+
import com.google.iam.v1.GetIamPolicyRequest;
27+
import com.google.iam.v1.Policy;
28+
import com.google.iam.v1.SetIamPolicyRequest;
29+
import com.google.iam.v1.TestIamPermissionsRequest;
30+
import com.google.iam.v1.TestIamPermissionsResponse;
2631
import com.google.longrunning.Operation;
2732
import com.google.longrunning.stub.OperationsStub;
2833
import com.google.protobuf.Empty;
@@ -216,6 +221,19 @@ public UnaryCallable<GetAnywhereCacheRequest, AnywhereCache> getAnywhereCacheCal
216221
"Not implemented: updateOrganizationIntelligenceConfigCallable()");
217222
}
218223

224+
public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
225+
throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
226+
}
227+
228+
public UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
229+
throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
230+
}
231+
232+
public UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse>
233+
testIamPermissionsCallable() {
234+
throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
235+
}
236+
219237
@Override
220238
public abstract void close();
221239
}

0 commit comments

Comments
 (0)