Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Product

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

A Product resource that defines a subscription service that can be resold.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1Product

Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1Product.



328
329
330
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 328

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

Instance Attribute Details

#nameString

Output only. Response only. Resource name of the subscription. It will have the format of "partners/partner_id/products/product_id" Corresponds to the JSON property name

Returns:

  • (String)


310
311
312
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 310

def name
  @name
end

#region_codesArray<String>

Output only. 2-letter ISO region code where the product is available in. Ex. " US" Please refers to: https://en.wikipedia.org/wiki/ISO_3166-1 Corresponds to the JSON property regionCodes

Returns:

  • (Array<String>)


316
317
318
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 316

def region_codes
  @region_codes
end

#subscription_billing_cycle_durationGoogle::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Duration

Describes the length of a period of a time. Corresponds to the JSON property subscriptionBillingCycleDuration



321
322
323
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 321

def subscription_billing_cycle_duration
  @subscription_billing_cycle_duration
end

#titlesArray<Google::Apis::PaymentsresellersubscriptionV1::GoogleTypeLocalizedText>

Output only. Localized human readable name of the product. Corresponds to the JSON property titles



326
327
328
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 326

def titles
  @titles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



333
334
335
336
337
338
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 333

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