Class: DatadogAPIClient::V1::NotebooksResponseDataAttributes
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::NotebooksResponseDataAttributes
- Defined in:
- lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb
Overview
The attributes of a notebook in get all response.
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#cells ⇒ Object
List of cells to display in the notebook.
-
#created ⇒ Object
UTC time stamp for when the notebook was created.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#modified ⇒ Object
UTC time stamp for when the notebook was last modified.
-
#name ⇒ Object
The name of the notebook.
-
#status ⇒ Object
Returns the value of attribute status.
-
#time ⇒ Object
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ NotebooksResponseDataAttributes
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ NotebooksResponseDataAttributes
Initializes the object
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb', line 91 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebooksResponseDataAttributes` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebooksResponseDataAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'author') self. = attributes[:'author'] end if attributes.key?(:'cells') if (value = attributes[:'cells']).is_a?(Array) self.cells = value end end if attributes.key?(:'created') self.created = attributes[:'created'] end if attributes.key?(:'metadata') self. = attributes[:'metadata'] end if attributes.key?(:'modified') self.modified = attributes[:'modified'] end if attributes.key?(:'name') self.name = attributes[:'name'] end if attributes.key?(:'status') self.status = attributes[:'status'] else self.status = 'published' end if attributes.key?(:'time') self.time = attributes[:'time'] end end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
26 27 28 |
# File 'lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb', line 26 def end |
#cells ⇒ Object
List of cells to display in the notebook.
29 30 31 |
# File 'lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb', line 29 def cells @cells end |
#created ⇒ Object
UTC time stamp for when the notebook was created.
32 33 34 |
# File 'lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb', line 32 def created @created end |
#metadata ⇒ Object
Returns the value of attribute metadata.
34 35 36 |
# File 'lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb', line 34 def end |
#modified ⇒ Object
UTC time stamp for when the notebook was last modified.
37 38 39 |
# File 'lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb', line 37 def modified @modified end |
#name ⇒ Object
The name of the notebook.
40 41 42 |
# File 'lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb', line 40 def name @name end |
#status ⇒ Object
Returns the value of attribute status.
42 43 44 |
# File 'lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb', line 42 def status @status end |
#time ⇒ Object
Returns the value of attribute time.
44 45 46 |
# File 'lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb', line 44 def time @time end |