Class: Google::Apis::MonitoringV1::Text

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

A widget that displays textual content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Text

Returns a new instance of Text.



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

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

Instance Attribute Details

#contentString

The text content to be displayed. Corresponds to the JSON property content

Returns:

  • (String)


2016
2017
2018
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2016

def content
  @content
end

#formatString

How the text content is formatted. Corresponds to the JSON property format

Returns:

  • (String)


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

def format
  @format
end

#styleGoogle::Apis::MonitoringV1::TextStyle

Properties that determine how the title and content are styled Corresponds to the JSON property style



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

def style
  @style
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2033
2034
2035
2036
2037
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2033

def update!(**args)
  @content = args[:content] if args.key?(:content)
  @format = args[:format] if args.key?(:format)
  @style = args[:style] if args.key?(:style)
end