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.



4272
4273
4274
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4272

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)


4260
4261
4262
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4260

def event_type
  @event_type
end

#opportunityString

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

Returns:

  • (String)


4265
4266
4267
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4265

def opportunity
  @opportunity
end

#partnerString

Resource name of the partner. Format: partners/partner Corresponds to the JSON property partner

Returns:

  • (String)


4270
4271
4272
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4270

def partner
  @partner
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4277
4278
4279
4280
4281
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4277

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