Class: MicrosoftGraph::Models::WorkbookOperation

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/workbook_operation.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new workbookOperation and sets the default values.



22
23
24
# File 'lib/models/workbook_operation.rb', line 22

def initialize()
    super
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 workbook_operation

Raises:

  • (StandardError)


30
31
32
33
# File 'lib/models/workbook_operation.rb', line 30

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return WorkbookOperation.new
end

Instance Method Details

#errorObject

Gets the error property value. The error returned by the operation.

Returns:

  • a workbook_operation_error



38
39
40
# File 'lib/models/workbook_operation.rb', line 38

def error
    return @error
end

#error=(value) ⇒ Object

Sets the error property value. The error returned by the operation.

Parameters:

  • value

    Value to set for the error property.

Returns:

  • a void



46
47
48
# File 'lib/models/workbook_operation.rb', line 46

def error=(value)
    @error = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



53
54
55
56
57
58
59
# File 'lib/models/workbook_operation.rb', line 53

def get_field_deserializers()
    return super.merge({
        "error" => lambda {|n| @error = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookOperationError.create_from_discriminator_value(pn) }) },
        "resourceLocation" => lambda {|n| @resource_location = n.get_string_value() },
        "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::WorkbookOperationStatus) },
    })
end

#resource_locationObject

Gets the resourceLocation property value. The resource URI for the result.

Returns:

  • a string



64
65
66
# File 'lib/models/workbook_operation.rb', line 64

def resource_location
    return @resource_location
end

#resource_location=(value) ⇒ Object

Sets the resourceLocation property value. The resource URI for the result.

Parameters:

  • value

    Value to set for the resourceLocation property.

Returns:

  • a void



72
73
74
# File 'lib/models/workbook_operation.rb', line 72

def resource_location=(value)
    @resource_location = 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)


80
81
82
83
84
85
86
# File 'lib/models/workbook_operation.rb', line 80

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("error", @error)
    writer.write_string_value("resourceLocation", @resource_location)
    writer.write_enum_value("status", @status)
end

#statusObject

Gets the status property value. The status property

Returns:

  • a workbook_operation_status



91
92
93
# File 'lib/models/workbook_operation.rb', line 91

def status
    return @status
end

#status=(value) ⇒ Object

Sets the status property value. The status property

Parameters:

  • value

    Value to set for the status property.

Returns:

  • a void



99
100
101
# File 'lib/models/workbook_operation.rb', line 99

def status=(value)
    @status = value
end