Class: Google::Apis::CloudbillingV1beta::SuggestedChart
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::SuggestedChart
- 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
-
#chart_title ⇒ String
The title of the chart.
-
#chart_type ⇒ String
The type of the chart.
-
#series_field ⇒ String
The field used for the series (e.g., color-coding).
-
#x_axis_field ⇒ String
The field used for the x-axis.
-
#x_axis_label ⇒ String
The label of the x-axis.
-
#y_axis_field ⇒ String
The field used for the y-axis.
-
#y_axis_label ⇒ String
The label of the y-axis.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SuggestedChart
constructor
A new instance of SuggestedChart.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_title ⇒ String
The title of the chart.
Corresponds to the JSON property chartTitle
2187 2188 2189 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2187 def chart_title @chart_title end |
#chart_type ⇒ String
The type of the chart.
Corresponds to the JSON property chartType
2192 2193 2194 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2192 def chart_type @chart_type end |
#series_field ⇒ String
The field used for the series (e.g., color-coding). Optional, but recommended
for time-series data.
Corresponds to the JSON property seriesField
2198 2199 2200 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2198 def series_field @series_field end |
#x_axis_field ⇒ String
The field used for the x-axis.
Corresponds to the JSON property xAxisField
2203 2204 2205 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2203 def x_axis_field @x_axis_field end |
#x_axis_label ⇒ String
The label of the x-axis.
Corresponds to the JSON property xAxisLabel
2208 2209 2210 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2208 def x_axis_label @x_axis_label end |
#y_axis_field ⇒ String
The field used for the y-axis.
Corresponds to the JSON property yAxisField
2213 2214 2215 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2213 def y_axis_field @y_axis_field end |
#y_axis_label ⇒ String
The label of the y-axis.
Corresponds to the JSON property yAxisLabel
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 |