Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec
- Inherits:
-
Object
- Object
- Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec
- 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
Describes the spec for one promotion.
Instance Attribute Summary collapse
-
#free_trial_duration ⇒ Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Duration
Describes the length of a period of a time.
-
#introductory_pricing_details ⇒ Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails
The details of a introductory pricing promotion.
-
#promotion ⇒ String
Required.
-
#type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec
constructor
A new instance of GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec
Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec.
1016 1017 1018 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1016 def initialize(**args) update!(**args) end |
Instance Attribute Details
#free_trial_duration ⇒ Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Duration
Describes the length of a period of a time.
Corresponds to the JSON property freeTrialDuration
998 999 1000 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 998 def free_trial_duration @free_trial_duration end |
#introductory_pricing_details ⇒ Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails
The details of a introductory pricing promotion.
Corresponds to the JSON property introductoryPricingDetails
1003 1004 1005 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1003 def introductory_pricing_details @introductory_pricing_details end |
#promotion ⇒ String
Required. Promotion resource name that identifies a promotion. The format is '
partners/partner_id/promotions/promotion_id'.
Corresponds to the JSON property promotion
1009 1010 1011 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1009 def promotion @promotion end |
#type ⇒ String
Output only. The type of the promotion for the spec.
Corresponds to the JSON property type
1014 1015 1016 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1014 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1021 1022 1023 1024 1025 1026 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1021 def update!(**args) @free_trial_duration = args[:free_trial_duration] if args.key?(:free_trial_duration) @introductory_pricing_details = args[:introductory_pricing_details] if args.key?(:introductory_pricing_details) @promotion = args[:promotion] if args.key?(:promotion) @type = args[:type] if args.key?(:type) end |