Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1OpportunityEvent

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_typeString

Type of event which happened for the opportunity. Corresponds to the JSON property eventType

Returns:

  • (String)


4209
4210
4211
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4209

def event_type
  @event_type
end

#opportunityString

Resource name of the opportunity. Format: opportunities/opportunity Corresponds to the JSON property opportunity

Returns:

  • (String)


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