Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1SubscriberEvent

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 information which resellers will get as part of notification from Pub/Sub.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1alpha1SubscriberEvent

Returns a new instance of GoogleCloudChannelV1alpha1SubscriberEvent.



3166
3167
3168
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3166

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

Instance Attribute Details

#channel_partner_eventGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1ChannelPartnerEvent

Represents Pub/Sub messages about updates to a Channel Partner. You can retrieve updated values through the ChannelPartnerLinks API. Corresponds to the JSON property channelPartnerEvent



3154
3155
3156
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3154

def channel_partner_event
  @channel_partner_event
end

#customer_eventGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1CustomerEvent

Represents Pub/Sub message content describing customer update. Corresponds to the JSON property customerEvent



3159
3160
3161
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3159

def customer_event
  @customer_event
end

#entitlement_eventGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1EntitlementEvent

Represents Pub/Sub message content describing entitlement update. Corresponds to the JSON property entitlementEvent



3164
3165
3166
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3164

def entitlement_event
  @entitlement_event
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3171
3172
3173
3174
3175
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3171

def update!(**args)
  @channel_partner_event = args[:channel_partner_event] if args.key?(:channel_partner_event)
  @customer_event = args[:customer_event] if args.key?(:customer_event)
  @entitlement_event = args[:entitlement_event] if args.key?(:entitlement_event)
end