Class: Google::Apis::MonitoringV3::Documentation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/google/apis/monitoring_v3/representations.rb

Overview

A content string and a MIME type that describes the content string's format.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Documentation

Returns a new instance of Documentation.



1156
1157
1158
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1156

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

Instance Attribute Details

#contentString

The body of the documentation, interpreted according to mime_type. The content may not exceed 8,192 Unicode characters and may not exceed more than 10,240 bytes when encoded in UTF-8 format, whichever is smaller. This text can be templatized by using variables (https://cloud.google.com/monitoring/alerts/doc- variables). Corresponds to the JSON property content

Returns:

  • (String)


1147
1148
1149
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1147

def content
  @content
end

#mime_typeString

The format of the content field. Presently, only the value "text/markdown" is supported. See Markdown (https://en.wikipedia.org/wiki/Markdown) for more information. Corresponds to the JSON property mimeType

Returns:

  • (String)


1154
1155
1156
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1154

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1161
1162
1163
1164
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1161

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