Class: Google::Apis::MonitoringV3::Documentation
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::Documentation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/monitoring_v3/classes.rb,
generated/google/apis/monitoring_v3/representations.rb,
generated/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
-
#content ⇒ String
The text of the documentation, interpreted according to mime_type.
-
#mime_type ⇒ String
The format of the content field.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Documentation
constructor
A new instance of Documentation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Documentation
Returns a new instance of Documentation
774 775 776 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 774 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ String
The text 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.
Corresponds to the JSON property content
765 766 767 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 765 def content @content end |
#mime_type ⇒ String
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
772 773 774 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 772 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
779 780 781 782 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 779 def update!(**args) @content = args[:content] if args.key?(:content) @mime_type = args[:mime_type] if args.key?(:mime_type) end |