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
-
#bundle_details ⇒ Google::Apis::PaymentsresellersubscriptionV1::ProductBundleDetails
Details for a bundle product.
-
#finite_billing_cycle_details ⇒ Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails
Details for a subscriptiin line item with finite billing cycles.
-
#name ⇒ String
Identifier.
-
#price_configs ⇒ Array<Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig>
Output only.
-
#product_type ⇒ String
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.
556 557 558 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 556 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bundle_details ⇒ Google::Apis::PaymentsresellersubscriptionV1::ProductBundleDetails
Details for a bundle product.
Corresponds to the JSON property bundleDetails
517 518 519 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 517 def bundle_details @bundle_details end |
#finite_billing_cycle_details ⇒ Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails
Details for a subscriptiin line item with finite billing cycles.
Corresponds to the JSON property finiteBillingCycleDetails
522 523 524 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 522 def finite_billing_cycle_details @finite_billing_cycle_details end |
#name ⇒ String
Identifier. 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
528 529 530 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 528 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
533 534 535 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 533 def price_configs @price_configs end |
#product_type ⇒ String
Output only. Output Only. Specifies the type of the product.
Corresponds to the JSON property productType
538 539 540 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 538 def product_type @product_type 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
544 545 546 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 544 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
549 550 551 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 549 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
554 555 556 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 554 def titles @titles end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
561 562 563 564 565 566 567 568 569 570 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 561 def update!(**args) @bundle_details = args[:bundle_details] if args.key?(:bundle_details) @finite_billing_cycle_details = args[:finite_billing_cycle_details] if args.key?(:finite_billing_cycle_details) @name = args[:name] if args.key?(:name) @price_configs = args[:price_configs] if args.key?(:price_configs) @product_type = args[:product_type] if args.key?(:product_type) @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 |