@google-cloud/storage-control 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -410,13 +410,12 @@ service Storage {
410
410
 
411
411
  // Reads an object's data.
412
412
  //
413
- // This bi-directional API reads data from an object, allowing you to
414
- // request multiple data ranges within a single stream, even across
415
- // several messages. If an error occurs with any request, the stream
416
- // closes with a relevant error code. Since you can have multiple
417
- // outstanding requests, the error response includes a
418
- // `BidiReadObjectRangesError` field detailing the specific error for
419
- // each pending `read_id`.
413
+ // This bi-directional API reads data from an object, allowing you to request
414
+ // multiple data ranges within a single stream, even across several messages.
415
+ // If an error occurs with any request, the stream closes with a relevant
416
+ // error code. Since you can have multiple outstanding requests, the error
417
+ // response includes a `BidiReadObjectError` proto in its `details` field,
418
+ // reporting the specific error, if any, for each pending `read_id`.
420
419
  //
421
420
  // **IAM Permissions**:
422
421
  //
@@ -883,6 +882,9 @@ message ComposeObjectRequest {
883
882
  // the combined checksums of the component objects.
884
883
  ObjectChecksums object_checksums = 10
885
884
  [(google.api.field_behavior) = OPTIONAL];
885
+
886
+ // Whether the source objects should be deleted in the compose request.
887
+ optional bool delete_source_objects = 11;
886
888
  }
887
889
 
888
890
  // Request message for deleting an object.
@@ -1296,16 +1298,16 @@ message ReadRange {
1296
1298
  // length is 15 bytes, a `ReadObjectRequest` with `read_offset` = -5 and
1297
1299
  // `read_length` = 3 would return bytes 10 through 12 of the object.
1298
1300
  // Requesting a negative offset with magnitude larger than the size of the
1299
- // object returns the entire object. A `read_offset` larger than the size
1300
- // of the object results in an `OutOfRange` error.
1301
+ // object is equivalent to `read_offset` = 0. A `read_offset` larger than the
1302
+ // size of the object results in an `OutOfRange` error.
1301
1303
  int64 read_offset = 1 [(google.api.field_behavior) = REQUIRED];
1302
1304
 
1303
1305
  // Optional. The maximum number of data bytes the server is allowed to return
1304
1306
  // across all response messages with the same `read_id`. A `read_length` of
1305
1307
  // zero indicates to read until the resource end, and a negative `read_length`
1306
- // causes an error. If the stream returns fewer bytes than allowed by the
1307
- // `read_length` and no error occurred, the stream includes all data from the
1308
- // `read_offset` to the resource end.
1308
+ // causes an `OutOfRange` error. If the stream returns fewer bytes than
1309
+ // allowed by the `read_length` and no error occurred, the stream includes all
1310
+ // data from the `read_offset` to the resource end.
1309
1311
  int64 read_length = 2 [(google.api.field_behavior) = OPTIONAL];
1310
1312
 
1311
1313
  // Required. Read identifier provided by the client. When the client issues
@@ -2825,6 +2827,9 @@ message ObjectCustomContextPayload {
2825
2827
  // All contexts of an object grouped by type.
2826
2828
  message ObjectContexts {
2827
2829
  // Optional. User-defined object contexts.
2830
+ // The maximum key or value size is `256` characters.
2831
+ // The maximum number of entries is `50`.
2832
+ // The maximum total serialized size of all entries is `25KiB`.
2828
2833
  map<string, ObjectCustomContextPayload> custom = 1
2829
2834
  [(google.api.field_behavior) = OPTIONAL];
2830
2835
  }
@@ -3158,4 +3163,4 @@ message ContentRange {
3158
3163
 
3159
3164
  // The complete length of the object data.
3160
3165
  int64 complete_length = 3;
3161
- }
3166
+ }
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -6771,6 +6771,9 @@ export namespace google {
6771
6771
 
6772
6772
  /** ComposeObjectRequest objectChecksums */
6773
6773
  objectChecksums?: (google.storage.v2.IObjectChecksums|null);
6774
+
6775
+ /** ComposeObjectRequest deleteSourceObjects */
6776
+ deleteSourceObjects?: (boolean|null);
6774
6777
  }
6775
6778
 
6776
6779
  /** Represents a ComposeObjectRequest. */
@@ -6806,6 +6809,9 @@ export namespace google {
6806
6809
  /** ComposeObjectRequest objectChecksums. */
6807
6810
  public objectChecksums?: (google.storage.v2.IObjectChecksums|null);
6808
6811
 
6812
+ /** ComposeObjectRequest deleteSourceObjects. */
6813
+ public deleteSourceObjects?: (boolean|null);
6814
+
6809
6815
  /**
6810
6816
  * Creates a new ComposeObjectRequest instance using the specified properties.
6811
6817
  * @param [properties] Properties to set
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -15924,6 +15924,7 @@
15924
15924
  * @property {string|null} [kmsKey] ComposeObjectRequest kmsKey
15925
15925
  * @property {google.storage.v2.ICommonObjectRequestParams|null} [commonObjectRequestParams] ComposeObjectRequest commonObjectRequestParams
15926
15926
  * @property {google.storage.v2.IObjectChecksums|null} [objectChecksums] ComposeObjectRequest objectChecksums
15927
+ * @property {boolean|null} [deleteSourceObjects] ComposeObjectRequest deleteSourceObjects
15927
15928
  */
15928
15929
 
15929
15930
  /**
@@ -16006,6 +16007,14 @@
16006
16007
  */
16007
16008
  ComposeObjectRequest.prototype.objectChecksums = null;
16008
16009
 
16010
+ /**
16011
+ * ComposeObjectRequest deleteSourceObjects.
16012
+ * @member {boolean|null|undefined} deleteSourceObjects
16013
+ * @memberof google.storage.v2.ComposeObjectRequest
16014
+ * @instance
16015
+ */
16016
+ ComposeObjectRequest.prototype.deleteSourceObjects = null;
16017
+
16009
16018
  // OneOf field names bound to virtual getters and setters
16010
16019
  var $oneOfFields;
16011
16020
 
@@ -16021,6 +16030,12 @@
16021
16030
  set: $util.oneOfSetter($oneOfFields)
16022
16031
  });
16023
16032
 
16033
+ // Virtual OneOf for proto3 optional field
16034
+ Object.defineProperty(ComposeObjectRequest.prototype, "_deleteSourceObjects", {
16035
+ get: $util.oneOfGetter($oneOfFields = ["deleteSourceObjects"]),
16036
+ set: $util.oneOfSetter($oneOfFields)
16037
+ });
16038
+
16024
16039
  /**
16025
16040
  * Creates a new ComposeObjectRequest instance using the specified properties.
16026
16041
  * @function create
@@ -16062,6 +16077,8 @@
16062
16077
  writer.uint32(/* id 9, wireType 2 =*/74).string(message.destinationPredefinedAcl);
