class Google::Apis::VmmigrationV1::MigrationError

Represents migration resource error information that can be used with google. rpc.Status message. MigrationError is used to present the user with error information in migration operations.

Attributes

action_item[RW]

Provides a localized error message that is safe to return to the user which can be attached to an RPC error. Corresponds to the JSON property ‘actionItem` @return [Google::Apis::VmmigrationV1::LocalizedMessage]

code[RW]

Output only. The error code. Corresponds to the JSON property ‘code` @return [String]

error_message[RW]

Provides a localized error message that is safe to return to the user which can be attached to an RPC error. Corresponds to the JSON property ‘errorMessage` @return [Google::Apis::VmmigrationV1::LocalizedMessage]

error_time[RW]

Output only. The time the error occurred. Corresponds to the JSON property ‘errorTime` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/vmmigration_v1/classes.rb, line 1415
def update!(**args)
  @action_item = args[:action_item] if args.key?(:action_item)
  @code = args[:code] if args.key?(:code)
  @error_message = args[:error_message] if args.key?(:error_message)
  @error_time = args[:error_time] if args.key?(:error_time)
  @help_links = args[:help_links] if args.key?(:help_links)
end