Class: Google::Apis::MigrationcenterV1alpha1::GenericInsight

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

Overview

A generic insight about an asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenericInsight

Returns a new instance of GenericInsight.



3004
3005
3006
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3004

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

Instance Attribute Details

#additional_informationArray<String>

Output only. Additional information about the insight, each entry can be a logical entry and must make sense if it is displayed with line breaks between each entry. Text can contain md style links. Corresponds to the JSON property additionalInformation

Returns:

  • (Array<String>)


2988
2989
2990
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2988

def additional_information
  @additional_information
end

#default_messageString

Output only. In case message_code is not yet known by the client default_message will be the message to be used instead. Text can contain md file style links. Corresponds to the JSON property defaultMessage

Returns:

  • (String)


2995
2996
2997
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2995

def default_message
  @default_message
end

#message_idFixnum

Output only. Represents a globally unique message id for this insight, can be used for localization purposes, in case message_code is not yet known by the client use default_message instead. Corresponds to the JSON property messageId

Returns:

  • (Fixnum)


3002
3003
3004
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3002

def message_id
  @message_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3009
3010
3011
3012
3013
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3009

def update!(**args)
  @additional_information = args[:additional_information] if args.key?(:additional_information)
  @default_message = args[:default_message] if args.key?(:default_message)
  @message_id = args[:message_id] if args.key?(:message_id)
end