Class: Google::Apis::MonitoringV1::GridLayout
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::GridLayout
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/monitoring_v1/classes.rb,
lib/google/apis/monitoring_v1/representations.rb,
lib/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.
919 920 921 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 919 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
912 913 914 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 912 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
917 918 919 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 917 def @widgets end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
924 925 926 927 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 924 def update!(**args) @columns = args[:columns] if args.key?(:columns) @widgets = args[:widgets] if args.key?(:widgets) end |