Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Product
- Inherits:
-
Object
- Object
- Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Product
- 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
-
#name ⇒ String
Output only.
-
#price_configs ⇒ Array<Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig>
Output only.
-
#region_codes ⇒ Array<String>
Output only.
-
#subscription_billing_cycle_duration ⇒ Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Duration
Describes the length of a period of a time.
-
#titles ⇒ Array<Google::Apis::PaymentsresellersubscriptionV1::GoogleTypeLocalizedText>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1Product
constructor
A new instance of GoogleCloudPaymentsResellerSubscriptionV1Product.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1Product
Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1Product.
468 469 470 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 468 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Output only. Response only. Resource name of the product. It will have the
format of "partners/partner_id/products/product_id"
Corresponds to the JSON property name
445 446 447 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 445 def name @name end |
#price_configs ⇒ Array<Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig>
Output only. Price configs for the product in the available regions.
Corresponds to the JSON property priceConfigs
450 451 452 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 450 def price_configs @price_configs end |
#region_codes ⇒ Array<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
456 457 458 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 456 def region_codes @region_codes end |
#subscription_billing_cycle_duration ⇒ Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Duration
Describes the length of a period of a time.
Corresponds to the JSON property subscriptionBillingCycleDuration
461 462 463 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 461 def subscription_billing_cycle_duration @subscription_billing_cycle_duration end |
#titles ⇒ Array<Google::Apis::PaymentsresellersubscriptionV1::GoogleTypeLocalizedText>
Output only. Localized human readable name of the product.
Corresponds to the JSON property titles
466 467 468 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 466 def titles @titles end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
473 474 475 476 477 478 479 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 473 def update!(**args) @name = args[:name] if args.key?(:name) @price_configs = args[:price_configs] if args.key?(:price_configs) @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 |