class Google::Apis::StorageV1::RewriteResponse
A rewrite response.
Attributes
true if the copy is finished; otherwise, false if the copy is in progress. This property is always present in the response. Corresponds to the JSON property `done` @return [Boolean]
true if the copy is finished; otherwise, false if the copy is in progress. This property is always present in the response. Corresponds to the JSON property `done` @return [Boolean]
The kind of item this is. Corresponds to the JSON property `kind` @return [String]
The total size of the object being copied in bytes. This property is always present in the response. Corresponds to the JSON property `objectSize` @return [Fixnum]
An object. Corresponds to the JSON property `resource` @return [Google::Apis::StorageV1::Object]
A token to use in subsequent requests to continue copying data. This token is present in the response only when there is more data to copy. Corresponds to the JSON property `rewriteToken` @return [String]
The total bytes written so far, which can be used to provide a waiting user with a progress indicator. This property is always present in the response. Corresponds to the JSON property `totalBytesRewritten` @return [Fixnum]
Public Class Methods
# File lib/google/apis/storage_v1/classes.rb, line 2003 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/storage_v1/classes.rb, line 2008 def update!(**args) @done = args[:done] if args.key?(:done) @kind = args[:kind] if args.key?(:kind) @object_size = args[:object_size] if args.key?(:object_size) @resource = args[:resource] if args.key?(:resource) @rewrite_token = args[:rewrite_token] if args.key?(:rewrite_token) @total_bytes_rewritten = args[:total_bytes_rewritten] if args.key?(:total_bytes_rewritten) end