@@ -3598,87 +3598,6 @@ def update_object(bucket, object, object_object = nil, generation: nil, if_gener
35983598 execute_or_queue_command ( command , &block )
35993599 end
36003600
3601- # Watch for changes on all objects in a bucket.
3602- # @param [String] bucket
3603- # Name of the bucket in which to look for objects.
3604- # @param [Google::Apis::StorageV1::Channel] channel_object
3605- # @param [String] delimiter
3606- # Returns results in a directory-like mode. items will contain only objects
3607- # whose names, aside from the prefix, do not contain delimiter. Objects whose
3608- # names, aside from the prefix, contain delimiter will have their name,
3609- # truncated after the delimiter, returned in prefixes. Duplicate prefixes are
3610- # omitted.
3611- # @param [String] end_offset
3612- # Filter results to objects whose names are lexicographically before endOffset.
3613- # If startOffset is also set, the objects listed will have names between
3614- # startOffset (inclusive) and endOffset (exclusive).
3615- # @param [Boolean] include_trailing_delimiter
3616- # If true, objects that end in exactly one instance of delimiter will have their
3617- # metadata included in items in addition to prefixes.
3618- # @param [Fixnum] max_results
3619- # Maximum number of items plus prefixes to return in a single page of responses.
3620- # As duplicate prefixes are omitted, fewer total results may be returned than
3621- # requested. The service will use this parameter or 1,000 items, whichever is
3622- # smaller.
3623- # @param [String] page_token
3624- # A previously-returned page token representing part of the larger set of
3625- # results to view.
3626- # @param [String] prefix
3627- # Filter results to objects whose names begin with this prefix.
3628- # @param [String] projection
3629- # Set of properties to return. Defaults to noAcl.
3630- # @param [String] start_offset
3631- # Filter results to objects whose names are lexicographically equal to or after
3632- # startOffset. If endOffset is also set, the objects listed will have names
3633- # between startOffset (inclusive) and endOffset (exclusive).
3634- # @param [String] user_project
3635- # The project to be billed for this request. Required for Requester Pays buckets.
3636- # @param [Boolean] versions
3637- # If true, lists all versions of an object as distinct results. The default is
3638- # false. For more information, see [Object Versioning](https://cloud.google.com/
3639- # storage/docs/object-versioning).
3640- # @param [String] fields
3641- # Selector specifying which fields to include in a partial response.
3642- # @param [String] quota_user
3643- # An opaque string that represents a user for quota purposes. Must not exceed 40
3644- # characters.
3645- # @param [String] user_ip
3646- # Deprecated. Please use quotaUser instead.
3647- # @param [Google::Apis::RequestOptions] options
3648- # Request-specific options
3649- #
3650- # @yield [result, err] Result & error if block supplied
3651- # @yieldparam result [Google::Apis::StorageV1::Channel] parsed result object
3652- # @yieldparam err [StandardError] error object if request failed
3653- #
3654- # @return [Google::Apis::StorageV1::Channel]
3655- #
3656- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3657- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3658- # @raise [Google::Apis::AuthorizationError] Authorization is required
3659- def watch_all_objects ( bucket , channel_object = nil , delimiter : nil , end_offset : nil , include_trailing_delimiter : nil , max_results : nil , page_token : nil , prefix : nil , projection : nil , start_offset : nil , user_project : nil , versions : nil , fields : nil , quota_user : nil , user_ip : nil , options : nil , &block )
3660- command = make_simple_command ( :post , 'b/{bucket}/o/watch' , options )
3661- command . request_representation = Google ::Apis ::StorageV1 ::Channel ::Representation
3662- command . request_object = channel_object
3663- command . response_representation = Google ::Apis ::StorageV1 ::Channel ::Representation
3664- command . response_class = Google ::Apis ::StorageV1 ::Channel
3665- command . params [ 'bucket' ] = bucket unless bucket . nil?
3666- command . query [ 'delimiter' ] = delimiter unless delimiter . nil?
3667- command . query [ 'endOffset' ] = end_offset unless end_offset . nil?
3668- command . query [ 'includeTrailingDelimiter' ] = include_trailing_delimiter unless include_trailing_delimiter . nil?
3669- command . query [ 'maxResults' ] = max_results unless max_results . nil?
3670- command . query [ 'pageToken' ] = page_token unless page_token . nil?
3671- command . query [ 'prefix' ] = prefix unless prefix . nil?
3672- command . query [ 'projection' ] = projection unless projection . nil?
3673- command . query [ 'startOffset' ] = start_offset unless start_offset . nil?
3674- command . query [ 'userProject' ] = user_project unless user_project . nil?
3675- command . query [ 'versions' ] = versions unless versions . nil?
3676- command . query [ 'fields' ] = fields unless fields . nil?
3677- command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
3678- command . query [ 'userIp' ] = user_ip unless user_ip . nil?
3679- execute_or_queue_command ( command , &block )
3680- end
3681-
36823601 # Starts asynchronous advancement of the relocate bucket operation in the case
36833602 # of required write downtime, to allow it to lock the bucket at the source
36843603 # location, and proceed with the bucket location swap. The server makes a best
0 commit comments