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

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.



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

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)


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

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)


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

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



592
593
594
595
# File 'generated/google/apis/reseller_v1/classes.rb', line 592

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