Class: Google::Apis::VmmigrationV1alpha1::MigrationWarning

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MigrationWarning

Returns a new instance of MigrationWarning.



2106
2107
2108
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2106

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

Instance Attribute Details

#action_itemGoogle::Apis::VmmigrationV1alpha1::LocalizedMessage

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



2083
2084
2085
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2083

def action_item
  @action_item
end

#codeString

The warning code. Corresponds to the JSON property code

Returns:

  • (String)


2088
2089
2090
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2088

def code
  @code
end

URL(s) pointing to additional information on handling the current warning. Corresponds to the JSON property helpLinks



2093
2094
2095
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2093

def help_links
  @help_links
end

#warning_messageGoogle::Apis::VmmigrationV1alpha1::LocalizedMessage

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 warningMessage



2099
2100
2101
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2099

def warning_message
  @warning_message
end

#warning_timeString

The time the warning occurred. Corresponds to the JSON property warningTime

Returns:

  • (String)


2104
2105
2106
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2104

def warning_time
  @warning_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2111
2112
2113
2114
2115
2116
2117
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2111

def update!(**args)
  @action_item = args[:action_item] if args.key?(:action_item)
  @code = args[:code] if args.key?(:code)
  @help_links = args[:help_links] if args.key?(:help_links)
  @warning_message = args[:warning_message] if args.key?(:warning_message)
  @warning_time = args[:warning_time] if args.key?(:warning_time)
end