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.
Constructor Details
#initialize(**args) ⇒ Documentation
Returns a new instance of Documentation.
1010 1011 1012 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1010 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
1001 1002 1003 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1001 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
1008 1009 1010 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1008 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1015 1016 1017 1018 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1015 def update!(**args) @content = args[:content] if args.key?(:content) @mime_type = args[:mime_type] if args.key?(:mime_type) end |