Class: DatadogAPIClient::V1::NotebookResponseDataAttributes

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb

Overview

The attributes of a notebook.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ NotebookResponseDataAttributes

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    attributes Model attributes in the form of hash



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/notebook_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::NotebookResponseDataAttributes` 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::NotebookResponseDataAttributes`. 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.author = 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

#authorObject

Returns the value of attribute author.



26
27
28
# File 'lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb', line 26

def author
  @author
end

#cellsObject

List of cells to display in the notebook.



29
30
31
# File 'lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb', line 29

def cells
  @cells
end

#createdObject

UTC time stamp for when the notebook was created.



32
33
34
# File 'lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb', line 32

def created
  @created
end

#metadataObject

Returns the value of attribute metadata.



34
35
36
# File 'lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb', line 34

def 
  
end

#modifiedObject

UTC time stamp for when the notebook was last modified.



37
38
39
# File 'lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb', line 37

def modified
  @modified
end

#nameObject

The name of the notebook.



40
41
42
# File 'lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb', line 40

def name
  @name
end

#statusObject

Returns the value of attribute status.



42
43
44
# File 'lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb', line 42

def status
  @status
end

#timeObject

Returns the value of attribute time.



44
45
46
# File 'lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb', line 44

def time
  @time
end