google-apis-storage_v1 0.68.0 → 0.70.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff6e76044999c5d172fc913827837f203a54ff526849545d9cf9a3a0002b3863
4
- data.tar.gz: f1bd78d2ffb39b7ac9674b2c331c0344932f62734d7103ca5894c312cb9d9dcd
3
+ metadata.gz: 78068e5fbaf3ca3acc96ab51b2873de91be23b0386d9ef71d8071123783b71fd
4
+ data.tar.gz: 1ea7b8250da7f32f0c32958aea41f29b60019b0431d7b351822969837f0dbcb9
5
5
  SHA512:
6
- metadata.gz: 835fb3274f3a721f33e474bdb82b3e00425e4d66c3cc3b174f9dbaab01de2c4a28bc0274a1566c8a0e74063153f4bedbd2099c06e4dcdc6a23c61bdb564ed9e4
7
- data.tar.gz: e57a7bcf6d69e66ce01978bdf58d72fdab364f26012d5fc66105bdf4bfdbf3ddf048152298b5a3e017e67946da6feb16cbd95df2d670638a6133230c1f6b1661
6
+ metadata.gz: d362f987ab6574066aded652dd9133286cfa08d31a7550a0d385a89f266b63bfd6c82f7a027f28965a9512d19955d135fe8f67c0a604d148d66afc011e0eb541
7
+ data.tar.gz: 03a3ae2e8b4cbc5b80e4df6ad264da6c25ddf9d8a77388f040b4b1e95a3f1c20a64ba65f070d965ee25d48d648df48ce3e9a96f6977023ec5429fb3b89a868d7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-storage_v1
2
2
 
3
+ ### v0.70.0 (2026-10-21)
4
+
5
+ * Regenerated from discovery document revision 20261009
6
+ * Regenerated using generator version 0.19.1
7
+
8
+ ### v0.69.0 (2026-10-04)
9
+
10
+ * Regenerated from discovery document revision 20260930
11
+
3
12
  ### v0.68.0 (2026-09-20)
4
13
 
5
14
  * Regenerated from discovery document revision 20260911
@@ -1249,6 +1249,13 @@ module Google
1249
1249
  # @return [DateTime]
1250
1250
  attr_accessor :effective_time
1251
1251
 
1252
+ # The bucket's hard delete pause configuration. If set, soft-deleted objects in
1253
+ # the bucket will not be permanently deleted until the hard delete pause is
1254
+ # disabled.
1255
+ # Corresponds to the JSON property `hardDeletePause`
1256
+ # @return [Google::Apis::StorageV1::Bucket::SoftDeletePolicy::HardDeletePause]
1257
+ attr_accessor :hard_delete_pause
1258
+
1252
1259
  # The duration in seconds that soft-deleted objects in the bucket will be
1253
1260
  # retained and cannot be permanently deleted.
1254
1261
  # Corresponds to the JSON property `retentionDurationSeconds`
@@ -1262,8 +1269,38 @@ module Google
1262
1269
  # Update properties of this object
1263
1270
  def update!(**args)
1264
1271
  @effective_time = args[:effective_time] if args.key?(:effective_time)
1272
+ @hard_delete_pause = args[:hard_delete_pause] if args.key?(:hard_delete_pause)
1265
1273
  @retention_duration_seconds = args[:retention_duration_seconds] if args.key?(:retention_duration_seconds)
1266
1274
  end
1275
+
1276
+ # The bucket's hard delete pause configuration. If set, soft-deleted objects in
1277
+ # the bucket will not be permanently deleted until the hard delete pause is
1278
+ # disabled.
1279
+ class HardDeletePause
1280
+ include Google::Apis::Core::Hashable
1281
+
1282
+ # Server-determined value that indicates the time from which the hard delete
1283
+ # pause became effective. This value is in RFC 3339 format.
1284
+ # Corresponds to the JSON property `effectiveTime`
1285
+ # @return [DateTime]
1286
+ attr_accessor :effective_time
1287
+
1288
+ # Whether hard deletions are paused.
1289
+ # Corresponds to the JSON property `enabled`
1290
+ # @return [Boolean]
1291
+ attr_accessor :enabled
1292
+ alias_method :enabled?, :enabled
1293
+
1294
+ def initialize(**args)
1295
+ update!(**args)
1296
+ end
1297
+
1298
+ # Update properties of this object
1299
+ def update!(**args)
1300
+ @effective_time = args[:effective_time] if args.key?(:effective_time)
1301
+ @enabled = args[:enabled] if args.key?(:enabled)
1302
+ end
1303
+ end
1267
1304
  end
1268
1305
 
1269
1306
  # The bucket's versioning configuration.
