Class: Google::Apis::GameservicesV1beta::OperationStatus

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/gameservices_v1beta/classes.rb,
generated/google/apis/gameservices_v1beta/representations.rb,
generated/google/apis/gameservices_v1beta/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OperationStatus

Returns a new instance of OperationStatus.



1416
1417
1418
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 1416

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#doneBoolean Also known as: done?

Output only. Whether the operation is done or still in progress. Corresponds to the JSON property done

Returns:

  • (Boolean)


1403
1404
1405
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 1403

def done
  @done
end

#error_codeString

The error code in case of failures. Corresponds to the JSON property errorCode

Returns:

  • (String)


1409
1410
1411
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 1409

def error_code
  @error_code
end

#error_messageString

The human-readable error message. Corresponds to the JSON property errorMessage

Returns:

  • (String)


1414
1415
1416
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 1414

def error_message
  @error_message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1421
1422
1423
1424
1425
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 1421

def update!(**args)
  @done = args[:done] if args.key?(:done)
  @error_code = args[:error_code] if args.key?(:error_code)
  @error_message = args[:error_message] if args.key?(:error_message)
end