Removal of odataerrors withing betasdk.
Files are present in main package.
This commit is contained in:
parent
775f5ce4e3
commit
3e4fae6a56
@ -1,123 +0,0 @@
|
||||
package odataerrors
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// ErrorDetails
|
||||
type ErrorDetails struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// The code property
|
||||
code *string
|
||||
// The message property
|
||||
message *string
|
||||
// The target property
|
||||
target *string
|
||||
}
|
||||
// NewErrorDetails instantiates a new ErrorDetails and sets the default values.
|
||||
func NewErrorDetails()(*ErrorDetails) {
|
||||
m := &ErrorDetails{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateErrorDetailsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateErrorDetailsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewErrorDetails(), nil
|
||||
}
|
||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *ErrorDetails) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetCode gets the code property value. The code property
|
||||
func (m *ErrorDetails) GetCode()(*string) {
|
||||
return m.code
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *ErrorDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["code"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCode(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetMessage(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["target"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetTarget(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetMessage gets the message property value. The message property
|
||||
func (m *ErrorDetails) GetMessage()(*string) {
|
||||
return m.message
|
||||
}
|
||||
// GetTarget gets the target property value. The target property
|
||||
func (m *ErrorDetails) GetTarget()(*string) {
|
||||
return m.target
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *ErrorDetails) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteStringValue("code", m.GetCode())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("message", m.GetMessage())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("target", m.GetTarget())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *ErrorDetails) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetCode sets the code property value. The code property
|
||||
func (m *ErrorDetails) SetCode(value *string)() {
|
||||
m.code = value
|
||||
}
|
||||
// SetMessage sets the message property value. The message property
|
||||
func (m *ErrorDetails) SetMessage(value *string)() {
|
||||
m.message = value
|
||||
}
|
||||
// SetTarget sets the target property value. The target property
|
||||
func (m *ErrorDetails) SetTarget(value *string)() {
|
||||
m.target = value
|
||||
}
|
||||
@ -1,17 +0,0 @@
|
||||
package odataerrors
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// ErrorDetailsable
|
||||
type ErrorDetailsable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetCode()(*string)
|
||||
GetMessage()(*string)
|
||||
GetTarget()(*string)
|
||||
SetCode(value *string)()
|
||||
SetMessage(value *string)()
|
||||
SetTarget(value *string)()
|
||||
}
|
||||
@ -1,150 +0,0 @@
|
||||
package odataerrors
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// InnerError
|
||||
type InnerError struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// Client request Id as sent by the client application.
|
||||
clientRequestId *string
|
||||
// Date when the error occured.
|
||||
date *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
// Request Id as tracked internally by the service
|
||||
requestId *string
|
||||
}
|
||||
// NewInnerError instantiates a new InnerError and sets the default values.
|
||||
func NewInnerError()(*InnerError) {
|
||||
m := &InnerError{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateInnerErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateInnerErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewInnerError(), nil
|
||||
}
|
||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *InnerError) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetClientRequestId gets the client-request-id property value. Client request Id as sent by the client application.
|
||||
func (m *InnerError) GetClientRequestId()(*string) {
|
||||
return m.clientRequestId
|
||||
}
|
||||
// GetDate gets the date property value. Date when the error occured.
|
||||
func (m *InnerError) GetDate()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.date
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *InnerError) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["client-request-id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetClientRequestId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["date"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDate(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOdataType(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["request-id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRequestId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *InnerError) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// GetRequestId gets the request-id property value. Request Id as tracked internally by the service
|
||||
func (m *InnerError) GetRequestId()(*string) {
|
||||
return m.requestId
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *InnerError) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteStringValue("client-request-id", m.GetClientRequestId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteTimeValue("date", m.GetDate())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("request-id", m.GetRequestId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *InnerError) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetClientRequestId sets the client-request-id property value. Client request Id as sent by the client application.
|
||||
func (m *InnerError) SetClientRequestId(value *string)() {
|
||||
m.clientRequestId = value
|
||||
}
|
||||
// SetDate sets the date property value. Date when the error occured.
|
||||
func (m *InnerError) SetDate(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.date = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *InnerError) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
// SetRequestId sets the request-id property value. Request Id as tracked internally by the service
|
||||
func (m *InnerError) SetRequestId(value *string)() {
|
||||
m.requestId = value
|
||||
}
|
||||
@ -1,20 +0,0 @@
|
||||
package odataerrors
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// InnerErrorable
|
||||
type InnerErrorable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetClientRequestId()(*string)
|
||||
GetDate()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetOdataType()(*string)
|
||||
GetRequestId()(*string)
|
||||
SetClientRequestId(value *string)()
|
||||
SetDate(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetOdataType(value *string)()
|
||||
SetRequestId(value *string)()
|
||||
}
|
||||
@ -1,183 +0,0 @@
|
||||
package odataerrors
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// MainError
|
||||
type MainError struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// The code property
|
||||
code *string
|
||||
// The details property
|
||||
details []ErrorDetailsable
|
||||
// The innererror property
|
||||
innererror InnerErrorable
|
||||
// The message property
|
||||
message *string
|
||||
// The target property
|
||||
target *string
|
||||
}
|
||||
// NewMainError instantiates a new MainError and sets the default values.
|
||||
func NewMainError()(*MainError) {
|
||||
m := &MainError{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateMainErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateMainErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewMainError(), nil
|
||||
}
|
||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *MainError) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetCode gets the code property value. The code property
|
||||
func (m *MainError) GetCode()(*string) {
|
||||
return m.code
|
||||
}
|
||||
// GetDetails gets the details property value. The details property
|
||||
func (m *MainError) GetDetails()([]ErrorDetailsable) {
|
||||
return m.details
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *MainError) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["code"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCode(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["details"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateErrorDetailsFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]ErrorDetailsable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(ErrorDetailsable)
|
||||
}
|
||||
m.SetDetails(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["innererror"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateInnerErrorFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetInnererror(val.(InnerErrorable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetMessage(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["target"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetTarget(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetInnererror gets the innererror property value. The innererror property
|
||||
func (m *MainError) GetInnererror()(InnerErrorable) {
|
||||
return m.innererror
|
||||
}
|
||||
// GetMessage gets the message property value. The message property
|
||||
func (m *MainError) GetMessage()(*string) {
|
||||
return m.message
|
||||
}
|
||||
// GetTarget gets the target property value. The target property
|
||||
func (m *MainError) GetTarget()(*string) {
|
||||
return m.target
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *MainError) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteStringValue("code", m.GetCode())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetDetails() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetDetails()))
|
||||
for i, v := range m.GetDetails() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err := writer.WriteCollectionOfObjectValues("details", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteObjectValue("innererror", m.GetInnererror())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("message", m.GetMessage())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("target", m.GetTarget())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *MainError) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetCode sets the code property value. The code property
|
||||
func (m *MainError) SetCode(value *string)() {
|
||||
m.code = value
|
||||
}
|
||||
// SetDetails sets the details property value. The details property
|
||||
func (m *MainError) SetDetails(value []ErrorDetailsable)() {
|
||||
m.details = value
|
||||
}
|
||||
// SetInnererror sets the innererror property value. The innererror property
|
||||
func (m *MainError) SetInnererror(value InnerErrorable)() {
|
||||
m.innererror = value
|
||||
}
|
||||
// SetMessage sets the message property value. The message property
|
||||
func (m *MainError) SetMessage(value *string)() {
|
||||
m.message = value
|
||||
}
|
||||
// SetTarget sets the target property value. The target property
|
||||
func (m *MainError) SetTarget(value *string)() {
|
||||
m.target = value
|
||||
}
|
||||
@ -1,21 +0,0 @@
|
||||
package odataerrors
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// MainErrorable
|
||||
type MainErrorable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetCode()(*string)
|
||||
GetDetails()([]ErrorDetailsable)
|
||||
GetInnererror()(InnerErrorable)
|
||||
GetMessage()(*string)
|
||||
GetTarget()(*string)
|
||||
SetCode(value *string)()
|
||||
SetDetails(value []ErrorDetailsable)()
|
||||
SetInnererror(value InnerErrorable)()
|
||||
SetMessage(value *string)()
|
||||
SetTarget(value *string)()
|
||||
}
|
||||
@ -1,74 +0,0 @@
|
||||
package odataerrors
|
||||
|
||||
import (
|
||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// ODataError
|
||||
type ODataError struct {
|
||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// The error property
|
||||
error MainErrorable
|
||||
}
|
||||
// NewODataError instantiates a new ODataError and sets the default values.
|
||||
func NewODataError()(*ODataError) {
|
||||
m := &ODataError{
|
||||
ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(),
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateODataErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateODataErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewODataError(), nil
|
||||
}
|
||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *ODataError) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetError gets the error property value. The error property
|
||||
func (m *ODataError) GetError()(MainErrorable) {
|
||||
return m.error
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *ODataError) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["error"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateMainErrorFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetError(val.(MainErrorable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *ODataError) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteObjectValue("error", m.GetError())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *ODataError) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetError sets the error property value. The error property
|
||||
func (m *ODataError) SetError(value MainErrorable)() {
|
||||
m.error = value
|
||||
}
|
||||
@ -1,13 +0,0 @@
|
||||
package odataerrors
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// ODataErrorable
|
||||
type ODataErrorable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetError()(MainErrorable)
|
||||
SetError(value MainErrorable)()
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user