class Google::Apis::StorageV1::RewriteResponse

A rewrite response.

Attributes

done[RW]

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]

done?[RW]

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]

kind[RW]

The kind of item this is. Corresponds to the JSON property `kind` @return [String]

object_size[RW]

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]

resource[RW]

An object. Corresponds to the JSON property `resource` @return [Google::Apis::StorageV1::Object]

rewrite_token[RW]

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]

total_bytes_rewritten[RW]

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

new(**args) click to toggle source
# File lib/google/apis/storage_v1/classes.rb, line 2003
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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