Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1TrialSettings

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1alpha1TrialSettings

Returns a new instance of GoogleCloudChannelV1alpha1TrialSettings.



4084
4085
4086
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4084

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#end_timeString

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

Returns:

  • (String)


4075
4076
4077
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4075

def end_time
  @end_time
end

#trialBoolean 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

Returns:

  • (Boolean)


4081
4082
4083
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4081

def trial
  @trial
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4089
4090
4091
4092
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4089

def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @trial = args[:trial] if args.key?(:trial)
end