Class: MicrosoftGraph::Models::CopyNotebookModel
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::CopyNotebookModel
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/copy_notebook_model.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#created_by ⇒ Object
Gets the createdBy property value.
-
#created_by=(value) ⇒ Object
Sets the createdBy property value.
-
#created_by_identity ⇒ Object
Gets the createdByIdentity property value.
-
#created_by_identity=(value) ⇒ Object
Sets the createdByIdentity property value.
-
#created_time ⇒ Object
Gets the createdTime property value.
-
#created_time=(value) ⇒ Object
Sets the createdTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#id ⇒ Object
Gets the id property value.
-
#id=(value) ⇒ Object
Sets the id property value.
-
#initialize ⇒ Object
constructor
Instantiates a new CopyNotebookModel and sets the default values.
-
#is_default ⇒ Object
Gets the isDefault property value.
-
#is_default=(value) ⇒ Object
Sets the isDefault property value.
-
#is_shared ⇒ Object
Gets the isShared property value.
-
#is_shared=(value) ⇒ Object
Sets the isShared property value.
-
#last_modified_by ⇒ Object
Gets the lastModifiedBy property value.
-
#last_modified_by=(value) ⇒ Object
Sets the lastModifiedBy property value.
-
#last_modified_by_identity ⇒ Object
Gets the lastModifiedByIdentity property value.
-
#last_modified_by_identity=(value) ⇒ Object
Sets the lastModifiedByIdentity property value.
-
#last_modified_time ⇒ Object
Gets the lastModifiedTime property value.
-
#last_modified_time=(value) ⇒ Object
Sets the lastModifiedTime property value.
-
#links ⇒ Object
Gets the links property value.
-
#links=(value) ⇒ Object
Sets the links property value.
-
#name ⇒ Object
Gets the name property value.
-
#name=(value) ⇒ Object
Sets the name property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#section_groups_url ⇒ Object
Gets the sectionGroupsUrl property value.
-
#section_groups_url=(value) ⇒ Object
Sets the sectionGroupsUrl property value.
-
#sections_url ⇒ Object
Gets the sectionsUrl property value.
-
#sections_url=(value) ⇒ Object
Sets the sectionsUrl property value.
-
#self_escaped ⇒ Object
Gets the self property value.
-
#self_escaped=(value) ⇒ Object
Sets the self property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#user_role ⇒ Object
Gets the userRole property value.
-
#user_role=(value) ⇒ Object
Sets the userRole property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new CopyNotebookModel and sets the default values.
80 81 82 |
# File 'lib/models/copy_notebook_model.rb', line 80 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
133 134 135 136 |
# File 'lib/models/copy_notebook_model.rb', line 133 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return CopyNotebookModel.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
65 66 67 |
# File 'lib/models/copy_notebook_model.rb', line 65 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
73 74 75 |
# File 'lib/models/copy_notebook_model.rb', line 73 def additional_data=(value) @additional_data = value end |
#created_by ⇒ Object
Gets the createdBy property value. The createdBy property
87 88 89 |
# File 'lib/models/copy_notebook_model.rb', line 87 def created_by return @created_by end |
#created_by=(value) ⇒ Object
Sets the createdBy property value. The createdBy property
95 96 97 |
# File 'lib/models/copy_notebook_model.rb', line 95 def created_by=(value) @created_by = value end |
#created_by_identity ⇒ Object
Gets the createdByIdentity property value. The createdByIdentity property
102 103 104 |
# File 'lib/models/copy_notebook_model.rb', line 102 def created_by_identity return @created_by_identity end |
#created_by_identity=(value) ⇒ Object
Sets the createdByIdentity property value. The createdByIdentity property
110 111 112 |
# File 'lib/models/copy_notebook_model.rb', line 110 def created_by_identity=(value) @created_by_identity = value end |
#created_time ⇒ Object
Gets the createdTime property value. The createdTime property
117 118 119 |
# File 'lib/models/copy_notebook_model.rb', line 117 def created_time return @created_time end |
#created_time=(value) ⇒ Object
Sets the createdTime property value. The createdTime property
125 126 127 |
# File 'lib/models/copy_notebook_model.rb', line 125 def created_time=(value) @created_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 |
# File 'lib/models/copy_notebook_model.rb', line 141 def get_field_deserializers() return { "createdBy" => lambda {|n| @created_by = n.get_string_value() }, "createdByIdentity" => lambda {|n| @created_by_identity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) }, "createdTime" => lambda {|n| @created_time = n.get_date_time_value() }, "id" => lambda {|n| @id = n.get_string_value() }, "isDefault" => lambda {|n| @is_default = n.get_boolean_value() }, "isShared" => lambda {|n| @is_shared = n.get_boolean_value() }, "lastModifiedBy" => lambda {|n| @last_modified_by = n.get_string_value() }, "lastModifiedByIdentity" => lambda {|n| @last_modified_by_identity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) }, "lastModifiedTime" => lambda {|n| @last_modified_time = n.get_date_time_value() }, "links" => lambda {|n| @links = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::NotebookLinks.create_from_discriminator_value(pn) }) }, "name" => lambda {|n| @name = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "sectionGroupsUrl" => lambda {|n| @section_groups_url = n.get_string_value() }, "sectionsUrl" => lambda {|n| @sections_url = n.get_string_value() }, "self" => lambda {|n| @self_escaped = n.get_string_value() }, "userRole" => lambda {|n| @user_role = n.get_enum_value(MicrosoftGraph::Models::OnenoteUserRole) }, } end |
#id ⇒ Object
Gets the id property value. The id property
165 166 167 |
# File 'lib/models/copy_notebook_model.rb', line 165 def id return @id end |
#id=(value) ⇒ Object
Sets the id property value. The id property
173 174 175 |
# File 'lib/models/copy_notebook_model.rb', line 173 def id=(value) @id = value end |
#is_default ⇒ Object
Gets the isDefault property value. The isDefault property
180 181 182 |
# File 'lib/models/copy_notebook_model.rb', line 180 def is_default return @is_default end |
#is_default=(value) ⇒ Object
Sets the isDefault property value. The isDefault property
188 189 190 |
# File 'lib/models/copy_notebook_model.rb', line 188 def is_default=(value) @is_default = value end |
#is_shared ⇒ Object
Gets the isShared property value. The isShared property
195 196 197 |
# File 'lib/models/copy_notebook_model.rb', line 195 def is_shared return @is_shared end |
#is_shared=(value) ⇒ Object
Sets the isShared property value. The isShared property
203 204 205 |
# File 'lib/models/copy_notebook_model.rb', line 203 def is_shared=(value) @is_shared = value end |
#last_modified_by ⇒ Object
Gets the lastModifiedBy property value. The lastModifiedBy property
210 211 212 |
# File 'lib/models/copy_notebook_model.rb', line 210 def last_modified_by return @last_modified_by end |
#last_modified_by=(value) ⇒ Object
Sets the lastModifiedBy property value. The lastModifiedBy property
218 219 220 |
# File 'lib/models/copy_notebook_model.rb', line 218 def last_modified_by=(value) @last_modified_by = value end |
#last_modified_by_identity ⇒ Object
Gets the lastModifiedByIdentity property value. The lastModifiedByIdentity property
225 226 227 |
# File 'lib/models/copy_notebook_model.rb', line 225 def last_modified_by_identity return @last_modified_by_identity end |
#last_modified_by_identity=(value) ⇒ Object
Sets the lastModifiedByIdentity property value. The lastModifiedByIdentity property
233 234 235 |
# File 'lib/models/copy_notebook_model.rb', line 233 def last_modified_by_identity=(value) @last_modified_by_identity = value end |
#last_modified_time ⇒ Object
Gets the lastModifiedTime property value. The lastModifiedTime property
240 241 242 |
# File 'lib/models/copy_notebook_model.rb', line 240 def last_modified_time return @last_modified_time end |
#last_modified_time=(value) ⇒ Object
Sets the lastModifiedTime property value. The lastModifiedTime property
248 249 250 |
# File 'lib/models/copy_notebook_model.rb', line 248 def last_modified_time=(value) @last_modified_time = value end |
#links ⇒ Object
Gets the links property value. The links property
255 256 257 |
# File 'lib/models/copy_notebook_model.rb', line 255 def links return @links end |
#links=(value) ⇒ Object
Sets the links property value. The links property
263 264 265 |
# File 'lib/models/copy_notebook_model.rb', line 263 def links=(value) @links = value end |
#name ⇒ Object
Gets the name property value. The name property
270 271 272 |
# File 'lib/models/copy_notebook_model.rb', line 270 def name return @name end |
#name=(value) ⇒ Object
Sets the name property value. The name property
278 279 280 |
# File 'lib/models/copy_notebook_model.rb', line 278 def name=(value) @name = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
285 286 287 |
# File 'lib/models/copy_notebook_model.rb', line 285 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
293 294 295 |
# File 'lib/models/copy_notebook_model.rb', line 293 def odata_type=(value) @odata_type = value end |
#section_groups_url ⇒ Object
Gets the sectionGroupsUrl property value. The sectionGroupsUrl property
300 301 302 |
# File 'lib/models/copy_notebook_model.rb', line 300 def section_groups_url return @section_groups_url end |
#section_groups_url=(value) ⇒ Object
Sets the sectionGroupsUrl property value. The sectionGroupsUrl property
308 309 310 |
# File 'lib/models/copy_notebook_model.rb', line 308 def section_groups_url=(value) @section_groups_url = value end |
#sections_url ⇒ Object
Gets the sectionsUrl property value. The sectionsUrl property
315 316 317 |
# File 'lib/models/copy_notebook_model.rb', line 315 def sections_url return @sections_url end |
#sections_url=(value) ⇒ Object
Sets the sectionsUrl property value. The sectionsUrl property
323 324 325 |
# File 'lib/models/copy_notebook_model.rb', line 323 def sections_url=(value) @sections_url = value end |
#self_escaped ⇒ Object
Gets the self property value. The self property
330 331 332 |
# File 'lib/models/copy_notebook_model.rb', line 330 def self_escaped return @self_escaped end |
#self_escaped=(value) ⇒ Object
Sets the self property value. The self property
338 339 340 |
# File 'lib/models/copy_notebook_model.rb', line 338 def self_escaped=(value) @self_escaped = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 |
# File 'lib/models/copy_notebook_model.rb', line 346 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("createdBy", @created_by) writer.write_object_value("createdByIdentity", @created_by_identity) writer.write_date_time_value("createdTime", @created_time) writer.write_string_value("id", @id) writer.write_boolean_value("isDefault", @is_default) writer.write_boolean_value("isShared", @is_shared) writer.write_string_value("lastModifiedBy", @last_modified_by) writer.write_object_value("lastModifiedByIdentity", @last_modified_by_identity) writer.write_date_time_value("lastModifiedTime", @last_modified_time) writer.write_object_value("links", @links) writer.write_string_value("name", @name) writer.write_string_value("@odata.type", @odata_type) writer.write_string_value("sectionGroupsUrl", @section_groups_url) writer.write_string_value("sectionsUrl", @sections_url) writer.write_string_value("self", @self_escaped) writer.write_enum_value("userRole", @user_role) writer.write_additional_data(@additional_data) end |
#user_role ⇒ Object
Gets the userRole property value. The userRole property
370 371 372 |
# File 'lib/models/copy_notebook_model.rb', line 370 def user_role return @user_role end |
#user_role=(value) ⇒ Object
Sets the userRole property value. The userRole property
378 379 380 |
# File 'lib/models/copy_notebook_model.rb', line 378 def user_role=(value) @user_role = value end |