@@ -1655,84 +1692,6 @@ module Google
1655
1692
  end
1656
1693
  end
1657
1694
 
1658
- # An notification channel used to watch for resource changes.
1659
- class Channel
1660
- include Google::Apis::Core::Hashable
1661
-
1662
- # The address where notifications are delivered for this channel.
1663
- # Corresponds to the JSON property `address`
1664
- # @return [String]
1665
- attr_accessor :address
1666
-
1667
- # Date and time of notification channel expiration, expressed as a Unix
1668
- # timestamp, in milliseconds. Optional.
1669
- # Corresponds to the JSON property `expiration`
1670
- # @return [Fixnum]
1671
- attr_accessor :expiration
1672
-
1673
- # A UUID or similar unique string that identifies this channel.
1674
- # Corresponds to the JSON property `id`
1675
- # @return [String]
1676
- attr_accessor :id
1677
-
1678
- # Identifies this as a notification channel used to watch for changes to a
1679
- # resource, which is "api#channel".
1680
- # Corresponds to the JSON property `kind`
1681
- # @return [String]
1682
- attr_accessor :kind
1683
-
1684
- # Additional parameters controlling delivery channel behavior. Optional.
1685
- # Corresponds to the JSON property `params`
1686
- # @return [Hash<String,String>]
1687
- attr_accessor :params
1688
-
1689
- # A Boolean value to indicate whether payload is wanted. Optional.
1690
- # Corresponds to the JSON property `payload`
1691
- # @return [Boolean]
1692
- attr_accessor :payload
1693
- alias_method :payload?, :payload
1694
-
1695
- # An opaque ID that identifies the resource being watched on this channel.
1696
- # Stable across different API versions.
1697
- # Corresponds to the JSON property `resourceId`
1698
- # @return [String]
1699
- attr_accessor :resource_id
1700
-
1701
- # A version-specific identifier for the watched resource.
1702
- # Corresponds to the JSON property `resourceUri`
1703
- # @return [String]
1704
- attr_accessor :resource_uri
1705
-
1706
- # An arbitrary string delivered to the target address with each notification
1707
- # delivered over this channel. Optional.
1708
- # Corresponds to the JSON property `token`
1709
- # @return [String]
1710
- attr_accessor :token
1711
-
1712
- # The type of delivery mechanism used for this channel.
1713
- # Corresponds to the JSON property `type`
1714
- # @return [String]
1715
- attr_accessor :type
1716
-
1717
- def initialize(**args)
1718
- update!(**args)
1719
- end
1720
-
1721
- # Update properties of this object
1722
- def update!(**args)
1723
- @address = args[:address] if args.key?(:address)
1724
- @expiration = args[:expiration] if args.key?(:expiration)
1725
- @id = args[:id] if args.key?(:id)
1726
- @kind = args[:kind] if args.key?(:kind)
1727
- @params = args[:params] if args.key?(:params)
1728
- @payload = args[:payload] if args.key?(:payload)
1729
- @resource_id = args[:resource_id] if args.key?(:resource_id)
1730
- @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
1731
- @token = args[:token] if args.key?(:token)
1732
- @type = args[:type] if args.key?(:type)
1733
- end
1734
- end
1735
-
1736
1695
  # A Compose request.
1737
1696
  class ComposeRequest
1738
1697
  include Google::Apis::Core::Hashable
@@ -3048,6 +3007,64 @@ module Google
3048
3007
  end
3049
3008
  end
3050
3009
 
3010
+ # A full representation of an object context.
3011
+ class ObjectFullContext
3012
+ include Google::Apis::Core::Hashable
3013
+
3014
+ # The time at which the object context was created. This value is in RFC 3339
3015
+ # format.
3016
+ # Corresponds to the JSON property `createTime`
3017
+ # @return [DateTime]
3018
+ attr_accessor :create_time
3019
+
3020
+ # The extended data of the object context.
3021
+ # Corresponds to the JSON property `extendedData`
3022
+ # @return [Hash<String,Object>]
3023
+ attr_accessor :extended_data
3024
+
3025
+ # The key of the object context.
3026
+ # Corresponds to the JSON property `key`
3027
+ # @return [String]
3028
+ attr_accessor :key
3029
+
3030
+ # The kind of item this is. For ObjectFullContext, this is always storage#
3031
+ # objectFullContext.
3032
+ # Corresponds to the JSON property `kind`
3033
+ # @return [String]
3034
+ attr_accessor :kind
3035
+
3036
+ # The type of the object context.
3037
+ # Corresponds to the JSON property `type`
3038
+ # @return [String]
3039
+ attr_accessor :type
3040
+
3041
+ # The time at which the object context was last updated. This value is in RFC
3042
+ # 3339 format.
3043
+ # Corresponds to the JSON property `updateTime`
3044
+ # @return [DateTime]
3045
+ attr_accessor :update_time
3046
+
3047
+ # The value of the object context.
3048
+ # Corresponds to the JSON property `value`
3049
+ # @return [String]
3050
+ attr_accessor :value
3051
+
3052
+ def initialize(**args)
3053
+ update!(**args)
3054
+ end
3055
+
3056
+ # Update properties of this object
3057
+ def update!(**args)
3058
+ @create_time = args[:create_time] if args.key?(:create_time)
3059
+ @extended_data = args[:extended_data] if args.key?(:extended_data)
3060
+ @key = args[:key] if args.key?(:key)
3061
+ @kind = args[:kind] if args.key?(:kind)
3062
+ @type = args[:type] if args.key?(:type)
3063
+ @update_time = args[:update_time] if args.key?(:update_time)
3064
+ @value = args[:value] if args.key?(:value)
3065
+ end
3066
+ end
3067
+
3051
3068
  # A list of objects.
