Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StudyTimeConstraint

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

Overview

Time-based Constraint for Study

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1StudyTimeConstraint

Returns a new instance of GoogleCloudAiplatformV1beta1StudyTimeConstraint.



28286
28287
28288
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 28286

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

Instance Attribute Details

#end_timeString

Compares the wallclock time to this time. Must use UTC timezone. Corresponds to the JSON property endTime

Returns:

  • (String)


28279
28280
28281
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 28279

def end_time
  @end_time
end

#max_durationString

Counts the wallclock time passed since the creation of this Study. Corresponds to the JSON property maxDuration

Returns:

  • (String)


28284
28285
28286
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 28284

def max_duration
  @max_duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



28291
28292
28293
28294
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 28291

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