Class: MicrosoftGraph::Models::DocumentSetVersion
- Inherits:
-
ListItemVersion
- Object
- Entity
- BaseItemVersion
- ListItemVersion
- MicrosoftGraph::Models::DocumentSetVersion
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/document_set_version.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
-
#comment ⇒ Object
Gets the comment property value.
-
#comment=(value) ⇒ Object
Sets the comment property value.
-
#created_by ⇒ Object
Gets the createdBy property value.
-
#created_by=(value) ⇒ Object
Sets the createdBy property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new documentSetVersion and sets the default values.
-
#items ⇒ Object
Gets the items property value.
-
#items=(value) ⇒ Object
Sets the items property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#should_capture_minor_version ⇒ Object
Gets the shouldCaptureMinorVersion property value.
-
#should_capture_minor_version=(value) ⇒ Object
Sets the shouldCaptureMinorVersion property value.
Methods inherited from ListItemVersion
Methods inherited from BaseItemVersion
#last_modified_by, #last_modified_by=, #last_modified_date_time, #last_modified_date_time=, #publication, #publication=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new documentSetVersion and sets the default values.
44 45 46 47 |
# File 'lib/models/document_set_version.rb', line 44 def initialize() super @odata_type = "#microsoft.graph.documentSetVersion" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
83 84 85 86 |
# File 'lib/models/document_set_version.rb', line 83 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return DocumentSetVersion.new end |
Instance Method Details
#comment ⇒ Object
Gets the comment property value. Comment about the captured version.
29 30 31 |
# File 'lib/models/document_set_version.rb', line 29 def comment return @comment end |
#comment=(value) ⇒ Object
Sets the comment property value. Comment about the captured version.
37 38 39 |
# File 'lib/models/document_set_version.rb', line 37 def comment=(value) @comment = value end |
#created_by ⇒ Object
Gets the createdBy property value. User who captured the version.
52 53 54 |
# File 'lib/models/document_set_version.rb', line 52 def created_by return @created_by end |
#created_by=(value) ⇒ Object
Sets the createdBy property value. User who captured the version.
60 61 62 |
# File 'lib/models/document_set_version.rb', line 60 def created_by=(value) @created_by = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. Date and time when this version was created.
67 68 69 |
# File 'lib/models/document_set_version.rb', line 67 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. Date and time when this version was created.
75 76 77 |
# File 'lib/models/document_set_version.rb', line 75 def created_date_time=(value) @created_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
91 92 93 94 95 96 97 98 99 |
# File 'lib/models/document_set_version.rb', line 91 def get_field_deserializers() return super.merge({ "comment" => lambda {|n| @comment = n.get_string_value() }, "createdBy" => lambda {|n| @created_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) }, "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "items" => lambda {|n| @items = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DocumentSetVersionItem.create_from_discriminator_value(pn) }) }, "shouldCaptureMinorVersion" => lambda {|n| @should_capture_minor_version = n.get_boolean_value() }, }) end |
#items ⇒ Object
Gets the items property value. Items within the document set that are captured as part of this version.
104 105 106 |
# File 'lib/models/document_set_version.rb', line 104 def items return @items end |
#items=(value) ⇒ Object
Sets the items property value. Items within the document set that are captured as part of this version.
112 113 114 |
# File 'lib/models/document_set_version.rb', line 112 def items=(value) @items = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
120 121 122 123 124 125 126 127 128 |
# File 'lib/models/document_set_version.rb', line 120 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("comment", @comment) writer.write_object_value("createdBy", @created_by) writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_collection_of_object_values("items", @items) writer.write_boolean_value("shouldCaptureMinorVersion", @should_capture_minor_version) end |
#should_capture_minor_version ⇒ Object
Gets the shouldCaptureMinorVersion property value. If true, minor versions of items are also captured; otherwise, only major versions will be captured. Default value is false.
133 134 135 |
# File 'lib/models/document_set_version.rb', line 133 def should_capture_minor_version return @should_capture_minor_version end |
#should_capture_minor_version=(value) ⇒ Object
Sets the shouldCaptureMinorVersion property value. If true, minor versions of items are also captured; otherwise, only major versions will be captured. Default value is false.
141 142 143 |
# File 'lib/models/document_set_version.rb', line 141 def should_capture_minor_version=(value) @should_capture_minor_version = value end |