Class: Google::Apis::ResellerV1::Subscription::TrialSettings

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_trialBoolean Also known as: is_in_trial?

Whether the subscription is in trial. Corresponds to the JSON property isInTrial

Returns:

  • (Boolean)


487
488
489
# File 'generated/google/apis/reseller_v1/classes.rb', line 487

def is_in_trial
  @is_in_trial
end

#trial_end_timeString

End time of the trial in milliseconds since Unix epoch. Corresponds to the JSON property trialEndTime

Returns:

  • (String)


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