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
Trial Settings of the subscription.
Instance Attribute Summary collapse
-
#is_in_trial ⇒ Boolean
(also: #is_in_trial?)
Whether the subscription is in trial.
-
#trial_end_time ⇒ String
End time of the trial in milliseconds since Unix epoch.
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.
495 496 497 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 495 def initialize(**args) update!(**args) end |
Instance Attribute Details
#is_in_trial ⇒ Boolean Also known as: is_in_trial?
Whether the subscription is in trial.
Corresponds to the JSON property isInTrial
487 488 489 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 487 def is_in_trial @is_in_trial end |
#trial_end_time ⇒ String
End time of the trial in milliseconds since Unix epoch.
Corresponds to the JSON property trialEndTime
493 494 495 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 493 def trial_end_time @trial_end_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
500 501 502 503 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 500 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 |