Class: MicrosoftGraph::Models::ProvisioningErrorInfo
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::ProvisioningErrorInfo
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/provisioning_error_info.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.
-
#additional_details ⇒ Object
Gets the additionalDetails property value.
-
#additional_details=(value) ⇒ Object
Sets the additionalDetails property value.
-
#error_category ⇒ Object
Gets the errorCategory property value.
-
#error_category=(value) ⇒ Object
Sets the errorCategory property value.
-
#error_code ⇒ Object
Gets the errorCode property value.
-
#error_code=(value) ⇒ Object
Sets the errorCode property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new provisioningErrorInfo and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#reason ⇒ Object
Gets the reason property value.
-
#reason=(value) ⇒ Object
Sets the reason property value.
-
#recommended_action ⇒ Object
Gets the recommendedAction property value.
-
#recommended_action=(value) ⇒ Object
Sets the recommendedAction property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
Instantiates a new provisioningErrorInfo and sets the default values.
64 65 66 |
# File 'lib/models/provisioning_error_info.rb', line 64 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
72 73 74 75 |
# File 'lib/models/provisioning_error_info.rb', line 72 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ProvisioningErrorInfo.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.
34 35 36 |
# File 'lib/models/provisioning_error_info.rb', line 34 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.
42 43 44 |
# File 'lib/models/provisioning_error_info.rb', line 42 def additional_data=(value) @additional_data = value end |
#additional_details ⇒ Object
Gets the additionalDetails property value. Additional details in case of error.
49 50 51 |
# File 'lib/models/provisioning_error_info.rb', line 49 def additional_details return @additional_details end |
#additional_details=(value) ⇒ Object
Sets the additionalDetails property value. Additional details in case of error.
57 58 59 |
# File 'lib/models/provisioning_error_info.rb', line 57 def additional_details=(value) @additional_details = value end |
#error_category ⇒ Object
Gets the errorCategory property value. Categorizes the error code. Possible values are failure, nonServiceFailure, success, unknownFutureValue
80 81 82 |
# File 'lib/models/provisioning_error_info.rb', line 80 def error_category return @error_category end |
#error_category=(value) ⇒ Object
Sets the errorCategory property value. Categorizes the error code. Possible values are failure, nonServiceFailure, success, unknownFutureValue
88 89 90 |
# File 'lib/models/provisioning_error_info.rb', line 88 def error_category=(value) @error_category = value end |
#error_code ⇒ Object
Gets the errorCode property value. Unique error code if any occurred. Learn more
95 96 97 |
# File 'lib/models/provisioning_error_info.rb', line 95 def error_code return @error_code end |
#error_code=(value) ⇒ Object
Sets the errorCode property value. Unique error code if any occurred. Learn more
103 104 105 |
# File 'lib/models/provisioning_error_info.rb', line 103 def error_code=(value) @error_code = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
110 111 112 113 114 115 116 117 118 119 |
# File 'lib/models/provisioning_error_info.rb', line 110 def get_field_deserializers() return { "additionalDetails" => lambda {|n| @additional_details = n.get_string_value() }, "errorCategory" => lambda {|n| @error_category = n.get_enum_value(MicrosoftGraph::Models::ProvisioningStatusErrorCategory) }, "errorCode" => lambda {|n| @error_code = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "reason" => lambda {|n| @reason = n.get_string_value() }, "recommendedAction" => lambda {|n| @recommended_action = n.get_string_value() }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
124 125 126 |
# File 'lib/models/provisioning_error_info.rb', line 124 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
132 133 134 |
# File 'lib/models/provisioning_error_info.rb', line 132 def odata_type=(value) @odata_type = value end |
#reason ⇒ Object
Gets the reason property value. Summarizes the status and describes why the status happened.
139 140 141 |
# File 'lib/models/provisioning_error_info.rb', line 139 def reason return @reason end |
#reason=(value) ⇒ Object
Sets the reason property value. Summarizes the status and describes why the status happened.
147 148 149 |
# File 'lib/models/provisioning_error_info.rb', line 147 def reason=(value) @reason = value end |
#recommended_action ⇒ Object
Gets the recommendedAction property value. Provides the resolution for the corresponding error.
154 155 156 |
# File 'lib/models/provisioning_error_info.rb', line 154 def recommended_action return @recommended_action end |
#recommended_action=(value) ⇒ Object
Sets the recommendedAction property value. Provides the resolution for the corresponding error.
162 163 164 |
# File 'lib/models/provisioning_error_info.rb', line 162 def recommended_action=(value) @recommended_action = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
170 171 172 173 174 175 176 177 178 179 |
# File 'lib/models/provisioning_error_info.rb', line 170 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("additionalDetails", @additional_details) writer.write_enum_value("errorCategory", @error_category) writer.write_string_value("errorCode", @error_code) writer.write_string_value("@odata.type", @odata_type) writer.write_string_value("reason", @reason) writer.write_string_value("recommendedAction", @recommended_action) writer.write_additional_data(@additional_data) end |