Class: Google::Apis::PaymentsresellersubscriptionV1::ServicePeriod
- Inherits:
-
Object
- Object
- Google::Apis::PaymentsresellersubscriptionV1::ServicePeriod
- 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
-
#end_time ⇒ String
Optional.
-
#start_time ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServicePeriod
constructor
A new instance of ServicePeriod.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ServicePeriod
Returns a new instance of ServicePeriod.
1123 1124 1125 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1123 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_time ⇒ String
Optional. The end time of the service period. Time is exclusive.
Corresponds to the JSON property endTime
1116 1117 1118 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1116 def end_time @end_time end |
#start_time ⇒ String
Required. The start time of the service period. Time is inclusive.
Corresponds to the JSON property startTime
1121 1122 1123 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1121 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1128 1129 1130 1131 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1128 def update!(**args) @end_time = args[:end_time] if args.key?(:end_time) @start_time = args[:start_time] if args.key?(:start_time) end |