class

GoogleCloudStorage::RewriteResponse

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

A rewrite response.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, done : Bool | Nil = nil, kind : String | Nil = "storage#rewriteResponse", object_size : String | Nil = nil, resource : GoogleCloudStorage::Object | Nil = nil, rewrite_token : String | Nil = nil, total_bytes_rewritten : String | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

done

true if the copy is finished; otherwise, false if the copy is in progress. This property is always present in the response.

Source
done=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] done Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

kind

The kind of item this is.

Source
kind=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] kind Object to be assigned

Source
list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
object_size

The total size of the object being copied in bytes. This property is always present in the response.

Source
object_size=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] object_size Object to be assigned

Source
resource
Source
resource=(new_value : GoogleCloudStorage::Object | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] resource Object to be assigned

Source
rewrite_token

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.

Source
rewrite_token=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] rewrite_token Object to be assigned

Source
total_bytes_rewritten

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.

Source
total_bytes_rewritten=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] total_bytes_rewritten Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source