Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/paymentsresellersubscription_v1/classes.rb,
lib/google/apis/paymentsresellersubscription_v1/representations.rb,
lib/google/apis/paymentsresellersubscription_v1/representations.rb

Overview

A description of what time period or moment in time the product or service is being delivered over.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod

Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod.



790
791
792
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 790

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

Instance Attribute Details

#end_timeString

Optional. The end time of the service period. Time is exclusive. Corresponds to the JSON property endTime

Returns:

  • (String)


783
784
785
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 783

def end_time
  @end_time
end

#start_timeString

Required. The start time of the service period. Time is inclusive. Corresponds to the JSON property startTime

Returns:

  • (String)


788
789
790
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 788

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



795
796
797
798
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 795

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