Class: Google::Cloud::Dataplex::V1::Asset::DiscoverySpec

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

Overview

Settings to manage the metadata discovery and publishing for an asset.

Defined Under Namespace

Classes: CsvOptions, JsonOptions

Instance Attribute Summary collapse

Instance Attribute Details

#csv_options::Google::Cloud::Dataplex::V1::Asset::DiscoverySpec::CsvOptions

Returns Optional. Configuration for CSV data.

Returns:



633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
# File 'proto_docs/google/cloud/dataplex/v1/resources.rb', line 633

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

  # Describe CSV and similar semi-structured data formats.
  # @!attribute [rw] header_rows
  #   @return [::Integer]
  #     Optional. The number of rows to interpret as header rows that should be
  #     skipped when reading data rows.
  # @!attribute [rw] delimiter
  #   @return [::String]
  #     Optional. The delimiter being used to separate values. This defaults to
  #     ','.
  # @!attribute [rw] encoding
  #   @return [::String]
  #     Optional. The character encoding of the data. The default is UTF-8.
  # @!attribute [rw] disable_type_inference
  #   @return [::Boolean]
  #     Optional. Whether to disable the inference of data type for CSV data.
  #     If true, all columns will be registered as strings.
  class CsvOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Describe JSON data format.
  # @!attribute [rw] encoding
  #   @return [::String]
  #     Optional. The character encoding of the data. The default is UTF-8.
  # @!attribute [rw] disable_type_inference
  #   @return [::Boolean]
  #     Optional. Whether to disable the inference of data type for Json data.
  #     If true, all columns will be registered as their primitive types
  #     (strings, number or boolean).
  class JsonOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#enabled::Boolean

Returns Optional. Whether discovery is enabled.

Returns:

  • (::Boolean)

    Optional. Whether discovery is enabled.



633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
# File 'proto_docs/google/cloud/dataplex/v1/resources.rb', line 633

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

  # Describe CSV and similar semi-structured data formats.
  # @!attribute [rw] header_rows
  #   @return [::Integer]
  #     Optional. The number of rows to interpret as header rows that should be
  #     skipped when reading data rows.
  # @!attribute [rw] delimiter
  #   @return [::String]
  #     Optional. The delimiter being used to separate values. This defaults to
  #     ','.
  # @!attribute [rw] encoding
  #   @return [::String]
  #     Optional. The character encoding of the data. The default is UTF-8.
  # @!attribute [rw] disable_type_inference
  #   @return [::Boolean]
  #     Optional. Whether to disable the inference of data type for CSV data.
  #     If true, all columns will be registered as strings.
  class CsvOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Describe JSON data format.
  # @!attribute [rw] encoding
  #   @return [::String]
  #     Optional. The character encoding of the data. The default is UTF-8.
  # @!attribute [rw] disable_type_inference
  #   @return [::Boolean]
  #     Optional. Whether to disable the inference of data type for Json data.
  #     If true, all columns will be registered as their primitive types
  #     (strings, number or boolean).
  class JsonOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#exclude_patterns::Array<::String>

Returns Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

Returns:

  • (::Array<::String>)

    Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.



633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
# File 'proto_docs/google/cloud/dataplex/v1/resources.rb', line 633

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

  # Describe CSV and similar semi-structured data formats.
  # @!attribute [rw] header_rows
  #   @return [::Integer]
  #     Optional. The number of rows to interpret as header rows that should be
  #     skipped when reading data rows.
  # @!attribute [rw] delimiter
  #   @return [::String]
  #     Optional. The delimiter being used to separate values. This defaults to
  #     ','.
  # @!attribute [rw] encoding
  #   @return [::String]
  #     Optional. The character encoding of the data. The default is UTF-8.
  # @!attribute [rw] disable_type_inference
  #   @return [::Boolean]
  #     Optional. Whether to disable the inference of data type for CSV data.
  #     If true, all columns will be registered as strings.
  class CsvOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Describe JSON data format.
  # @!attribute [rw] encoding
  #   @return [::String]
  #     Optional. The character encoding of the data. The default is UTF-8.
  # @!attribute [rw] disable_type_inference
  #   @return [::Boolean]
  #     Optional. Whether to disable the inference of data type for Json data.
  #     If true, all columns will be registered as their primitive types
  #     (strings, number or boolean).
  class JsonOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#include_patterns::Array<::String>

