Class: Google::Apis::EventarcV1::FilteringAttribute
- Inherits:
-
Object
- Object
- Google::Apis::EventarcV1::FilteringAttribute
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/eventarc_v1/classes.rb,
lib/google/apis/eventarc_v1/representations.rb,
lib/google/apis/eventarc_v1/representations.rb
Overview
A representation of the FilteringAttribute resource. Filtering attributes are per event type.
Instance Attribute Summary collapse
-
#attribute ⇒ String
Output only.
-
#description ⇒ String
Output only.
-
#path_pattern_supported ⇒ Boolean
(also: #path_pattern_supported?)
Output only.
-
#required ⇒ Boolean
(also: #required?)
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FilteringAttribute
constructor
A new instance of FilteringAttribute.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FilteringAttribute
Returns a new instance of FilteringAttribute.
612 613 614 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 612 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attribute ⇒ String
Output only. Attribute used for filtering the event type.
Corresponds to the JSON property attribute
591 592 593 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 591 def attribute @attribute end |
#description ⇒ String
Output only. Description of the purpose of the attribute.
Corresponds to the JSON property description
596 597 598 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 596 def description @description end |
#path_pattern_supported ⇒ Boolean Also known as: path_pattern_supported?
Output only. If true, the attribute accepts matching expressions in the
Eventarc PathPattern format.
Corresponds to the JSON property pathPatternSupported
602 603 604 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 602 def path_pattern_supported @path_pattern_supported end |
#required ⇒ Boolean Also known as: required?
Output only. If true, the triggers for this provider should always specify a
filter on these attributes. Trigger creation will fail otherwise.
Corresponds to the JSON property required
609 610 611 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 609 def required @required end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
617 618 619 620 621 622 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 617 def update!(**args) @attribute = args[:attribute] if args.key?(:attribute) @description = args[:description] if args.key?(:description) @path_pattern_supported = args[:path_pattern_supported] if args.key?(:path_pattern_supported) @required = args[:required] if args.key?(:required) end |