Class: Google::Cloud::CloudDMS::V1::ConstraintEntity

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/clouddms/v1/conversionworkspace_resources.rb

Overview

Constraint is not used as an independent entity, it is retrieved as part of another entity such as Table or View.

Instance Attribute Summary collapse

Instance Attribute Details

#custom_features::Google::Protobuf::Struct

Returns Custom engine specific features.

Returns:



966
967
968
969
# File 'proto_docs/google/cloud/clouddms/v1/conversionworkspace_resources.rb', line 966

class ConstraintEntity
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#name::String

Returns The name of the table constraint.

Returns:

  • (::String)

    The name of the table constraint.



966
967
968
969
# File 'proto_docs/google/cloud/clouddms/v1/conversionworkspace_resources.rb', line 966

class ConstraintEntity
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#reference_columns::Array<::String>

Returns Reference columns which may be associated with the constraint. For example, if the constraint is a FOREIGN_KEY, this represents the list of full names of referenced columns by the foreign key.

Returns:

  • (::Array<::String>)

    Reference columns which may be associated with the constraint. For example, if the constraint is a FOREIGN_KEY, this represents the list of full names of referenced columns by the foreign key.



966
967
968
969
# File 'proto_docs/google/cloud/clouddms/v1/conversionworkspace_resources.rb', line 966

class ConstraintEntity
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#reference_table::String

Returns Reference table which may be associated with the constraint. For example, if the constraint is a FOREIGN_KEY, this represents the list of full name of the referenced table by the foreign key.

Returns:

  • (::String)

    Reference table which may be associated with the constraint. For example, if the constraint is a FOREIGN_KEY, this represents the list of full name of the referenced table by the foreign key.



966
967
968
969
# File 'proto_docs/google/cloud/clouddms/v1/conversionworkspace_resources.rb', line 966

class ConstraintEntity
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#table_columns::Array<::String>

Returns Table columns used as part of the Constraint, for example primary key constraint should list the columns which constitutes the key.

Returns:

  • (::Array<::String>)

    Table columns used as part of the Constraint, for example primary key constraint should list the columns which constitutes the key.



966
967
968
969
# File 'proto_docs/google/cloud/clouddms/v1/conversionworkspace_resources.rb', line 966

class ConstraintEntity
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#table_name::String

Returns Table which is associated with the constraint. In case the constraint is defined on a table, this field is left empty as this information is stored in parent_name. However, if constraint is defined on a view, this field stores the table name on which the view is defined.

Returns:

  • (::String)

    Table which is associated with the constraint. In case the constraint is defined on a table, this field is left empty as this information is stored in parent_name. However, if constraint is defined on a view, this field stores the table name on which the view is defined.



966
967
968
969
# File 'proto_docs/google/cloud/clouddms/v1/conversionworkspace_resources.rb', line 966

class ConstraintEntity
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#type::String

Returns Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).

Returns:

  • (::String)

    Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).



966
967
968
969
# File 'proto_docs/google/cloud/clouddms/v1/conversionworkspace_resources.rb', line 966

class ConstraintEntity
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end