Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Period
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1Period
- 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
-
#duration ⇒ Fixnum
Total duration of Period Type defined.
-
#period_type ⇒ String
Period Type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1Period
constructor
A new instance of GoogleCloudChannelV1Period.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudChannelV1Period
Returns a new instance of GoogleCloudChannelV1Period.
2342 2343 2344 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2342 def initialize(**args) update!(**args) end |
Instance Attribute Details
#duration ⇒ Fixnum
Total duration of Period Type defined.
Corresponds to the JSON property duration
2335 2336 2337 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2335 def duration @duration end |
#period_type ⇒ String
Period Type.
Corresponds to the JSON property periodType
2340 2341 2342 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2340 def period_type @period_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2347 2348 2349 2350 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2347 def update!(**args) @duration = args[:duration] if args.key?(:duration) @period_type = args[:period_type] if args.key?(:period_type) end |