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.
-
#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.
396 397 398 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 396 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
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
378 379 380 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 378 def name @name 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
384 385 386 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 384 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
389 390 391 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 389 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
394 395 396 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 394 def titles @titles end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
401 402 403 404 405 406 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 401 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 |