Class: Google::Apis::CloudbillingV1beta::SuggestedChart

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

Overview

A suggested chart for the data set, used for UI rendering.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SuggestedChart

Returns a new instance of SuggestedChart.



2220
2221
2222
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2220

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

Instance Attribute Details

#chart_titleString

The title of the chart. Corresponds to the JSON property chartTitle

Returns:

  • (String)


2187
2188
2189
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2187

def chart_title
  @chart_title
end

#chart_typeString

The type of the chart. Corresponds to the JSON property chartType

Returns:

  • (String)


2192
2193
2194
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2192

def chart_type
  @chart_type
end

#series_fieldString

The field used for the series (e.g., color-coding). Optional, but recommended for time-series data. Corresponds to the JSON property seriesField

Returns:

  • (String)


2198
2199
2200
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2198

def series_field
  @series_field
end

#x_axis_fieldString

The field used for the x-axis. Corresponds to the JSON property xAxisField

Returns:

  • (String)


2203
2204
2205
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2203

def x_axis_field
  @x_axis_field
end

#x_axis_labelString

The label of the x-axis. Corresponds to the JSON property xAxisLabel

Returns:

  • (String)


2208
2209
2210
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2208

def x_axis_label
  @x_axis_label
end

#y_axis_fieldString

The field used for the y-axis. Corresponds to the JSON property yAxisField

Returns:

  • (String)


2213
2214
2215
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2213

def y_axis_field
  @y_axis_field
end

#y_axis_labelString

The label of the y-axis. Corresponds to the JSON property yAxisLabel

Returns:

  • (String)


2218
2219
2220
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2218

def y_axis_label
  @y_axis_label
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2225
2226
2227
2228
2229
2230
2231
2232
2233
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2225

def update!(**args)
  @chart_title = args[:chart_title] if args.key?(:chart_title)
  @chart_type = args[:chart_type] if args.key?(:chart_type)
  @series_field = args[:series_field] if args.key?(:series_field)
  @x_axis_field = args[:x_axis_field] if args.key?(:x_axis_field)
  @x_axis_label = args[:x_axis_label] if args.key?(:x_axis_label)
  @y_axis_field = args[:y_axis_field] if args.key?(:y_axis_field)
  @y_axis_label = args[:y_axis_label] if args.key?(:y_axis_label)
end