Class: Google::Apis::ResellerV1::Subscription::TrialSettings
- Inherits:
-
Object
- Object
- Google::Apis::ResellerV1::Subscription::TrialSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/reseller_v1/classes.rb,
generated/google/apis/reseller_v1/representations.rb,
generated/google/apis/reseller_v1/representations.rb
Overview
The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
Instance Attribute Summary collapse
-
#is_in_trial ⇒ Boolean
(also: #is_in_trial?)
Determines if a subscription's plan is in a 30-day free trial or not: - true — The plan is in trial.
-
#trial_end_time ⇒ Fixnum
Date when the trial ends.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TrialSettings
constructor
A new instance of TrialSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TrialSettings
Returns a new instance of TrialSettings.
639 640 641 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 639 def initialize(**args) update!(**args) end |
Instance Attribute Details
#is_in_trial ⇒ Boolean Also known as: is_in_trial?
Determines if a subscription's plan is in a 30-day free trial or not: - true —
The plan is in trial. - false — The plan is not in trial.
Corresponds to the JSON property isInTrial
630 631 632 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 630 def is_in_trial @is_in_trial end |
#trial_end_time ⇒ Fixnum
Date when the trial ends. The value is in milliseconds using the UNIX Epoch
format. See an example Epoch converter.
Corresponds to the JSON property trialEndTime
637 638 639 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 637 def trial_end_time @trial_end_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
644 645 646 647 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 644 def update!(**args) @is_in_trial = args[:is_in_trial] if args.key?(:is_in_trial) @trial_end_time = args[:trial_end_time] if args.key?(:trial_end_time) end |