Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1OpportunityEvent
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1OpportunityEvent
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudchannel_v1/classes.rb,
lib/google/apis/cloudchannel_v1/representations.rb,
lib/google/apis/cloudchannel_v1/representations.rb
Overview
Represents Pub/Sub message content describing opportunity updates.
Instance Attribute Summary collapse
-
#event_type ⇒ String
Type of event which happened for the opportunity.
-
#opportunity ⇒ String
Resource name of the opportunity.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1alpha1OpportunityEvent
constructor
A new instance of GoogleCloudChannelV1alpha1OpportunityEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudChannelV1alpha1OpportunityEvent
Returns a new instance of GoogleCloudChannelV1alpha1OpportunityEvent.
4216 4217 4218 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4216 def initialize(**args) update!(**args) end |
Instance Attribute Details
#event_type ⇒ String
Type of event which happened for the opportunity.
Corresponds to the JSON property eventType
4209 4210 4211 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4209 def event_type @event_type end |
#opportunity ⇒ String
Resource name of the opportunity. Format: opportunities/opportunity
Corresponds to the JSON property opportunity
4214 4215 4216 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4214 def opportunity @opportunity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4221 4222 4223 4224 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4221 def update!(**args) @event_type = args[:event_type] if args.key?(:event_type) @opportunity = args[:opportunity] if args.key?(:opportunity) end |