|
| 1 | +package models |
| 2 | + |
| 3 | +import ( |
| 4 | + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" |
| 5 | +) |
| 6 | + |
| 7 | +type ApiOverview_domains_actions_inbound struct { |
| 8 | + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. |
| 9 | + additionalData map[string]any |
| 10 | + // The full_domains property |
| 11 | + full_domains []string |
| 12 | + // The wildcard_domains property |
| 13 | + wildcard_domains []string |
| 14 | +} |
| 15 | +// NewApiOverview_domains_actions_inbound instantiates a new ApiOverview_domains_actions_inbound and sets the default values. |
| 16 | +func NewApiOverview_domains_actions_inbound()(*ApiOverview_domains_actions_inbound) { |
| 17 | + m := &ApiOverview_domains_actions_inbound{ |
| 18 | + } |
| 19 | + m.SetAdditionalData(make(map[string]any)) |
| 20 | + return m |
| 21 | +} |
| 22 | +// CreateApiOverview_domains_actions_inboundFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value |
| 23 | +// returns a Parsable when successful |
| 24 | +func CreateApiOverview_domains_actions_inboundFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { |
| 25 | + return NewApiOverview_domains_actions_inbound(), nil |
| 26 | +} |
| 27 | +// 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. |
| 28 | +// returns a map[string]any when successful |
| 29 | +func (m *ApiOverview_domains_actions_inbound) GetAdditionalData()(map[string]any) { |
| 30 | + return m.additionalData |
| 31 | +} |
| 32 | +// GetFieldDeserializers the deserialization information for the current model |
| 33 | +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful |
| 34 | +func (m *ApiOverview_domains_actions_inbound) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { |
| 35 | + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) |
| 36 | + res["full_domains"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { |
| 37 | + val, err := n.GetCollectionOfPrimitiveValues("string") |
| 38 | + if err != nil { |
| 39 | + return err |
| 40 | + } |
| 41 | + if val != nil { |
| 42 | + res := make([]string, len(val)) |
| 43 | + for i, v := range val { |
| 44 | + if v != nil { |
| 45 | + res[i] = *(v.(*string)) |
| 46 | + } |
| 47 | + } |
| 48 | + m.SetFullDomains(res) |
| 49 | + } |
| 50 | + return nil |
| 51 | + } |
| 52 | + res["wildcard_domains"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { |
| 53 | + val, err := n.GetCollectionOfPrimitiveValues("string") |
| 54 | + if err != nil { |
| 55 | + return err |
| 56 | + } |
| 57 | + if val != nil { |
| 58 | + res := make([]string, len(val)) |
| 59 | + for i, v := range val { |
| 60 | + if v != nil { |
| 61 | + res[i] = *(v.(*string)) |
| 62 | + } |
| 63 | + } |
| 64 | + m.SetWildcardDomains(res) |
| 65 | + } |
| 66 | + return nil |
| 67 | + } |
| 68 | + return res |
| 69 | +} |
| 70 | +// GetFullDomains gets the full_domains property value. The full_domains property |
| 71 | +// returns a []string when successful |
| 72 | +func (m *ApiOverview_domains_actions_inbound) GetFullDomains()([]string) { |
| 73 | + return m.full_domains |
| 74 | +} |
| 75 | +// GetWildcardDomains gets the wildcard_domains property value. The wildcard_domains property |
| 76 | +// returns a []string when successful |
| 77 | +func (m *ApiOverview_domains_actions_inbound) GetWildcardDomains()([]string) { |
| 78 | + return m.wildcard_domains |
| 79 | +} |
| 80 | +// Serialize serializes information the current object |
| 81 | +func (m *ApiOverview_domains_actions_inbound) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { |
| 82 | + if m.GetFullDomains() != nil { |
| 83 | + err := writer.WriteCollectionOfStringValues("full_domains", m.GetFullDomains()) |
| 84 | + if err != nil { |
| 85 | + return err |
| 86 | + } |
| 87 | + } |
| 88 | + if m.GetWildcardDomains() != nil { |
| 89 | + err := writer.WriteCollectionOfStringValues("wildcard_domains", m.GetWildcardDomains()) |
| 90 | + if err != nil { |
| 91 | + return err |
| 92 | + } |
| 93 | + } |
| 94 | + { |
| 95 | + err := writer.WriteAdditionalData(m.GetAdditionalData()) |
| 96 | + if err != nil { |
| 97 | + return err |
| 98 | + } |
| 99 | + } |
| 100 | + return nil |
| 101 | +} |
| 102 | +// 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. |
| 103 | +func (m *ApiOverview_domains_actions_inbound) SetAdditionalData(value map[string]any)() { |
| 104 | + m.additionalData = value |
| 105 | +} |
| 106 | +// SetFullDomains sets the full_domains property value. The full_domains property |
| 107 | +func (m *ApiOverview_domains_actions_inbound) SetFullDomains(value []string)() { |
| 108 | + m.full_domains = value |
| 109 | +} |
| 110 | +// SetWildcardDomains sets the wildcard_domains property value. The wildcard_domains property |
| 111 | +func (m *ApiOverview_domains_actions_inbound) SetWildcardDomains(value []string)() { |
| 112 | + m.wildcard_domains = value |
| 113 | +} |
| 114 | +type ApiOverview_domains_actions_inboundable interface { |
| 115 | + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder |
| 116 | + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable |
| 117 | + GetFullDomains()([]string) |
| 118 | + GetWildcardDomains()([]string) |
| 119 | + SetFullDomains(value []string)() |
| 120 | + SetWildcardDomains(value []string)() |
| 121 | +} |
0 commit comments