Class: Google::Apis::ResellerV1::Subscription::Plan::CommitmentInterval
- Inherits:
-
Object
- Object
- Google::Apis::ResellerV1::Subscription::Plan::CommitmentInterval
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/reseller_v1/classes.rb,
generated/google/apis/reseller_v1/representations.rb,
generated/google/apis/reseller_v1/representations.rb
Overview
In this version of the API, annual commitment plan's interval is one year.
Instance Attribute Summary collapse
-
#end_time ⇒ Fixnum
An annual commitment plan's interval's endTime in milliseconds using the UNIX Epoch format.
-
#start_time ⇒ Fixnum
An annual commitment plan's interval's startTime in milliseconds using UNIX Epoch format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CommitmentInterval
constructor
A new instance of CommitmentInterval.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CommitmentInterval
Returns a new instance of CommitmentInterval
594 595 596 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 594 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_time ⇒ Fixnum
An annual commitment plan's interval's endTime in milliseconds using the UNIX
Epoch format. See an example Epoch converter.
Corresponds to the JSON property endTime
586 587 588 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 586 def end_time @end_time end |
#start_time ⇒ Fixnum
An annual commitment plan's interval's startTime in milliseconds using UNIX
Epoch format. See an example Epoch converter.
Corresponds to the JSON property startTime
592 593 594 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 592 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
599 600 601 602 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 599 def update!(**args) @end_time = args[:end_time] if args.key?(:end_time) @start_time = args[:start_time] if args.key?(:start_time) end |