Class: Google::Apis::DatamigrationV1::EntityIssue

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

Overview

Issue related to the entity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EntityIssue

Returns a new instance of EntityIssue.



1723
1724
1725
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1723

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

Instance Attribute Details

#codeString

Error/Warning code Corresponds to the JSON property code

Returns:

  • (String)


1686
1687
1688
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1686

def code
  @code
end

#ddlString

The ddl which caused the issue, if relevant. Corresponds to the JSON property ddl

Returns:

  • (String)


1691
1692
1693
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1691

def ddl
  @ddl
end

#entity_typeString

The entity type (if the DDL is for a sub entity). Corresponds to the JSON property entityType

Returns:

  • (String)


1696
1697
1698
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1696

def entity_type
  @entity_type
end

#idString

Unique Issue ID. Corresponds to the JSON property id

Returns:

  • (String)


1701
1702
1703
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1701

def id
  @id
end

#messageString

Issue detailed message Corresponds to the JSON property message

Returns:

  • (String)


1706
1707
1708
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1706

def message
  @message
end

#positionGoogle::Apis::DatamigrationV1::Position

Issue position. Corresponds to the JSON property position



1711
1712
1713
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1711

def position
  @position
end

#severityString

Severity of the issue Corresponds to the JSON property severity

Returns:

  • (String)


1716
1717
1718
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1716

def severity
  @severity
end

#typeString

The type of the issue. Corresponds to the JSON property type

Returns:

  • (String)


1721
1722
1723
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1721

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1728

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @ddl = args[:ddl] if args.key?(:ddl)
  @entity_type = args[:entity_type] if args.key?(:entity_type)
  @id = args[:id] if args.key?(:id)
  @message = args[:message] if args.key?(:message)
  @position = args[:position] if args.key?(:position)
  @severity = args[:severity] if args.key?(:severity)
  @type = args[:type] if args.key?(:type)
end