Skip to content

Commit 53b6927

Browse files
chore: Update generation configuration at Thu May 22 02:30:36 UTC 2025 (#3114)
* chore: Update generation configuration at Thu May 22 02:30:36 UTC 2025 * chore: generate libraries at Thu May 22 02:31:04 UTC 2025
1 parent 7c2ae95 commit 53b6927

File tree

62 files changed

+13973
-5663
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+13973
-5663
lines changed

gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java

Lines changed: 40 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
* </tr>
185185
* <tr>
186186
* <td><p> GetIamPolicy</td>
187-
* <td><p> Gets the IAM policy for a specified bucket. The `resource` field in the request should be `projects/_/buckets/{bucket}`.</td>
187+
* <td><p> Gets the IAM policy for a specified bucket. The `resource` field in the request should be `projects/_/buckets/{bucket}` for a bucket, or `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.</td>
188188
* <td>
189189
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
190190
* <ul>
@@ -203,7 +203,7 @@
203203
* </tr>
204204
* <tr>
205205
* <td><p> SetIamPolicy</td>
206-
* <td><p> Updates an IAM policy for the specified bucket. The `resource` field in the request should be `projects/_/buckets/{bucket}`.</td>
206+
* <td><p> Updates an IAM policy for the specified bucket. The `resource` field in the request should be `projects/_/buckets/{bucket}` for a bucket, or `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.</td>
207207
* <td>
208208
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
209209
* <ul>
@@ -856,11 +856,13 @@ public final UnaryCallable<GetBucketRequest, Bucket> getBucketCallable() {
856856
* }
857857
* }</pre>
858858
*
859-
* @param parent Required. The project to which this bucket will belong.
860-
* @param bucket Properties of the new bucket being inserted. The name of the bucket is specified
861-
* in the `bucket_id` field. Populating `bucket.name` field will result in an error. The
862-
* project of the bucket must be specified in the `bucket.project` field. This field must be
863-
* in `projects/{projectIdentifier}` format, {projectIdentifier} can be the project ID or
859+
* @param parent Required. The project to which this bucket will belong. This field must either be
860+
* empty or `projects/_`. The project ID that owns this bucket should be specified in the
861+
* `bucket.project` field.
862+
* @param bucket Optional. Properties of the new bucket being inserted. The name of the bucket is
863+
* specified in the `bucket_id` field. Populating `bucket.name` field will result in an error.
864+
* The project of the bucket must be specified in the `bucket.project` field. This field must
865+
* be in `projects/{projectIdentifier}` format, {projectIdentifier} can be the project ID or
864866
* project number. The `parent` field must be either empty or `projects/_`.
865867
* @param bucketId Required. The ID to use for this bucket, which will become the final component
866868
* of the bucket's resource name. For example, the value `foo` might result in a bucket with
@@ -897,11 +899,13 @@ public final Bucket createBucket(ProjectName parent, Bucket bucket, String bucke
897899
* }
898900
* }</pre>
899901
*
900-
* @param parent Required. The project to which this bucket will belong.
901-
* @param bucket Properties of the new bucket being inserted. The name of the bucket is specified
902-
* in the `bucket_id` field. Populating `bucket.name` field will result in an error. The
903-
* project of the bucket must be specified in the `bucket.project` field. This field must be
904-
* in `projects/{projectIdentifier}` format, {projectIdentifier} can be the project ID or
902+
* @param parent Required. The project to which this bucket will belong. This field must either be
903+
* empty or `projects/_`. The project ID that owns this bucket should be specified in the
904+
* `bucket.project` field.
905+
* @param bucket Optional. Properties of the new bucket being inserted. The name of the bucket is
906+
* specified in the `bucket_id` field. Populating `bucket.name` field will result in an error.
907+
* The project of the bucket must be specified in the `bucket.project` field. This field must
908+
* be in `projects/{projectIdentifier}` format, {projectIdentifier} can be the project ID or
905909
* project number. The `parent` field must be either empty or `projects/_`.
906910
* @param bucketId Required. The ID to use for this bucket, which will become the final component
907911
* of the bucket's resource name. For example, the value `foo` might result in a bucket with
@@ -1266,7 +1270,8 @@ public final Bucket lockBucketRetentionPolicy(LockBucketRetentionPolicyRequest r
12661270
// AUTO-GENERATED DOCUMENTATION AND METHOD.
12671271
/**
12681272
* Gets the IAM policy for a specified bucket. The `resource` field in the request should be
1269-
* `projects/_/buckets/{bucket}`.
1273+
* `projects/_/buckets/{bucket}` for a bucket, or
1274+
* `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.
12701275
*
12711276
* <p>Sample code:
12721277
*
@@ -1298,7 +1303,8 @@ public final Policy getIamPolicy(ResourceName resource) {
12981303
// AUTO-GENERATED DOCUMENTATION AND METHOD.
12991304
/**
13001305
* Gets the IAM policy for a specified bucket. The `resource` field in the request should be
1301-
* `projects/_/buckets/{bucket}`.
1306+
* `projects/_/buckets/{bucket}` for a bucket, or
1307+
* `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.
13021308
*
13031309
* <p>Sample code:
13041310
*
@@ -1327,7 +1333,8 @@ public final Policy getIamPolicy(String resource) {
13271333
// AUTO-GENERATED DOCUMENTATION AND METHOD.
13281334
/**
13291335
* Gets the IAM policy for a specified bucket. The `resource` field in the request should be
1330-
* `projects/_/buckets/{bucket}`.
1336+
* `projects/_/buckets/{bucket}` for a bucket, or
1337+
* `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.
13311338
*
13321339
* <p>Sample code:
13331340
*
@@ -1359,7 +1366,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
13591366
// AUTO-GENERATED DOCUMENTATION AND METHOD.
13601367
/**
13611368
* Gets the IAM policy for a specified bucket. The `resource` field in the request should be
1362-
* `projects/_/buckets/{bucket}`.
1369+
* `projects/_/buckets/{bucket}` for a bucket, or
1370+
* `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.
13631371
*
13641372
* <p>Sample code:
13651373
*
@@ -1390,7 +1398,8 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
13901398
// AUTO-GENERATED DOCUMENTATION AND METHOD.
13911399
/**
13921400
* Updates an IAM policy for the specified bucket. The `resource` field in the request should be
1393-
* `projects/_/buckets/{bucket}`.
1401+
* `projects/_/buckets/{bucket}` for a bucket, or
1402+
* `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.
13941403
*
13951404
* <p>Sample code:
13961405
*
@@ -1427,7 +1436,8 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
14271436
// AUTO-GENERATED DOCUMENTATION AND METHOD.
14281437
/**
14291438
* Updates an IAM policy for the specified bucket. The `resource` field in the request should be
1430-
* `projects/_/buckets/{bucket}`.
1439+
* `projects/_/buckets/{bucket}` for a bucket, or
1440+
* `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.
14311441
*
14321442
* <p>Sample code:
14331443
*
@@ -1461,7 +1471,8 @@ public final Policy setIamPolicy(String resource, Policy policy) {
14611471
// AUTO-GENERATED DOCUMENTATION AND METHOD.
14621472
/**
14631473
* Updates an IAM policy for the specified bucket. The `resource` field in the request should be
1464-
* `projects/_/buckets/{bucket}`.
1474+
* `projects/_/buckets/{bucket}` for a bucket, or
1475+
* `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.
14651476
*
14661477
* <p>Sample code:
14671478
*
@@ -1494,7 +1505,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
14941505
// AUTO-GENERATED DOCUMENTATION AND METHOD.
14951506
/**
14961507
* Updates an IAM policy for the specified bucket. The `resource` field in the request should be
1497-
* `projects/_/buckets/{bucket}`.
1508+
* `projects/_/buckets/{bucket}` for a bucket, or
1509+
* `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.
14981510
*
14991511
* <p>Sample code:
15001512
*
@@ -1977,8 +1989,8 @@ public final void deleteObject(String bucket, String object) {
19771989
* @param bucket Required. Name of the bucket in which the object resides.
19781990
* @param object Required. The name of the finalized object to delete. Note: If you want to delete
19791991
* an unfinalized resumable upload please use `CancelResumableWrite`.
1980-
* @param generation If present, permanently deletes a specific revision of this object (as
1981-
* opposed to the latest version, the default).
1992+
* @param generation Optional. If present, permanently deletes a specific revision of this object
1993+
* (as opposed to the latest version, the default).
19821994
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
19831995
*/
19841996
public final void deleteObject(BucketName bucket, String object, long generation) {
@@ -2028,8 +2040,8 @@ public final void deleteObject(BucketName bucket, String object, long generation
20282040
* @param bucket Required. Name of the bucket in which the object resides.
20292041
* @param object Required. The name of the finalized object to delete. Note: If you want to delete
20302042
* an unfinalized resumable upload please use `CancelResumableWrite`.
2031-
* @param generation If present, permanently deletes a specific revision of this object (as
2032-
* opposed to the latest version, the default).
2043+
* @param generation Optional. If present, permanently deletes a specific revision of this object
2044+
* (as opposed to the latest version, the default).
20332045
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
20342046
*/
20352047
public final void deleteObject(String bucket, String object, long generation) {
@@ -2483,8 +2495,8 @@ public final Object getObject(String bucket, String object) {
24832495
*
24842496
* @param bucket Required. Name of the bucket in which the object resides.
24852497
* @param object Required. Name of the object.
2486-
* @param generation If present, selects a specific revision of this object (as opposed to the
2487-
* latest version, the default).
2498+
* @param generation Optional. If present, selects a specific revision of this object (as opposed
2499+
* to the latest version, the default).
24882500
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
24892501
*/
24902502
public final Object getObject(BucketName bucket, String object, long generation) {
@@ -2526,8 +2538,8 @@ public final Object getObject(BucketName bucket, String object, long generation)
25262538
*
25272539
* @param bucket Required. Name of the bucket in which the object resides.
25282540
* @param object Required. Name of the object.
2529-
* @param generation If present, selects a specific revision of this object (as opposed to the
2530-
* latest version, the default).
2541+
* @param generation Optional. If present, selects a specific revision of this object (as opposed
2542+
* to the latest version, the default).
25312543
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
25322544
*/
25332545
public final Object getObject(String bucket, String object, long generation) {

gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,12 @@ public class GrpcStorageStub extends StorageStub {
363363
PathTemplate.create("{bucket=**}");
364364
private static final PathTemplate GET_IAM_POLICY_0_PATH_TEMPLATE =
365365
PathTemplate.create("{bucket=**}");
366+
private static final PathTemplate GET_IAM_POLICY_1_PATH_TEMPLATE =
367+
PathTemplate.create("{bucket=projects/*/buckets/*}/**");
366368
private static final PathTemplate SET_IAM_POLICY_0_PATH_TEMPLATE =
367369
PathTemplate.create("{bucket=**}");
370+
private static final PathTemplate SET_IAM_POLICY_1_PATH_TEMPLATE =
371+
PathTemplate.create("{bucket=projects/*/buckets/*}/**");
368372
private static final PathTemplate TEST_IAM_PERMISSIONS_0_PATH_TEMPLATE =
369373
PathTemplate.create("{bucket=**}");
370374
private static final PathTemplate TEST_IAM_PERMISSIONS_1_PATH_TEMPLATE =
@@ -501,6 +505,7 @@ protected GrpcStorageStub(
501505
request -> {
502506
RequestParamsBuilder builder = RequestParamsBuilder.create();
503507
builder.add(request.getResource(), "bucket", GET_IAM_POLICY_0_PATH_TEMPLATE);
508+
builder.add(request.getResource(), "bucket", GET_IAM_POLICY_1_PATH_TEMPLATE);
504509
return builder.build();
505510
})
506511
.build();
@@ -511,6 +516,7 @@ protected GrpcStorageStub(
511516
request -> {
512517
RequestParamsBuilder builder = RequestParamsBuilder.create();
513518
builder.add(request.getResource(), "bucket", SET_IAM_POLICY_0_PATH_TEMPLATE);
519+
builder.add(request.getResource(), "bucket", SET_IAM_POLICY_1_PATH_TEMPLATE);
514520
return builder.build();
515521
})
516522
.build();

gapic-google-cloud-storage-v2/src/main/resources/META-INF/native-image/com.google.storage.v2/reflect-config.json

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1889,6 +1889,60 @@
18891889
"allDeclaredClasses": true,
18901890
"allPublicClasses": true
18911891
},
1892+
{
1893+
"name": "com.google.storage.v2.Bucket$IpFilter",
1894+
"queryAllDeclaredConstructors": true,
1895+
"queryAllPublicConstructors": true,
1896+
"queryAllDeclaredMethods": true,
1897+
"allPublicMethods": true,
1898+
"allDeclaredClasses": true,
1899+
"allPublicClasses": true
1900+
},
1901+
{
1902+
"name": "com.google.storage.v2.Bucket$IpFilter$Builder",
1903+
"queryAllDeclaredConstructors": true,
1904+
"queryAllPublicConstructors": true,
1905+
"queryAllDeclaredMethods": true,
1906+
"allPublicMethods": true,
1907+
"allDeclaredClasses": true,
1908+
"allPublicClasses": true
1909+
},
1910+
{
1911+
"name": "com.google.storage.v2.Bucket$IpFilter$PublicNetworkSource",
1912+
"queryAllDeclaredConstructors": true,
1913+
"queryAllPublicConstructors": true,
1914+
"queryAllDeclaredMethods": true,
1915+
"allPublicMethods": true,
1916+
"allDeclaredClasses": true,
1917+
"allPublicClasses": true
1918+
},
1919+
{
1920+
"name": "com.google.storage.v2.Bucket$IpFilter$PublicNetworkSource$Builder",
1921+
"queryAllDeclaredConstructors": true,
1922+
"queryAllPublicConstructors": true,
1923+
"queryAllDeclaredMethods": true,
1924+
"allPublicMethods": true,
1925+
"allDeclaredClasses": true,
1926+
"allPublicClasses": true
1927+
},
1928+
{
1929+
"name": "com.google.storage.v2.Bucket$IpFilter$VpcNetworkSource",
1930+
"queryAllDeclaredConstructors": true,
1931+
"queryAllPublicConstructors": true,
1932+
"queryAllDeclaredMethods": true,
1933+
"allPublicMethods": true,
1934+
"allDeclaredClasses": true,
1935+
"allPublicClasses": true
1936+
},
1937+
{
1938+
"name": "com.google.storage.v2.Bucket$IpFilter$VpcNetworkSource$Builder",
1939+
"queryAllDeclaredConstructors": true,
1940+
"queryAllPublicConstructors": true,
1941+
"queryAllDeclaredMethods": true,
1942+
"allPublicMethods": true,
1943+
"allDeclaredClasses": true,
1944+
"allPublicClasses": true
1945+
},
18921946
{
18931947
"name": "com.google.storage.v2.Bucket$Lifecycle",
18941948
"queryAllDeclaredConstructors": true,
@@ -2447,6 +2501,33 @@
24472501
"allDeclaredClasses": true,
24482502
"allPublicClasses": true
24492503
},
2504+
{
2505+
"name": "com.google.storage.v2.Object$Retention",
2506+
"queryAllDeclaredConstructors": true,
2507+
"queryAllPublicConstructors": true,
2508+
"queryAllDeclaredMethods": true,
2509+
"allPublicMethods": true,
2510+
"allDeclaredClasses": true,
2511+
"allPublicClasses": true
2512+
},
2513+
{
2514+
"name": "com.google.storage.v2.Object$Retention$Builder",
2515+
"queryAllDeclaredConstructors": true,
2516+
"queryAllPublicConstructors": true,
2517+
"queryAllDeclaredMethods": true,
2518+
"allPublicMethods": true,
2519+
"allDeclaredClasses": true,
2520+
"allPublicClasses": true
2521+
},
2522+
{
2523+
"name": "com.google.storage.v2.Object$Retention$Mode",
2524+
"queryAllDeclaredConstructors": true,
2525+
"queryAllPublicConstructors": true,
2526+
"queryAllDeclaredMethods": true,
2527+
"allPublicMethods": true,
2528+
"allDeclaredClasses": true,
2529+
"allPublicClasses": true
2530+
},
24502531
{
24512532
"name": "com.google.storage.v2.ObjectAccessControl",
24522533
"queryAllDeclaredConstructors": true,

0 commit comments

Comments
 (0)