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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_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)


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

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)


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