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 Cloud Pub/Sub.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1alpha1SubscriberEvent

Returns a new instance of GoogleCloudChannelV1alpha1SubscriberEvent.



2881
2882
2883
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2881

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

Instance Attribute Details

#customer_eventGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1CustomerEvent

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



2874
2875
2876
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2874

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



2879
2880
2881
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2879

def entitlement_event
  @entitlement_event
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2886
2887
2888
2889
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2886

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