Class: Google::Apis::RedisV1::OperationError

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

Overview

An error that occurred during a backup creation operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OperationError

Returns a new instance of OperationError.



2027
2028
2029
# File 'lib/google/apis/redis_v1/classes.rb', line 2027

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

Instance Attribute Details

#codeString

Identifies the specific error that occurred. REQUIRED Corresponds to the JSON property code

Returns:

  • (String)


2015
2016
2017
# File 'lib/google/apis/redis_v1/classes.rb', line 2015

def code
  @code
end

#error_typeString

Corresponds to the JSON property errorType

Returns:

  • (String)


2020
2021
2022
# File 'lib/google/apis/redis_v1/classes.rb', line 2020

def error_type
  @error_type
end

#messageString

Additional information about the error encountered. REQUIRED Corresponds to the JSON property message

Returns:

  • (String)


2025
2026
2027
# File 'lib/google/apis/redis_v1/classes.rb', line 2025

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2032
2033
2034
2035
2036
# File 'lib/google/apis/redis_v1/classes.rb', line 2032

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @error_type = args[:error_type] if args.key?(:error_type)
  @message = args[:message] if args.key?(:message)
end