Class: MicrosoftGraph::Models::WorkbookOperation
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/workbook_operation.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
-
#error ⇒ Object
Gets the error property value.
-
#error=(value) ⇒ Object
Sets the error property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new workbookOperation and sets the default values.
-
#resource_location ⇒ Object
Gets the resourceLocation property value.
-
#resource_location=(value) ⇒ Object
Sets the resourceLocation property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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
#error ⇒ Object
Gets the error property value. The error returned by the operation.
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.
46 47 48 |
# File 'lib/models/workbook_operation.rb', line 46 def error=(value) @error = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_location ⇒ Object
Gets the resourceLocation property value. The resource URI for the result.
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.
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
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 |
#status ⇒ Object
Gets the status property value. The status property
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
99 100 101 |
# File 'lib/models/workbook_operation.rb', line 99 def status=(value) @status = value end |