|
184 | 184 | * </tr>
|
185 | 185 | * <tr>
|
186 | 186 | * <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> |
188 | 188 | * <td>
|
189 | 189 | * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
|
190 | 190 | * <ul>
|
|
203 | 203 | * </tr>
|
204 | 204 | * <tr>
|
205 | 205 | * <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> |
207 | 207 | * <td>
|
208 | 208 | * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
|
209 | 209 | * <ul>
|
@@ -856,11 +856,13 @@ public final UnaryCallable<GetBucketRequest, Bucket> getBucketCallable() {
|
856 | 856 | * }
|
857 | 857 | * }</pre>
|
858 | 858 | *
|
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 |
864 | 866 | * project number. The `parent` field must be either empty or `projects/_`.
|
865 | 867 | * @param bucketId Required. The ID to use for this bucket, which will become the final component
|
866 | 868 | * 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
|
897 | 899 | * }
|
898 | 900 | * }</pre>
|
899 | 901 | *
|
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 |
905 | 909 | * project number. The `parent` field must be either empty or `projects/_`.
|
906 | 910 | * @param bucketId Required. The ID to use for this bucket, which will become the final component
|
907 | 911 | * 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
|
1266 | 1270 | // AUTO-GENERATED DOCUMENTATION AND METHOD.
|
1267 | 1271 | /**
|
1268 | 1272 | * 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. |
1270 | 1275 | *
|
1271 | 1276 | * <p>Sample code:
|
1272 | 1277 | *
|
@@ -1298,7 +1303,8 @@ public final Policy getIamPolicy(ResourceName resource) {
|
1298 | 1303 | // AUTO-GENERATED DOCUMENTATION AND METHOD.
|
1299 | 1304 | /**
|
1300 | 1305 | * 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. |
1302 | 1308 | *
|
1303 | 1309 | * <p>Sample code:
|
1304 | 1310 | *
|
@@ -1327,7 +1333,8 @@ public final Policy getIamPolicy(String resource) {
|
1327 | 1333 | // AUTO-GENERATED DOCUMENTATION AND METHOD.
|
1328 | 1334 | /**
|
1329 | 1335 | * 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. |
1331 | 1338 | *
|
1332 | 1339 | * <p>Sample code:
|
1333 | 1340 | *
|
@@ -1359,7 +1366,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
|
1359 | 1366 | // AUTO-GENERATED DOCUMENTATION AND METHOD.
|
1360 | 1367 | /**
|
1361 | 1368 | * 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. |
1363 | 1371 | *
|
1364 | 1372 | * <p>Sample code:
|
1365 | 1373 | *
|
@@ -1390,7 +1398,8 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
|
1390 | 1398 | // AUTO-GENERATED DOCUMENTATION AND METHOD.
|
1391 | 1399 | /**
|
1392 | 1400 | * 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. |
1394 | 1403 | *
|
1395 | 1404 | * <p>Sample code:
|
1396 | 1405 | *
|
@@ -1427,7 +1436,8 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
|
1427 | 1436 | // AUTO-GENERATED DOCUMENTATION AND METHOD.
|
1428 | 1437 | /**
|
1429 | 1438 | * 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. |
1431 | 1441 | *
|
1432 | 1442 | * <p>Sample code:
|
1433 | 1443 | *
|
@@ -1461,7 +1471,8 @@ public final Policy setIamPolicy(String resource, Policy policy) {
|
1461 | 1471 | // AUTO-GENERATED DOCUMENTATION AND METHOD.
|
1462 | 1472 | /**
|
1463 | 1473 | * 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. |
1465 | 1476 | *
|
1466 | 1477 | * <p>Sample code:
|
1467 | 1478 | *
|
@@ -1494,7 +1505,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
|
1494 | 1505 | // AUTO-GENERATED DOCUMENTATION AND METHOD.
|
1495 | 1506 | /**
|
1496 | 1507 | * 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. |
1498 | 1510 | *
|
1499 | 1511 | * <p>Sample code:
|
1500 | 1512 | *
|
@@ -1977,8 +1989,8 @@ public final void deleteObject(String bucket, String object) {
|
1977 | 1989 | * @param bucket Required. Name of the bucket in which the object resides.
|
1978 | 1990 | * @param object Required. The name of the finalized object to delete. Note: If you want to delete
|
1979 | 1991 | * 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). |
1982 | 1994 | * @throws com.google.api.gax.rpc.ApiException if the remote call fails
|
1983 | 1995 | */
|
1984 | 1996 | public final void deleteObject(BucketName bucket, String object, long generation) {
|
@@ -2028,8 +2040,8 @@ public final void deleteObject(BucketName bucket, String object, long generation
|
2028 | 2040 | * @param bucket Required. Name of the bucket in which the object resides.
|
2029 | 2041 | * @param object Required. The name of the finalized object to delete. Note: If you want to delete
|
2030 | 2042 | * 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). |
2033 | 2045 | * @throws com.google.api.gax.rpc.ApiException if the remote call fails
|
2034 | 2046 | */
|
2035 | 2047 | public final void deleteObject(String bucket, String object, long generation) {
|
@@ -2483,8 +2495,8 @@ public final Object getObject(String bucket, String object) {
|
2483 | 2495 | *
|
2484 | 2496 | * @param bucket Required. Name of the bucket in which the object resides.
|
2485 | 2497 | * @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). |
2488 | 2500 | * @throws com.google.api.gax.rpc.ApiException if the remote call fails
|
2489 | 2501 | */
|
2490 | 2502 | public final Object getObject(BucketName bucket, String object, long generation) {
|
@@ -2526,8 +2538,8 @@ public final Object getObject(BucketName bucket, String object, long generation)
|
2526 | 2538 | *
|
2527 | 2539 | * @param bucket Required. Name of the bucket in which the object resides.
|
2528 | 2540 | * @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). |
2531 | 2543 | * @throws com.google.api.gax.rpc.ApiException if the remote call fails
|
2532 | 2544 | */
|
2533 | 2545 | public final Object getObject(String bucket, String object, long generation) {
|
|
0 commit comments