Class: Google::Apis::EventarcV1::FilteringAttribute

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FilteringAttribute

Returns a new instance of FilteringAttribute.



702
703
704
# File 'lib/google/apis/eventarc_v1/classes.rb', line 702

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#attributeString

Output only. Attribute used for filtering the event type. Corresponds to the JSON property attribute

Returns:

  • (String)


681
682
683
# File 'lib/google/apis/eventarc_v1/classes.rb', line 681

def attribute
  @attribute
end

#descriptionString

Output only. Description of the purpose of the attribute. Corresponds to the JSON property description

Returns:

  • (String)


686
687
688
# File 'lib/google/apis/eventarc_v1/classes.rb', line 686

def description
  @description
end

#path_pattern_supportedBoolean 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

Returns:

  • (Boolean)


692
693
694
# File 'lib/google/apis/eventarc_v1/classes.rb', line 692

def path_pattern_supported
  @path_pattern_supported
end

#requiredBoolean 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

Returns:

  • (Boolean)


699
700
701
# File 'lib/google/apis/eventarc_v1/classes.rb', line 699

def required
  @required
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



707
708
709
710
711
712
# File 'lib/google/apis/eventarc_v1/classes.rb', line 707

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