3052
3069
  class Objects
3053
3070
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module StorageV1
18
18
  # Version of the google-apis-storage_v1 gem
19
- GEM_VERSION = "0.68.0"
19
+ GEM_VERSION = "0.70.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.19.0"
22
+ GENERATOR_VERSION = "0.19.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260911"
25
+ REVISION = "20261009"
26
26
  end
27
27
  end
28
28
  end
@@ -183,6 +183,12 @@ module Google
183
183
 
184
184
  class SoftDeletePolicy
185
185
  class Representation < Google::Apis::Core::JsonRepresentation; end
186
+
187
+ class HardDeletePause
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
186
192
 
187
193
  include Google::Apis::Core::JsonObjectSupport
188
194
  end
@@ -250,12 +256,6 @@ module Google
250
256
  include Google::Apis::Core::JsonObjectSupport
251
257
  end
252
258
 
253
- class Channel
254
- class Representation < Google::Apis::Core::JsonRepresentation; end
255
-
256
- include Google::Apis::Core::JsonObjectSupport
257
- end
258
-
259
259
  class ComposeRequest
260
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
261
261
 
@@ -412,6 +412,12 @@ module Google
412
412
  include Google::Apis::Core::JsonObjectSupport
413
413
  end
414
414
 
415
+ class ObjectFullContext
416
+ class Representation < Google::Apis::Core::JsonRepresentation; end
417
+
418
+ include Google::Apis::Core::JsonObjectSupport
419
+ end
420
+
415
421
  class Objects
416
422
  class Representation < Google::Apis::Core::JsonRepresentation; end
417
423
 
@@ -816,8 +822,19 @@ module Google
816
822
  class Representation < Google::Apis::Core::JsonRepresentation
817
823
  property :effective_time, as: 'effectiveTime', type: DateTime
818
824
 
825
+ property :hard_delete_pause, as: 'hardDeletePause', class: Google::Apis::StorageV1::Bucket::SoftDeletePolicy::HardDeletePause, decorator: Google::Apis::StorageV1::Bucket::SoftDeletePolicy::HardDeletePause::Representation
826
+
819
827
  property :retention_duration_seconds, :numeric_string => true, as: 'retentionDurationSeconds'
820
828
  end
829
+
830
+ class HardDeletePause
831
+ # @private
832
+ class Representation < Google::Apis::Core::JsonRepresentation
833
+ property :effective_time, as: 'effectiveTime', type: DateTime
834
+
835
+ property :enabled, as: 'enabled'
836
+ end
837
+ end
821
838
  end
822
839
 
823
840
  class Versioning
@@ -927,22 +944,6 @@ module Google
927
944
  end
928
945
  end
929
946
 
930
- class Channel
931
- # @private
932
- class Representation < Google::Apis::Core::JsonRepresentation
933
- property :address, as: 'address'
934
- property :expiration, :numeric_string => true, as: 'expiration'
935
- property :id, as: 'id'
936
- property :kind, as: 'kind'
937
- hash :params, as: 'params'
938
- property :payload, as: 'payload'
939
- property :resource_id, as: 'resourceId'
940
- property :resource_uri, as: 'resourceUri'
941
- property :token, as: 'token'
942
- property :type, as: 'type'
943
- end
944
- end
945
-
946
947
  class ComposeRequest
947
948
  # @private
948
949
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1280,6 +1281,21 @@ module Google
1280
1281
  end
1281
1282
  end
1282
1283
 
