Class: Google::Apis::MonitoringV1::TextStyle
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::TextStyle
- 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
Properties that determine how the title and content are styled
Instance Attribute Summary collapse
-
#background_color ⇒ String
The background color as a hex string.
-
#font_size ⇒ String
Font sizes for both the title and content.
-
#horizontal_alignment ⇒ String
The horizontal alignment of both the title and content Corresponds to the JSON property
horizontalAlignment. -
#padding ⇒ String
The amount of padding around the widget Corresponds to the JSON property
padding. -
#pointer_location ⇒ String
The pointer location for this widget (also sometimes called a "tail") Corresponds to the JSON property
pointerLocation. -
#text_color ⇒ String
The text color as a hex string.
-
#vertical_alignment ⇒ String
The vertical alignment of both the title and content Corresponds to the JSON property
verticalAlignment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TextStyle
constructor
A new instance of TextStyle.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TextStyle
Returns a new instance of TextStyle.
2375 2376 2377 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2375 def initialize(**args) update!(**args) end |
Instance Attribute Details
#background_color ⇒ String
The background color as a hex string. "#RRGGBB" or "#RGB"
Corresponds to the JSON property backgroundColor
2342 2343 2344 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2342 def background_color @background_color end |
#font_size ⇒ String
Font sizes for both the title and content. The title will still be larger
relative to the content.
Corresponds to the JSON property fontSize
2348 2349 2350 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2348 def font_size @font_size end |
#horizontal_alignment ⇒ String
The horizontal alignment of both the title and content
Corresponds to the JSON property horizontalAlignment
2353 2354 2355 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2353 def horizontal_alignment @horizontal_alignment end |
#padding ⇒ String
The amount of padding around the widget
Corresponds to the JSON property padding
2358 2359 2360 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2358 def padding @padding end |
#pointer_location ⇒ String
The pointer location for this widget (also sometimes called a "tail")
Corresponds to the JSON property pointerLocation
2363 2364 2365 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2363 def pointer_location @pointer_location end |
#text_color ⇒ String
The text color as a hex string. "#RRGGBB" or "#RGB"
Corresponds to the JSON property textColor
2368 2369 2370 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2368 def text_color @text_color end |
#vertical_alignment ⇒ String
The vertical alignment of both the title and content
Corresponds to the JSON property verticalAlignment
2373 2374 2375 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2373 def vertical_alignment @vertical_alignment end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2380 2381 2382 2383 2384 2385 2386 2387 2388 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2380 def update!(**args) @background_color = args[:background_color] if args.key?(:background_color) @font_size = args[:font_size] if args.key?(:font_size) @horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment) @padding = args[:padding] if args.key?(:padding) @pointer_location = args[:pointer_location] if args.key?(:pointer_location) @text_color = args[:text_color] if args.key?(:text_color) @vertical_alignment = args[:vertical_alignment] if args.key?(:vertical_alignment) end |