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.



399
400
401
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 399

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)


381
382
383
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 381

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


387
388
389
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 387

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



392
393
394
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 392

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



397
398
399
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 397

def titles
  @titles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



404
405
406
407
408
409
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 404

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