class Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1TrialSettings

Settings for trial offers.

Attributes

end_time[RW]

Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example [Epoch converter](www.epochconverter.com). Corresponds to the JSON property `endTime` @return [String]

trial[RW]

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` @return [Boolean]

trial?[RW]

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` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudchannel_v1/classes.rb, line 2919
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudchannel_v1/classes.rb, line 2924
def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @trial = args[:trial] if args.key?(:trial)
end