Returns Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.

Returns:

  • (::Array<::String>)

    Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.



633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
# File 'proto_docs/google/cloud/dataplex/v1/resources.rb', line 633

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

  # Describe CSV and similar semi-structured data formats.
  # @!attribute [rw] header_rows
  #   @return [::Integer]
  #     Optional. The number of rows to interpret as header rows that should be
  #     skipped when reading data rows.
  # @!attribute [rw] delimiter
  #   @return [::String]
  #     Optional. The delimiter being used to separate values. This defaults to
  #     ','.
  # @!attribute [rw] encoding
  #   @return [::String]
  #     Optional. The character encoding of the data. The default is UTF-8.
  # @!attribute [rw] disable_type_inference
  #   @return [::Boolean]
  #     Optional. Whether to disable the inference of data type for CSV data.
  #     If true, all columns will be registered as strings.
  class CsvOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Describe JSON data format.
  # @!attribute [rw] encoding
  #   @return [::String]
  #     Optional. The character encoding of the data. The default is UTF-8.
  # @!attribute [rw] disable_type_inference
  #   @return [::Boolean]
  #     Optional. Whether to disable the inference of data type for Json data.
  #     If true, all columns will be registered as their primitive types
  #     (strings, number or boolean).
  class JsonOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#json_options::Google::Cloud::Dataplex::V1::Asset::DiscoverySpec::JsonOptions

Returns Optional. Configuration for Json data.

Returns:



633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
# File 'proto_docs/google/cloud/dataplex/v1/resources.rb', line 633

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

  # Describe CSV and similar semi-structured data formats.
  # @!attribute [rw] header_rows
  #   @return [::Integer]
  #     Optional. The number of rows to interpret as header rows that should be
  #     skipped when reading data rows.
  # @!attribute [rw] delimiter
  #   @return [::String]
  #     Optional. The delimiter being used to separate values. This defaults to
  #     ','.
  # @!attribute [rw] encoding
  #   @return [::String]
  #     Optional. The character encoding of the data. The default is UTF-8.
  # @!attribute [rw] disable_type_inference
  #   @return [::Boolean]
  #     Optional. Whether to disable the inference of data type for CSV data.
  #     If true, all columns will be registered as strings.
  class CsvOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Describe JSON data format.
  # @!attribute [rw] encoding
  #   @return [::String]
  #     Optional. The character encoding of the data. The default is UTF-8.
  # @!attribute [rw] disable_type_inference
  #   @return [::Boolean]
  #     Optional. Whether to disable the inference of data type for Json data.
  #     If true, all columns will be registered as their primitive types
  #     (strings, number or boolean).
  class JsonOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#schedule::String

Returns Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, `CRON_TZ=America/New_York 1

  • * * *, orTZ=America/New_York 1 * * * *`.

Returns:

  • (::String)

    Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, `CRON_TZ=America/New_York 1

    • * * *, orTZ=America/New_York 1 * * * *`.


633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
# File 'proto_docs/google/cloud/dataplex/v1/resources.rb', line 633

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

  # Describe CSV and similar semi-structured data formats.
  # @!attribute [rw] header_rows
  #   @return [::Integer]
  #     Optional. The number of rows to interpret as header rows that should be
  #     skipped when reading data rows.
  # @!attribute [rw] delimiter
  #   @return [::String]
  #     Optional. The delimiter being used to separate values. This defaults to
  #     ','.
  # @!attribute [rw] encoding
  #   @return [::String]
  #     Optional. The character encoding of the data. The default is UTF-8.
  # @!attribute [rw] disable_type_inference
  #   @return [::Boolean]
  #     Optional. Whether to disable the inference of data type for CSV data.
  #     If true, all columns will be registered as strings.
  class CsvOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Describe JSON data format.
  # @!attribute [rw] encoding
  #   @return [::String]
  #     Optional. The character encoding of the data. The default is UTF-8.
  # @!attribute [rw] disable_type_inference
  #   @return [::Boolean]
  #     Optional. Whether to disable the inference of data type for Json data.
  #     If true, all columns will be registered as their primitive types
  #     (strings, number or boolean).
  class JsonOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end