Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1CustomerEvent
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1CustomerEvent
- 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 customer update.
Instance Attribute Summary collapse
-
#customer ⇒ String
Resource name of the customer.
-
#event_type ⇒ String
Type of event which happened on the customer.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1alpha1CustomerEvent
constructor
A new instance of GoogleCloudChannelV1alpha1CustomerEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudChannelV1alpha1CustomerEvent
Returns a new instance of GoogleCloudChannelV1alpha1CustomerEvent.
2467 2468 2469 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2467 def initialize(**args) update!(**args) end |
Instance Attribute Details
#customer ⇒ String
Resource name of the customer. Format: accounts/account_id
/customers/
customer_id
Corresponds to the JSON property customer
2460 2461 2462 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2460 def customer @customer end |
#event_type ⇒ String
Type of event which happened on the customer.
Corresponds to the JSON property eventType
2465 2466 2467 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2465 def event_type @event_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2472 2473 2474 2475 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2472 def update!(**args) @customer = args[:customer] if args.key?(:customer) @event_type = args[:event_type] if args.key?(:event_type) end |