Class: Google::Apis::DataflowV1b3::Linear

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

Overview

Linear buckets with the following boundaries for indices in 0 to n-1. - i in [ 0, n-1]: [start + (i)*width, start + (i+1)*width)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Linear

Returns a new instance of Linear.



3079
3080
3081
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3079

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

Instance Attribute Details

#number_of_bucketsFixnum

Must be greater than 0. Corresponds to the JSON property numberOfBuckets

Returns:

  • (Fixnum)


3067
3068
3069
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3067

def number_of_buckets
  @number_of_buckets
end

#startFloat

Lower bound of the first bucket. Corresponds to the JSON property start

Returns:

  • (Float)


3072
3073
3074
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3072

def start
  @start
end

#widthFloat

Distance between bucket boundaries. Must be greater than 0. Corresponds to the JSON property width

Returns:

  • (Float)


3077
3078
3079
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3077

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3084
3085
3086
3087
3088
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3084

def update!(**args)
  @number_of_buckets = args[:number_of_buckets] if args.key?(:number_of_buckets)
  @start = args[:start] if args.key?(:start)
  @width = args[:width] if args.key?(:width)
end