Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Period

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

Represents period in days/months/years.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1alpha1Period

Returns a new instance of GoogleCloudChannelV1alpha1Period.



3659
3660
3661
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3659

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

Instance Attribute Details

#durationFixnum

Total duration of Period Type defined. Corresponds to the JSON property duration

Returns:

  • (Fixnum)


3652
3653
3654
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3652

def duration
  @duration
end

#period_typeString

Period Type. Corresponds to the JSON property periodType

Returns:

  • (String)


3657
3658
3659
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3657

def period_type
  @period_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3664
3665
3666
3667
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3664

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