Class: Google::Apis::ResellerV1::Subscription::TrialSettings
- Inherits:
-
Object
- Object
- Google::Apis::ResellerV1::Subscription::TrialSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/reseller_v1/classes.rb,
lib/google/apis/reseller_v1/representations.rb,
lib/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.
691 692 693 |
# File 'lib/google/apis/reseller_v1/classes.rb', line 691 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
682 683 684 |
# File 'lib/google/apis/reseller_v1/classes.rb', line 682 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
689 690 691 |
# File 'lib/google/apis/reseller_v1/classes.rb', line 689 def trial_end_time @trial_end_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
696 697 698 699 |
# File 'lib/google/apis/reseller_v1/classes.rb', line 696 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 |