Class: Google::Apis::ResellerV1::Subscription::Plan::CommitmentInterval

Inherits:
Object
  • Object
show all
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. * Note: *When billingMethod value is OFFLINE, the subscription property object plan.commitmentInterval is omitted in all API responses.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CommitmentInterval

Returns a new instance of CommitmentInterval.



579
580
581
# File 'generated/google/apis/reseller_v1/classes.rb', line 579

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

Instance Attribute Details

#end_timeFixnum

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

Returns:

  • (Fixnum)


571
572
573
# File 'generated/google/apis/reseller_v1/classes.rb', line 571

def end_time
  @end_time
end

#start_timeFixnum

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

Returns:

  • (Fixnum)


577
578
579
# File 'generated/google/apis/reseller_v1/classes.rb', line 577

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



584
585
586
587
# File 'generated/google/apis/reseller_v1/classes.rb', line 584

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