class Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Product

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

Attributes

name[RW]

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` @return [String]

region_codes[RW]

Output only. 2-letter ISO region code where the product is available in. Ex. “ US” Please refers to: en.wikipedia.org/wiki/ISO_3166-1 Corresponds to the JSON property `regionCodes` @return [Array<String>]

subscription_billing_cycle_duration[RW]

Describes the length of a period of a time. Corresponds to the JSON property `subscriptionBillingCycleDuration` @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Duration]

titles[RW]

Output only. Localized human readable name of the product. Corresponds to the JSON property `titles` @return [Array<Google::Apis::PaymentsresellersubscriptionV1::GoogleTypeLocalizedText>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/paymentsresellersubscription_v1/classes.rb, line 318
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/paymentsresellersubscription_v1/classes.rb, line 323
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