Class: Google::Apis::ResellerV1::Subscription::Plan::CommitmentInterval
- Inherits:
-
Object
- Object
- Google::Apis::ResellerV1::Subscription::Plan::CommitmentInterval
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/reseller_v1/classes.rb,
lib/google/apis/reseller_v1/representations.rb,
lib/google/apis/reseller_v1/representations.rb
Overview
In this version of the API, annual commitment plan's interval is one year. *
Note: *When billingMethod
value is OFFLINE
, the subscription property
object plan.commitmentInterval
is omitted in all API responses.
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.
Constructor Details
#initialize(**args) ⇒ CommitmentInterval
Returns a new instance of CommitmentInterval.
623 624 625 |
# File 'lib/google/apis/reseller_v1/classes.rb', line 623 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
615 616 617 |
# File 'lib/google/apis/reseller_v1/classes.rb', line 615 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
621 622 623 |
# File 'lib/google/apis/reseller_v1/classes.rb', line 621 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
628 629 630 631 |
# File 'lib/google/apis/reseller_v1/classes.rb', line 628 def update!(**args) @end_time = args[:end_time] if args.key?(:end_time) @start_time = args[:start_time] if args.key?(:start_time) end |