Class: Google::Cloud::DataCatalog::V1::DatabaseTableSpec

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

Overview

Specification that applies to a table resource. Valid only for entries with the TABLE type.

Defined Under Namespace

Modules: TableType Classes: DatabaseViewSpec

Instance Attribute Summary collapse

Instance Attribute Details

#database_view_spec::Google::Cloud::DataCatalog::V1::DatabaseTableSpec::DatabaseViewSpec

Returns Spec what applies to tables that are actually views. Not set for "real" tables.

Returns:



664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
# File 'proto_docs/google/cloud/datacatalog/v1/datacatalog.rb', line 664

class DatabaseTableSpec
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specification that applies to database view.
  # @!attribute [rw] view_type
  #   @return [::Google::Cloud::DataCatalog::V1::DatabaseTableSpec::DatabaseViewSpec::ViewType]
  #     Type of this view.
  # @!attribute [rw] base_table
  #   @return [::String]
  #     Name of a singular table this view reflects one to one.
  #
  #     Note: The following fields are mutually exclusive: `base_table`, `sql_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] sql_query
  #   @return [::String]
  #     SQL query used to generate this view.
  #
  #     Note: The following fields are mutually exclusive: `sql_query`, `base_table`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  class DatabaseViewSpec
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Concrete type of the view.
    module ViewType
      # Default unknown view type.
      VIEW_TYPE_UNSPECIFIED = 0

      # Standard view.
      STANDARD_VIEW = 1

      # Materialized view.
      MATERIALIZED_VIEW = 2
    end
  end

  # Type of the table.
  module TableType
    # Default unknown table type.
    TABLE_TYPE_UNSPECIFIED = 0

    # Native table.
    NATIVE = 1

    # External table.
    EXTERNAL = 2
  end
end

#dataplex_table::Google::Cloud::DataCatalog::V1::DataplexTableSpec (readonly)

Returns Output only. Fields specific to a Dataplex table and present only in the Dataplex table entries.

Returns:



664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
# File 'proto_docs/google/cloud/datacatalog/v1/datacatalog.rb', line 664

class DatabaseTableSpec
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specification that applies to database view.
  # @!attribute [rw] view_type
  #   @return [::Google::Cloud::DataCatalog::V1::DatabaseTableSpec::DatabaseViewSpec::ViewType]
  #     Type of this view.
  # @!attribute [rw] base_table
  #   @return [::String]
  #     Name of a singular table this view reflects one to one.
  #
  #     Note: The following fields are mutually exclusive: `base_table`, `sql_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] sql_query
  #   @return [::String]
  #     SQL query used to generate this view.
  #
  #     Note: The following fields are mutually exclusive: `sql_query`, `base_table`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  class DatabaseViewSpec
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Concrete type of the view.
    module ViewType
      # Default unknown view type.
      VIEW_TYPE_UNSPECIFIED = 0

      # Standard view.
      STANDARD_VIEW = 1

      # Materialized view.
      MATERIALIZED_VIEW = 2
    end
  end

  # Type of the table.
  module TableType
    # Default unknown table type.
    TABLE_TYPE_UNSPECIFIED = 0

    # Native table.
    NATIVE = 1

    # External table.
    EXTERNAL = 2
  end
end

#type::Google::Cloud::DataCatalog::V1::DatabaseTableSpec::TableType

Returns Type of this table.



664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
# File 'proto_docs/google/cloud/datacatalog/v1/datacatalog.rb', line 664

class DatabaseTableSpec
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specification that applies to database view.
  # @!attribute [rw] view_type
  #   @return [::Google::Cloud::DataCatalog::V1::DatabaseTableSpec::DatabaseViewSpec::ViewType]
  #     Type of this view.
  # @!attribute [rw] base_table
  #   @return [::String]
  #     Name of a singular table this view reflects one to one.
  #
  #     Note: The following fields are mutually exclusive: `base_table`, `sql_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] sql_query
  #   @return [::String]
  #     SQL query used to generate this view.
  #
  #     Note: The following fields are mutually exclusive: `sql_query`, `base_table`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  class DatabaseViewSpec
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Concrete type of the view.
    module ViewType
      # Default unknown view type.
      VIEW_TYPE_UNSPECIFIED = 0

      # Standard view.
      STANDARD_VIEW = 1

      # Materialized view.
      MATERIALIZED_VIEW = 2
    end
  end

  # Type of the table.
  module TableType
    # Default unknown table type.
    TABLE_TYPE_UNSPECIFIED = 0

    # Native table.
    NATIVE = 1

    # External table.
    EXTERNAL = 2
  end
end