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.
-
#partner ⇒ String
Resource name of the partner.
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.
4269 4270 4271 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4269 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
4257 4258 4259 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4257 def event_type @event_type end |
#opportunity ⇒ String
Resource name of the opportunity. Format: opportunities/opportunity
Corresponds to the JSON property opportunity
4262 4263 4264 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4262 def opportunity @opportunity end |
#partner ⇒ String
Resource name of the partner. Format: partners/partner
Corresponds to the JSON property partner
4267 4268 4269 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4267 def partner @partner end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4274 4275 4276 4277 4278 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4274 def update!(**args) @event_type = args[:event_type] if args.key?(:event_type) @opportunity = args[:opportunity] if args.key?(:opportunity) @partner = args[:partner] if args.key?(:partner) end |