Class: MicrosoftGraph::Models::DocumentSetVersion

Inherits:
ListItemVersion show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/document_set_version.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ListItemVersion

#fields, #fields=

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

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a document_set_version

Raises:

  • (StandardError)


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

#commentObject

Gets the comment property value. Comment about the captured version.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the comment property.

Returns:

  • a void



37
38
39
# File 'lib/models/document_set_version.rb', line 37

def comment=(value)
    @comment = value
end

#created_byObject

Gets the createdBy property value. User who captured the version.

Returns:

  • a identity_set



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.

Parameters:

  • value

    Value to set for the createdBy property.

Returns:

  • a void



60
61
62
# File 'lib/models/document_set_version.rb', line 60

def created_by=(value)
    @created_by = value
end

#created_date_timeObject

Gets the createdDateTime property value. Date and time when this version was created.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



75
76
77
# File 'lib/models/document_set_version.rb', line 75

def created_date_time=(value)
    @created_date_time = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#itemsObject

Gets the items property value. Items within the document set that are captured as part of this version.

Returns:

  • a document_set_version_item



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.

Parameters:

  • value

    Value to set for the items property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_versionObject

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.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the shouldCaptureMinorVersion property.

Returns:

  • a void



141
142
143
# File 'lib/models/document_set_version.rb', line 141

def should_capture_minor_version=(value)
    @should_capture_minor_version = value
end