Class: Google::Apis::EventarcV1::EventType
- Inherits:
-
Object
- Object
- Google::Apis::EventarcV1::EventType
- 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 event type resource.
Instance Attribute Summary collapse
-
#description ⇒ String
Output only.
-
#event_schema_uri ⇒ String
Output only.
-
#filtering_attributes ⇒ Array<Google::Apis::EventarcV1::FilteringAttribute>
Output only.
-
#type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EventType
constructor
A new instance of EventType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EventType
Returns a new instance of EventType.
309 310 311 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 309 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Output only. Human friendly description of what the event type is about. For
example "Bucket created in Cloud Storage".
Corresponds to the JSON property description
286 287 288 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 286 def description @description end |
#event_schema_uri ⇒ String
Output only. URI for the event schema. For example "https://github.com/
googleapis/google-cloudevents/blob/master/proto/google/events/cloud/storage/v1/
events.proto"
Corresponds to the JSON property eventSchemaUri
293 294 295 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 293 def event_schema_uri @event_schema_uri end |
#filtering_attributes ⇒ Array<Google::Apis::EventarcV1::FilteringAttribute>
Output only. Filtering attributes for the event type.
Corresponds to the JSON property filteringAttributes
298 299 300 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 298 def filtering_attributes @filtering_attributes end |
#type ⇒ String
Output only. The full name of the event type (for example, "google.cloud.
storage.object.v1.finalized"). In the form of provider-id.resource.
version.verb. Types MUST be versioned and event schemas are guaranteed to
remain backward compatible within one version. Note that event type versions
and API versions do not need to match.
Corresponds to the JSON property type
307 308 309 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 307 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
314 315 316 317 318 319 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 314 def update!(**args) @description = args[:description] if args.key?(:description) @event_schema_uri = args[:event_schema_uri] if args.key?(:event_schema_uri) @filtering_attributes = args[:filtering_attributes] if args.key?(:filtering_attributes) @type = args[:type] if args.key?(:type) end |