class Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Period

Represents period in days/months/years.

Attributes

duration[RW]

Total duration of Period Type defined. Corresponds to the JSON property `duration` @return [Fixnum]

period_type[RW]

Period Type. Corresponds to the JSON property `periodType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudchannel_v1/classes.rb, line 2757
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 2762
def update!(**args)
  @duration = args[:duration] if args.key?(:duration)
  @period_type = args[:period_type] if args.key?(:period_type)
end