16063
16078
  if (message.objectChecksums != null && Object.hasOwnProperty.call(message, "objectChecksums"))
16064
16079
  $root.google.storage.v2.ObjectChecksums.encode(message.objectChecksums, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
16080
+ if (message.deleteSourceObjects != null && Object.hasOwnProperty.call(message, "deleteSourceObjects"))
16081
+ writer.uint32(/* id 11, wireType 0 =*/88).bool(message.deleteSourceObjects);
16065
16082
  return writer;
16066
16083
  };
16067
16084
 
@@ -16132,6 +16149,10 @@
16132
16149
  message.objectChecksums = $root.google.storage.v2.ObjectChecksums.decode(reader, reader.uint32());
16133
16150
  break;
16134
16151
  }
16152
+ case 11: {
16153
+ message.deleteSourceObjects = reader.bool();
16154
+ break;
16155
+ }
16135
16156
  default:
16136
16157
  reader.skipType(tag & 7);
16137
16158
  break;
@@ -16208,6 +16229,11 @@
16208
16229
  if (error)
16209
16230
  return "objectChecksums." + error;
16210
16231
  }
16232
+ if (message.deleteSourceObjects != null && message.hasOwnProperty("deleteSourceObjects")) {
16233
+ properties._deleteSourceObjects = 1;
16234
+ if (typeof message.deleteSourceObjects !== "boolean")
16235
+ return "deleteSourceObjects: boolean expected";
16236
+ }
16211
16237
  return null;
16212
16238
  };
16213
16239
 
@@ -16270,6 +16296,8 @@
16270
16296
  throw TypeError(".google.storage.v2.ComposeObjectRequest.objectChecksums: object expected");
16271
16297
  message.objectChecksums = $root.google.storage.v2.ObjectChecksums.fromObject(object.objectChecksums);
16272
16298
  }
16299
+ if (object.deleteSourceObjects != null)
16300
+ message.deleteSourceObjects = Boolean(object.deleteSourceObjects);
16273
16301
  return message;
16274
16302
  };
16275
16303
 
@@ -16326,6 +16354,11 @@
16326
16354
  object.destinationPredefinedAcl = message.destinationPredefinedAcl;
16327
16355
  if (message.objectChecksums != null && message.hasOwnProperty("objectChecksums"))
16328
16356
  object.objectChecksums = $root.google.storage.v2.ObjectChecksums.toObject(message.objectChecksums, options);
16357
+ if (message.deleteSourceObjects != null && message.hasOwnProperty("deleteSourceObjects")) {
16358
+ object.deleteSourceObjects = message.deleteSourceObjects;
16359
+ if (options.oneofs)
16360
+ object._deleteSourceObjects = "deleteSourceObjects";
16361
+ }
16329
16362
  return object;
16330
16363
  };
16331
16364
 
@@ -2779,6 +2779,11 @@
2779
2779
  "oneof": [
2780
2780
  "ifMetagenerationMatch"
2781
2781
  ]
2782
+ },
2783
+ "_deleteSourceObjects": {
2784
+ "oneof": [
2785
+ "deleteSourceObjects"
2786
+ ]
2782
2787
  }
2783
2788
  },
2784
2789
  "fields": {
@@ -2839,6 +2844,13 @@
2839
2844
  "options": {
2840
2845
  "(google.api.field_behavior)": "OPTIONAL"
2841
2846
  }
2847
+ },
2848
+ "deleteSourceObjects": {
2849
+ "type": "bool",
2850
+ "id": 11,
2851
+ "options": {
2852
+ "proto3_optional": true
2853
+ }
2842
2854
  }
2843
2855
  },
2844
2856
  "nested": {