Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1EntitlementEvent
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1EntitlementEvent
- 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 entitlement update.
Instance Attribute Summary collapse
-
#entitlement ⇒ String
Resource name of an entitlement of the form: accounts/
account_id
/customers/customer_id
/entitlements/entitlement_id
Corresponds to the JSON propertyentitlement
. -
#event_type ⇒ String
Type of event which happened for the entitlement.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1EntitlementEvent
constructor
A new instance of GoogleCloudChannelV1EntitlementEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudChannelV1EntitlementEvent
Returns a new instance of GoogleCloudChannelV1EntitlementEvent.
1365 1366 1367 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1365 def initialize(**args) update!(**args) end |
Instance Attribute Details
#entitlement ⇒ String
Resource name of an entitlement of the form: accounts/account_id
/customers/
customer_id
/entitlements/entitlement_id
Corresponds to the JSON property entitlement
1358 1359 1360 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1358 def entitlement @entitlement end |
#event_type ⇒ String
Type of event which happened for the entitlement.
Corresponds to the JSON property eventType
1363 1364 1365 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1363 def event_type @event_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1370 1371 1372 1373 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1370 def update!(**args) @entitlement = args[:entitlement] if args.key?(:entitlement) @event_type = args[:event_type] if args.key?(:event_type) end |