@@ -829,7 +829,9 @@ public final Bucket lockBucketRetentionPolicy(LockBucketRetentionPolicyRequest r
829
829
830
830
// AUTO-GENERATED DOCUMENTATION AND METHOD.
831
831
/**
832
- * Gets the IAM policy for a specified bucket or object.
832
+ * Gets the IAM policy for a specified bucket or object. The `resource` field in the request
833
+ * should be projects/_/buckets/<bucket_name> for a bucket or
834
+ * projects/_/buckets/<bucket_name>/objects/<object_name> for an object.
833
835
*
834
836
* <p>Sample code:
835
837
*
@@ -860,7 +862,9 @@ public final Policy getIamPolicy(ResourceName resource) {
860
862
861
863
// AUTO-GENERATED DOCUMENTATION AND METHOD.
862
864
/**
863
- * Gets the IAM policy for a specified bucket or object.
865
+ * Gets the IAM policy for a specified bucket or object. The `resource` field in the request
866
+ * should be projects/_/buckets/<bucket_name> for a bucket or
867
+ * projects/_/buckets/<bucket_name>/objects/<object_name> for an object.
864
868
*
865
869
* <p>Sample code:
866
870
*
@@ -888,7 +892,9 @@ public final Policy getIamPolicy(String resource) {
888
892
889
893
// AUTO-GENERATED DOCUMENTATION AND METHOD.
890
894
/**
891
- * Gets the IAM policy for a specified bucket or object.
895
+ * Gets the IAM policy for a specified bucket or object. The `resource` field in the request
896
+ * should be projects/_/buckets/<bucket_name> for a bucket or
897
+ * projects/_/buckets/<bucket_name>/objects/<object_name> for an object.
892
898
*
893
899
* <p>Sample code:
894
900
*
@@ -919,7 +925,9 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
919
925
920
926
// AUTO-GENERATED DOCUMENTATION AND METHOD.
921
927
/**
922
- * Gets the IAM policy for a specified bucket or object.
928
+ * Gets the IAM policy for a specified bucket or object. The `resource` field in the request
929
+ * should be projects/_/buckets/<bucket_name> for a bucket or
930
+ * projects/_/buckets/<bucket_name>/objects/<object_name> for an object.
923
931
*
924
932
* <p>Sample code:
925
933
*
@@ -949,7 +957,9 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
949
957
950
958
// AUTO-GENERATED DOCUMENTATION AND METHOD.
951
959
/**
952
- * Updates an IAM policy for the specified bucket or object.
960
+ * Updates an IAM policy for the specified bucket or object. The `resource` field in the request
961
+ * should be projects/_/buckets/<bucket_name> for a bucket or
962
+ * projects/_/buckets/<bucket_name>/objects/<object_name> for an object.
953
963
*
954
964
* <p>Sample code:
955
965
*
@@ -985,7 +995,9 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
985
995
986
996
// AUTO-GENERATED DOCUMENTATION AND METHOD.
987
997
/**
988
- * Updates an IAM policy for the specified bucket or object.
998
+ * Updates an IAM policy for the specified bucket or object. The `resource` field in the request
999
+ * should be projects/_/buckets/<bucket_name> for a bucket or
1000
+ * projects/_/buckets/<bucket_name>/objects/<object_name> for an object.
989
1001
*
990
1002
* <p>Sample code:
991
1003
*
@@ -1018,7 +1030,9 @@ public final Policy setIamPolicy(String resource, Policy policy) {
1018
1030
1019
1031
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1020
1032
/**
1021
- * Updates an IAM policy for the specified bucket or object.
1033
+ * Updates an IAM policy for the specified bucket or object. The `resource` field in the request
1034
+ * should be projects/_/buckets/<bucket_name> for a bucket or
1035
+ * projects/_/buckets/<bucket_name>/objects/<object_name> for an object.
1022
1036
*
1023
1037
* <p>Sample code:
1024
1038
*
@@ -1050,7 +1064,9 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
1050
1064
1051
1065
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1052
1066
/**
1053
- * Updates an IAM policy for the specified bucket or object.
1067
+ * Updates an IAM policy for the specified bucket or object. The `resource` field in the request
1068
+ * should be projects/_/buckets/<bucket_name> for a bucket or
1069
+ * projects/_/buckets/<bucket_name>/objects/<object_name> for an object.
1054
1070
*
1055
1071
* <p>Sample code:
1056
1072
*
@@ -1082,7 +1098,9 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
1082
1098
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1083
1099
/**
1084
1100
* Tests a set of permissions on the given bucket or object to see which, if any, are held by the
1085
- * caller.
1101
+ * caller. The `resource` field in the request should be projects/_/buckets/<bucket_name>
1102
+ * for a bucket or projects/_/buckets/<bucket_name>/objects/<object_name> for an
1103
+ * object.
1086
1104
*
1087
1105
* <p>Sample code:
1088
1106
*
@@ -1120,7 +1138,9 @@ public final TestIamPermissionsResponse testIamPermissions(
1120
1138
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1121
1139
/**
1122
1140
* Tests a set of permissions on the given bucket or object to see which, if any, are held by the
1123
- * caller.
1141
+ * caller. The `resource` field in the request should be projects/_/buckets/<bucket_name>
1142
+ * for a bucket or projects/_/buckets/<bucket_name>/objects/<object_name> for an
1143
+ * object.
1124
1144
*
1125
1145
* <p>Sample code:
1126
1146
*
@@ -1158,7 +1178,9 @@ public final TestIamPermissionsResponse testIamPermissions(
1158
1178
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1159
1179
/**
1160
1180
* Tests a set of permissions on the given bucket or object to see which, if any, are held by the
1161
- * caller.
1181
+ * caller. The `resource` field in the request should be projects/_/buckets/<bucket_name>
1182
+ * for a bucket or projects/_/buckets/<bucket_name>/objects/<object_name> for an
1183
+ * object.
1162
1184
*
1163
1185
* <p>Sample code:
1164
1186
*
@@ -1190,7 +1212,9 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
1190
1212
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1191
1213
/**
1192
1214
* Tests a set of permissions on the given bucket or object to see which, if any, are held by the
1193
- * caller.
1215
+ * caller. The `resource` field in the request should be projects/_/buckets/<bucket_name>
1216
+ * for a bucket or projects/_/buckets/<bucket_name>/objects/<object_name> for an
1217
+ * object.
1194
1218
*
1195
1219
* <p>Sample code:
1196
1220
*
@@ -1861,6 +1885,7 @@ public final ListNotificationsPagedResponse listNotifications(ListNotificationsR
1861
1885
* CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
1862
1886
* .toString())
1863
1887
* .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build())
1888
+ * .setObjectChecksums(ObjectChecksums.newBuilder().build())
1864
1889
* .build();
1865
1890
* Object response = storageClient.composeObject(request);
1866
1891
* }
@@ -1897,6 +1922,7 @@ public final Object composeObject(ComposeObjectRequest request) {
1897
1922
* CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
1898
1923
* .toString())
1899
1924
* .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build())
1925
+ * .setObjectChecksums(ObjectChecksums.newBuilder().build())
1900
1926
* .build();
1901
1927
* ApiFuture<Object> future = storageClient.composeObjectCallable().futureCall(request);
1902
1928
* // Do something.
@@ -1929,7 +1955,8 @@ public final UnaryCallable<ComposeObjectRequest, Object> composeObjectCallable()
1929
1955
* }</pre>
1930
1956
*
1931
1957
* @param bucket Required. Name of the bucket in which the object resides.
1932
- * @param object Required. The name of the object to delete (when not using a resumable write).
1958
+ * @param object Required. The name of the finalized object to delete. Note: If you want to delete
1959
+ * an unfinalized resumable upload please use `CancelResumableWrite`.
1933
1960
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1934
1961
*/
1935
1962
public final void deleteObject (String bucket , String object ) {
@@ -1960,7 +1987,8 @@ public final void deleteObject(String bucket, String object) {
1960
1987
* }</pre>
1961
1988
*
1962
1989
* @param bucket Required. Name of the bucket in which the object resides.
1963
- * @param object Required. The name of the object to delete (when not using a resumable write).
1990
+ * @param object Required. The name of the finalized object to delete. Note: If you want to delete
1991
+ * an unfinalized resumable upload please use `CancelResumableWrite`.
1964
1992
* @param generation If present, permanently deletes a specific revision of this object (as
1965
1993
* opposed to the latest version, the default).
1966
1994
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -2717,6 +2745,7 @@ public final UnaryCallable<ListObjectsRequest, ListObjectsResponse> listObjectsC
2717
2745
* .setCopySourceEncryptionKeyBytes(ByteString.EMPTY)
2718
2746
* .setCopySourceEncryptionKeySha256Bytes(ByteString.EMPTY)
2719
2747
* .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build())
2748
+ * .setObjectChecksums(ObjectChecksums.newBuilder().build())
2720
2749
* .build();
2721
2750
* RewriteResponse response = storageClient.rewriteObject(request);
2722
2751
* }
@@ -2768,6 +2797,7 @@ public final RewriteResponse rewriteObject(RewriteObjectRequest request) {
2768
2797
* .setCopySourceEncryptionKeyBytes(ByteString.EMPTY)
2769
2798
* .setCopySourceEncryptionKeySha256Bytes(ByteString.EMPTY)
2770
2799
* .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build())
2800
+ * .setObjectChecksums(ObjectChecksums.newBuilder().build())
2771
2801
* .build();
2772
2802
* ApiFuture<RewriteResponse> future = storageClient.rewriteObjectCallable().futureCall(request);
2773
2803
* // Do something.
@@ -2797,6 +2827,7 @@ public final UnaryCallable<RewriteObjectRequest, RewriteResponse> rewriteObjectC
2797
2827
* StartResumableWriteRequest.newBuilder()
2798
2828
* .setWriteObjectSpec(WriteObjectSpec.newBuilder().build())
2799
2829
* .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build())
2830
+ * .setObjectChecksums(ObjectChecksums.newBuilder().build())
2800
2831
* .build();
2801
2832
* StartResumableWriteResponse response = storageClient.startResumableWrite(request);
2802
2833
* }
@@ -2827,6 +2858,7 @@ public final StartResumableWriteResponse startResumableWrite(StartResumableWrite
2827
2858
* StartResumableWriteRequest.newBuilder()
2828
2859
* .setWriteObjectSpec(WriteObjectSpec.newBuilder().build())
2829
2860
* .setCommonObjectRequestParams(CommonObjectRequestParams.newBuilder().build())
2861
+ * .setObjectChecksums(ObjectChecksums.newBuilder().build())
2830
2862
* .build();
2831
2863
* ApiFuture<StartResumableWriteResponse> future =
2832
2864
* storageClient.startResumableWriteCallable().futureCall(request);
0 commit comments