Class: Google::Apis::EventarcV1::Provider

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 Provider resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Provider

Returns a new instance of Provider.



1217
1218
1219
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1217

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

Instance Attribute Details

#display_nameString

Output only. Human friendly name for the Provider. For example "Cloud Storage". Corresponds to the JSON property displayName

Returns:

  • (String)


1204
1205
1206
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1204

def display_name
  @display_name
end

#event_typesArray<Google::Apis::EventarcV1::EventType>

Output only. Event types for this provider. Corresponds to the JSON property eventTypes



1209
1210
1211
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1209

def event_types
  @event_types
end

#nameString

Output only. In projects/project/locations/location/providers/ provider_id`format. Corresponds to the JSON propertyname`

Returns:

  • (String)


1215
1216
1217
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1215

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1222
1223
1224
1225
1226
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1222

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @event_types = args[:event_types] if args.key?(:event_types)
  @name = args[:name] if args.key?(:name)
end