Class: Google::Apis::MonitoringV1::GridLayout
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::GridLayout
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/monitoring_v1/classes.rb,
generated/google/apis/monitoring_v1/representations.rb,
generated/google/apis/monitoring_v1/representations.rb
Overview
A basic layout divides the available space into vertical columns of equal width and arranges a list of widgets using a row-first strategy.
Instance Attribute Summary collapse
-
#columns ⇒ Fixnum
The number of columns into which the view's width is divided.
-
#widgets ⇒ Array<Google::Apis::MonitoringV1::Widget>
The informational elements that are arranged into the columns row-first.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GridLayout
constructor
A new instance of GridLayout.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GridLayout
Returns a new instance of GridLayout.
489 490 491 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 489 def initialize(**args) update!(**args) end |
Instance Attribute Details
#columns ⇒ Fixnum
The number of columns into which the view's width is divided. If omitted or
set to zero, a system default will be used while rendering.
Corresponds to the JSON property columns
482 483 484 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 482 def columns @columns end |
#widgets ⇒ Array<Google::Apis::MonitoringV1::Widget>
The informational elements that are arranged into the columns row-first.
Corresponds to the JSON property widgets
487 488 489 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 487 def @widgets end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
494 495 496 497 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 494 def update!(**args) @columns = args[:columns] if args.key?(:columns) @widgets = args[:widgets] if args.key?(:widgets) end |