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.



318
319
320
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 318

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)


300
301
302
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 300

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>)


306
307
308
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 306

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



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

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



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

def titles
  @titles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



323
324
325
326
327
328
# 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