Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1EntitlementEvent

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
more...

Overview

Represents Pub/Sub message content describing entitlement update.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1alpha1EntitlementEvent

Returns a new instance of GoogleCloudChannelV1alpha1EntitlementEvent.

[View source]

4100
4101
4102
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4100

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

Instance Attribute Details

#entitlementString

Resource name of an entitlement of the form: accounts/account_id/customers/ customer_id/entitlements/entitlement_id Corresponds to the JSON property entitlement

Returns:

  • (String)

4093
4094
4095
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4093

def entitlement
  @entitlement
end

#event_typeString

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

Returns:

  • (String)

4098
4099
4100
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4098

def event_type
  @event_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

4105
4106
4107
4108
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4105

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