Class: Google::Apis::RunV1alpha1::EventTypeSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/run_v1alpha1/classes.rb,
generated/google/apis/run_v1alpha1/representations.rb,
generated/google/apis/run_v1alpha1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ EventTypeSpec

Returns a new instance of EventTypeSpec



1434
1435
1436
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1434

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

Instance Attribute Details

#brokerString

Refers to the Broker that can provide the EventType. Corresponds to the JSON property broker

Returns:

  • (String)


1402
1403
1404
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1402

def broker
  @broker
end

#descriptionString

Description is a string describing what the EventType is about. +optional Corresponds to the JSON property description

Returns:

  • (String)


1408
1409
1410
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1408

def description
  @description
end

#importerGoogle::Apis::RunV1alpha1::EventTypeImporter

The importer that provides this EventType to the eventing mesh. Corresponds to the JSON property importer



1413
1414
1415
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1413

def importer
  @importer
end

#schemaString

Schema is a URI with the EventType schema. It may be a JSON schema, a protobuf schema, etc. +optional Corresponds to the JSON property schema

Returns:

  • (String)


1420
1421
1422
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1420

def schema
  @schema
end

#sourceString

Source is a valid URI. Refers to the CloudEvent source as it enters into the eventing mesh. Corresponds to the JSON property source

Returns:

  • (String)


1426
1427
1428
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1426

def source
  @source
end

#typeString

Type is authoritative. This refers to the CloudEvent type as it enters into the eventing mesh. Corresponds to the JSON property type

Returns:

  • (String)


1432
1433
1434
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1432

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1439
1440
1441
1442
1443
1444
1445
1446
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1439

def update!(**args)
  @broker = args[:broker] if args.key?(:broker)
  @description = args[:description] if args.key?(:description)
  @importer = args[:importer] if args.key?(:importer)
  @schema = args[:schema] if args.key?(:schema)
  @source = args[:source] if args.key?(:source)
  @type = args[:type] if args.key?(:type)
end