Class: Google::Apis::ConnectorsV1::ExtractionRule
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV1::ExtractionRule
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/connectors_v1/classes.rb,
lib/google/apis/connectors_v1/representations.rb,
lib/google/apis/connectors_v1/representations.rb
Overview
Extraction Rule.
Instance Attribute Summary collapse
-
#extraction_regex ⇒ String
Regex used to extract backend details from source.
-
#source ⇒ Google::Apis::ConnectorsV1::Source
Source to extract the backend from.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExtractionRule
constructor
A new instance of ExtractionRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExtractionRule
Returns a new instance of ExtractionRule.
2822 2823 2824 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2822 def initialize(**args) update!(**args) end |
Instance Attribute Details
#extraction_regex ⇒ String
Regex used to extract backend details from source. If empty, whole source
value will be used.
Corresponds to the JSON property extractionRegex
2815 2816 2817 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2815 def extraction_regex @extraction_regex end |
#source ⇒ Google::Apis::ConnectorsV1::Source
Source to extract the backend from.
Corresponds to the JSON property source
2820 2821 2822 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2820 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2827 2828 2829 2830 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2827 def update!(**args) @extraction_regex = args[:extraction_regex] if args.key?(:extraction_regex) @source = args[:source] if args.key?(:source) end |