Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1CustomerEvent

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 customer update.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1alpha1CustomerEvent

Returns a new instance of GoogleCloudChannelV1alpha1CustomerEvent.



3434
3435
3436
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3434

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

Instance Attribute Details

#customerString

Resource name of the customer. Format: accounts/account_id/customers/ customer_id Corresponds to the JSON property customer

Returns:

  • (String)


3427
3428
3429
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3427

def customer
  @customer
end

#event_typeString

Type of event which happened on the customer. Corresponds to the JSON property eventType

Returns:

  • (String)


3432
3433
3434
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3432

def event_type
  @event_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3439
3440
3441
3442
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3439

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