Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaTrainingjobDefinitionAutoMlForecastingInputsGranularity

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

A duration of time expressed in time granularity units.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaTrainingjobDefinitionAutoMlForecastingInputsGranularity

Returns a new instance of GoogleCloudAiplatformV1beta1SchemaTrainingjobDefinitionAutoMlForecastingInputsGranularity.



28239
28240
28241
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 28239

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

Instance Attribute Details

#quantityFixnum

The number of granularity_units between data points in the training data. If granularity_unit is minute, can be 1, 5, 10, 15, or 30. For all other values of granularity_unit, must be 1. Corresponds to the JSON property quantity

Returns:

  • (Fixnum)


28231
28232
28233
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 28231

def quantity
  @quantity
end

#unitString

The time granularity unit of this time period. The supported units are: * " minute" * "hour" * "day" * "week" * "month" * "year" Corresponds to the JSON property unit

Returns:

  • (String)


28237
28238
28239
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 28237

def unit
  @unit
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



28244
28245
28246
28247
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 28244

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