Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1TrialSettings
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1TrialSettings
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudchannel_v1/classes.rb,
lib/google/apis/cloudchannel_v1/representations.rb,
lib/google/apis/cloudchannel_v1/representations.rb
Overview
Settings for trial offers.
Instance Attribute Summary collapse
-
#end_time ⇒ String
Date when the trial ends.
-
#trial ⇒ Boolean
(also: #trial?)
Determines if the entitlement is in a trial or not: *
true
- The entitlement is in trial.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1TrialSettings
constructor
A new instance of GoogleCloudChannelV1TrialSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudChannelV1TrialSettings
Returns a new instance of GoogleCloudChannelV1TrialSettings.
3188 3189 3190 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3188 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_time ⇒ String
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 endTime
3179 3180 3181 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3179 def end_time @end_time end |
#trial ⇒ Boolean Also known as: trial?
Determines if the entitlement is in a trial or not: * true
- The entitlement
is in trial. * false
- The entitlement is not in trial.
Corresponds to the JSON property trial
3185 3186 3187 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3185 def trial @trial end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3193 3194 3195 3196 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3193 def update!(**args) @end_time = args[:end_time] if args.key?(:end_time) @trial = args[:trial] if args.key?(:trial) end |