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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TrialSettings
Returns a new instance of TrialSettings
655 656 657 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 655 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
646 647 648 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 646 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
653 654 655 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 653 def trial_end_time @trial_end_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
660 661 662 663 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 660 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 |