1284
+ class ObjectFullContext
1285
+ # @private
1286
+ class Representation < Google::Apis::Core::JsonRepresentation
1287
+ property :create_time, as: 'createTime', type: DateTime
1288
+
1289
+ hash :extended_data, as: 'extendedData'
1290
+ property :key, as: 'key'
1291
+ property :kind, as: 'kind'
1292
+ property :type, as: 'type'
1293
+ property :update_time, as: 'updateTime', type: DateTime
1294
+
1295
+ property :value, as: 'value'
1296
+ end
1297
+ end
1298
+
1283
1299
  class Objects
1284
1300
  # @private
1285
1301
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1153,37 +1153,6 @@ module Google
1153
1153
  execute_or_queue_command(command, &block)
1154
1154
  end
1155
1155
 
1156
- # Stop watching resources through this channel
1157
- # @param [Google::Apis::StorageV1::Channel] channel_object
1158
- # @param [String] fields
1159
- # Selector specifying which fields to include in a partial response.
1160
- # @param [String] quota_user
1161
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1162
- # characters.
1163
- # @param [String] user_ip
1164
- # Deprecated. Please use quotaUser instead.
1165
- # @param [Google::Apis::RequestOptions] options
1166
- # Request-specific options
1167
- #
1168
- # @yield [result, err] Result & error if block supplied
1169
- # @yieldparam result [NilClass] No result returned for this method
1170
- # @yieldparam err [StandardError] error object if request failed
1171
- #
1172
- # @return [void]
1173
- #
1174
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1175
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1176
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1177
- def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1178
- command = make_simple_command(:post, 'channels/stop', options)
1179
- command.request_representation = Google::Apis::StorageV1::Channel::Representation
1180
- command.request_object = channel_object
1181
- command.query['fields'] = fields unless fields.nil?
1182
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1183
- command.query['userIp'] = user_ip unless user_ip.nil?
1184
- execute_or_queue_command(command, &block)
1185
- end
1186
-
1187
1156
  # Permanently deletes the default object ACL entry for the specified entity on
1188
1157
  # the specified bucket.
1189
1158
  # @param [String] bucket
@@ -3655,6 +3624,52 @@ module Google
3655
3624
  execute_or_queue_command(command, &block)
3656
3625
  end
3657
3626
 
3627
+ # Retrieves a specific object context with its extended data for a given object.
3628
+ # @param [String] bucket
3629
+ # Name of the bucket in which the object resides.
3630
+ # @param [String] object
3631
+ # Name of the object. For information about how to URL encode object names to be
3632
+ # path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/
3633
+ # request-endpoints#encoding).
3634
+ # @param [Fixnum] generation
3635
+ # If present, selects a specific revision of this object (as opposed to the
3636
+ # latest version, the default).
3637
+ # @param [String] user_project
3638
+ # The project to be billed for this request. Required for Requester Pays buckets.
3639
+ # @param [String] fields
3640
+ # Selector specifying which fields to include in a partial response.
3641
+ # @param [String] quota_user
3642
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3643
+ # characters.
3644
+ # @param [String] user_ip
3645
+ # Deprecated. Please use quotaUser instead.
3646
+ # @param [Google::Apis::RequestOptions] options
3647
+ # Request-specific options
3648
+ #
3649
+ # @yield [result, err] Result & error if block supplied
3650
+ # @yieldparam result [Google::Apis::StorageV1::ObjectFullContext] parsed result object
3651
+ # @yieldparam err [StandardError] error object if request failed
3652
+ #
3653
+ # @return [Google::Apis::StorageV1::ObjectFullContext]
3654
+ #
3655
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3656
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3657
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3658
+ def view_object_full_context(bucket, object, generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3659
+ command = make_simple_command(:get, 'b/{bucket}/o/{object}/viewFullContext', options)
3660
+ command.response_representation = Google::Apis::StorageV1::ObjectFullContext::Representation
3661
+ command.response_class = Google::Apis::StorageV1::ObjectFullContext
3662
+ command.params['bucket'] = bucket unless bucket.nil?
3663
+ command.params['object'] = object unless object.nil?
3664
+ command.query['contextKey'] = context_key unless context_key.nil?
3665
+ command.query['generation'] = generation unless generation.nil?
3666
+ command.query['userProject'] = user_project unless user_project.nil?
3667
+ command.query['fields'] = fields unless fields.nil?
3668
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3669
+ command.query['userIp'] = user_ip unless user_ip.nil?
3670
+ execute_or_queue_command(command, &block)
3671
+ end
3672
+
3658
3673
  # Starts asynchronous advancement of the relocate bucket operation in the case
3659
3674
  # of required write downtime, to allow it to lock the bucket at the source
3660
3675
  # location, and proceed with the bucket location swap. The server makes a best
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-storage_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.68.0
4
+ version: 0.70.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storage_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.68.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.70.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storage_v1
62
62
  rdoc_options: []
63
63
  require_paths: