Skip to content

chore: Update generation configuration at Thu May 22 02:30:36 UTC 2025 #3114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
* </tr>
* <tr>
* <td><p> GetIamPolicy</td>
* <td><p> Gets the IAM policy for a specified bucket. The `resource` field in the request should be `projects/_/buckets/{bucket}`.</td>
* <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>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
Expand All @@ -203,7 +203,7 @@
* </tr>
* <tr>
* <td><p> SetIamPolicy</td>
* <td><p> Updates an IAM policy for the specified bucket. The `resource` field in the request should be `projects/_/buckets/{bucket}`.</td>
* <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>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
Expand Down Expand Up @@ -856,11 +856,13 @@ public final UnaryCallable<GetBucketRequest, Bucket> getBucketCallable() {
* }
* }</pre>
*
* @param parent Required. The project to which this bucket will belong.
* @param bucket Properties of the new bucket being inserted. The name of the bucket is specified
* in the `bucket_id` field. Populating `bucket.name` field will result in an error. The
* project of the bucket must be specified in the `bucket.project` field. This field must be
* in `projects/{projectIdentifier}` format, {projectIdentifier} can be the project ID or
* @param parent Required. The project to which this bucket will belong. This field must either be
* empty or `projects/_`. The project ID that owns this bucket should be specified in the
* `bucket.project` field.
* @param bucket Optional. Properties of the new bucket being inserted. The name of the bucket is
* specified in the `bucket_id` field. Populating `bucket.name` field will result in an error.
* The project of the bucket must be specified in the `bucket.project` field. This field must
* be in `projects/{projectIdentifier}` format, {projectIdentifier} can be the project ID or
* project number. The `parent` field must be either empty or `projects/_`.
* @param bucketId Required. The ID to use for this bucket, which will become the final component
* of the bucket's resource name. For example, the value `foo` might result in a bucket with
Expand Down Expand Up @@ -897,11 +899,13 @@ public final Bucket createBucket(ProjectName parent, Bucket bucket, String bucke
* }
* }</pre>
*
* @param parent Required. The project to which this bucket will belong.
* @param bucket Properties of the new bucket being inserted. The name of the bucket is specified
* in the `bucket_id` field. Populating `bucket.name` field will result in an error. The
* project of the bucket must be specified in the `bucket.project` field. This field must be
* in `projects/{projectIdentifier}` format, {projectIdentifier} can be the project ID or
* @param parent Required. The project to which this bucket will belong. This field must either be
* empty or `projects/_`. The project ID that owns this bucket should be specified in the
* `bucket.project` field.
* @param bucket Optional. Properties of the new bucket being inserted. The name of the bucket is
* specified in the `bucket_id` field. Populating `bucket.name` field will result in an error.
* The project of the bucket must be specified in the `bucket.project` field. This field must
* be in `projects/{projectIdentifier}` format, {projectIdentifier} can be the project ID or
* project number. The `parent` field must be either empty or `projects/_`.
* @param bucketId Required. The ID to use for this bucket, which will become the final component
* of the bucket's resource name. For example, the value `foo` might result in a bucket with
Expand Down Expand Up @@ -1266,7 +1270,8 @@ public final Bucket lockBucketRetentionPolicy(LockBucketRetentionPolicyRequest r
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets the IAM policy for a specified bucket. The `resource` field in the request should be
* `projects/_/buckets/{bucket}`.
* `projects/_/buckets/{bucket}` for a bucket, or
* `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -1298,7 +1303,8 @@ public final Policy getIamPolicy(ResourceName resource) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets the IAM policy for a specified bucket. The `resource` field in the request should be
* `projects/_/buckets/{bucket}`.
* `projects/_/buckets/{bucket}` for a bucket, or
* `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -1327,7 +1333,8 @@ public final Policy getIamPolicy(String resource) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets the IAM policy for a specified bucket. The `resource` field in the request should be
* `projects/_/buckets/{bucket}`.
* `projects/_/buckets/{bucket}` for a bucket, or
* `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -1359,7 +1366,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets the IAM policy for a specified bucket. The `resource` field in the request should be
* `projects/_/buckets/{bucket}`.
* `projects/_/buckets/{bucket}` for a bucket, or
* `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -1390,7 +1398,8 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates an IAM policy for the specified bucket. The `resource` field in the request should be
* `projects/_/buckets/{bucket}`.
* `projects/_/buckets/{bucket}` for a bucket, or
* `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -1427,7 +1436,8 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates an IAM policy for the specified bucket. The `resource` field in the request should be
* `projects/_/buckets/{bucket}`.
* `projects/_/buckets/{bucket}` for a bucket, or
* `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -1461,7 +1471,8 @@ public final Policy setIamPolicy(String resource, Policy policy) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates an IAM policy for the specified bucket. The `resource` field in the request should be
* `projects/_/buckets/{bucket}`.
* `projects/_/buckets/{bucket}` for a bucket, or
* `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -1494,7 +1505,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates an IAM policy for the specified bucket. The `resource` field in the request should be
* `projects/_/buckets/{bucket}`.
* `projects/_/buckets/{bucket}` for a bucket, or
* `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -1977,8 +1989,8 @@ public final void deleteObject(String bucket, String object) {
* @param bucket Required. Name of the bucket in which the object resides.
* @param object Required. The name of the finalized object to delete. Note: If you want to delete
* an unfinalized resumable upload please use `CancelResumableWrite`.
* @param generation If present, permanently deletes a specific revision of this object (as
* opposed to the latest version, the default).
* @param generation Optional. If present, permanently deletes a specific revision of this object
* (as opposed to the latest version, the default).
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteObject(BucketName bucket, String object, long generation) {
Expand Down Expand Up @@ -2028,8 +2040,8 @@ public final void deleteObject(BucketName bucket, String object, long generation
* @param bucket Required. Name of the bucket in which the object resides.
* @param object Required. The name of the finalized object to delete. Note: If you want to delete
* an unfinalized resumable upload please use `CancelResumableWrite`.
* @param generation If present, permanently deletes a specific revision of this object (as
* opposed to the latest version, the default).
* @param generation Optional. If present, permanently deletes a specific revision of this object
* (as opposed to the latest version, the default).
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteObject(String bucket, String object, long generation) {
Expand Down Expand Up @@ -2483,8 +2495,8 @@ public final Object getObject(String bucket, String object) {
*
* @param bucket Required. Name of the bucket in which the object resides.
* @param object Required. Name of the object.
* @param generation If present, selects a specific revision of this object (as opposed to the
* latest version, the default).
* @param generation Optional. If present, selects a specific revision of this object (as opposed
* to the latest version, the default).
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Object getObject(BucketName bucket, String object, long generation) {
Expand Down Expand Up @@ -2526,8 +2538,8 @@ public final Object getObject(BucketName bucket, String object, long generation)
*
* @param bucket Required. Name of the bucket in which the object resides.
* @param object Required. Name of the object.
* @param generation If present, selects a specific revision of this object (as opposed to the
* latest version, the default).
* @param generation Optional. If present, selects a specific revision of this object (as opposed
* to the latest version, the default).
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Object getObject(String bucket, String object, long generation) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,12 @@ public class GrpcStorageStub extends StorageStub {
PathTemplate.create("{bucket=**}");
private static final PathTemplate GET_IAM_POLICY_0_PATH_TEMPLATE =
PathTemplate.create("{bucket=**}");
private static final PathTemplate GET_IAM_POLICY_1_PATH_TEMPLATE =
PathTemplate.create("{bucket=projects/*/buckets/*}/**");
private static final PathTemplate SET_IAM_POLICY_0_PATH_TEMPLATE =
PathTemplate.create("{bucket=**}");
private static final PathTemplate SET_IAM_POLICY_1_PATH_TEMPLATE =
PathTemplate.create("{bucket=projects/*/buckets/*}/**");
private static final PathTemplate TEST_IAM_PERMISSIONS_0_PATH_TEMPLATE =
PathTemplate.create("{bucket=**}");
private static final PathTemplate TEST_IAM_PERMISSIONS_1_PATH_TEMPLATE =
Expand Down Expand Up @@ -501,6 +505,7 @@ protected GrpcStorageStub(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add(request.getResource(), "bucket", GET_IAM_POLICY_0_PATH_TEMPLATE);
builder.add(request.getResource(), "bucket", GET_IAM_POLICY_1_PATH_TEMPLATE);
return builder.build();
})
.build();
Expand All @@ -511,6 +516,7 @@ protected GrpcStorageStub(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add(request.getResource(), "bucket", SET_IAM_POLICY_0_PATH_TEMPLATE);
builder.add(request.getResource(), "bucket", SET_IAM_POLICY_1_PATH_TEMPLATE);
return builder.build();
})
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1889,6 +1889,60 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.storage.v2.Bucket$IpFilter",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.storage.v2.Bucket$IpFilter$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.storage.v2.Bucket$IpFilter$PublicNetworkSource",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.storage.v2.Bucket$IpFilter$PublicNetworkSource$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.storage.v2.Bucket$IpFilter$VpcNetworkSource",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.storage.v2.Bucket$IpFilter$VpcNetworkSource$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.storage.v2.Bucket$Lifecycle",
"queryAllDeclaredConstructors": true,
Expand Down Expand Up @@ -2447,6 +2501,33 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.storage.v2.Object$Retention",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.storage.v2.Object$Retention$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.storage.v2.Object$Retention$Mode",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.storage.v2.ObjectAccessControl",
"queryAllDeclaredConstructors": true,
Expand Down
Loading