Class: Google::Apis::PaymentsresellersubscriptionV1::EntitleSubscriptionIntent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/paymentsresellersubscription_v1/classes.rb,
lib/google/apis/paymentsresellersubscription_v1/representations.rb,
lib/google/apis/paymentsresellersubscription_v1/representations.rb

Overview

Intent for entitling the previously provisioned subscription to an end user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EntitleSubscriptionIntent

Returns a new instance of EntitleSubscriptionIntent.



212
213
214
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 212

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

Instance Attribute Details

#nameString

Required. The name of the subscription resource that is entitled to the current end user. It is in the format of "partners/partner_id/subscriptions/ subscriptionId". Corresponds to the JSON property name

Returns:

  • (String)


210
211
212
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 210

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



217
218
219
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 217

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