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.



2054
2055
2056
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2054

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)


2021
2022
2023
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2021

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)


2027
2028
2029
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2027

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)


2032
2033
2034
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2032

def horizontal_alignment
  @horizontal_alignment
end

#paddingString

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

Returns:

  • (String)


2037
2038
2039
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2037

def padding
  @padding
end

#pointer_locationString

The pointer location for this widget (also sometimes called a "tail") Corresponds to the JSON property pointerLocation

Returns:

  • (String)


2042
2043
2044
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2042

def pointer_location
  @pointer_location
end

#text_colorString

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

Returns:

  • (String)


2047
2048
2049
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2047

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)


2052
2053
2054
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2052

def vertical_alignment
  @vertical_alignment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2059
2060
2061
2062
2063
2064
2065
2066
2067
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2059

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