Class: Google::Apis::MonitoringV1::TextStyle

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TextStyle

Returns a new instance of TextStyle.



1707
1708
1709
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1707

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

Instance Attribute Details

#background_colorString

The background color as a hex string. "#RRGGBB" or "#RGB" Corresponds to the JSON property backgroundColor

Returns:

  • (String)


1679
1680
1681
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1679

def background_color
  @background_color
end

#font_sizeString

Font sizes for both the title and content. The title will still be larger relative to the content. Corresponds to the JSON property fontSize

Returns:

  • (String)


1685
1686
1687
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1685

def font_size
  @font_size
end

#horizontal_alignmentString

The horizontal alignment of both the title and content Corresponds to the JSON property horizontalAlignment

Returns:

  • (String)


1690
1691
1692
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1690

def horizontal_alignment
  @horizontal_alignment
end

#paddingString

The amount of padding around the widget Corresponds to the JSON property padding

Returns:

  • (String)


1695
1696
1697
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1695

def padding
  @padding
end

#text_colorString

The text color as a hex string. "#RRGGBB" or "#RGB" Corresponds to the JSON property textColor

Returns:

  • (String)


1700
1701
1702
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1700

def text_color
  @text_color
end

#vertical_alignmentString

The vertical alignment of both the title and content Corresponds to the JSON property verticalAlignment

Returns:

  • (String)


1705
1706
1707
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1705

def vertical_alignment
  @vertical_alignment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1712
1713
1714
1715
1716
1717
1718
1719
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1712

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)
  @text_color = args[:text_color] if args.key?(:text_color)
  @vertical_alignment = args[:vertical_alignment] if args.key?(:vertical_alignment)
end