Run gofmt on beta package (#2340)
## Description This package is mostly generated code, but since it's not formatted and check in it causes subsequent runs of gofmt to format it and add chaff to git diff. Checking in the formatted version removes the chaff. ## Does this PR need a docs update or release note? - [ ] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [x] ⛔ No ## Type of change - [ ] 🌻 Feature - [ ] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Test - [ ] 💻 CI/Deployment - [x] 🧹 Tech Debt/Cleanup
This commit is contained in:
parent
c510af3fda
commit
b5b4576393
@ -1,52 +1,54 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Provides operations to call the remove method.
|
// Provides operations to call the remove method.
|
||||||
type HorizontalSectionLayoutType int
|
type HorizontalSectionLayoutType int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
NONE_HORIZONTALSECTIONLAYOUTTYPE HorizontalSectionLayoutType = iota
|
NONE_HORIZONTALSECTIONLAYOUTTYPE HorizontalSectionLayoutType = iota
|
||||||
ONECOLUMN_HORIZONTALSECTIONLAYOUTTYPE
|
ONECOLUMN_HORIZONTALSECTIONLAYOUTTYPE
|
||||||
TWOCOLUMNS_HORIZONTALSECTIONLAYOUTTYPE
|
TWOCOLUMNS_HORIZONTALSECTIONLAYOUTTYPE
|
||||||
THREECOLUMNS_HORIZONTALSECTIONLAYOUTTYPE
|
THREECOLUMNS_HORIZONTALSECTIONLAYOUTTYPE
|
||||||
ONETHIRDLEFTCOLUMN_HORIZONTALSECTIONLAYOUTTYPE
|
ONETHIRDLEFTCOLUMN_HORIZONTALSECTIONLAYOUTTYPE
|
||||||
ONETHIRDRIGHTCOLUMN_HORIZONTALSECTIONLAYOUTTYPE
|
ONETHIRDRIGHTCOLUMN_HORIZONTALSECTIONLAYOUTTYPE
|
||||||
FULLWIDTH_HORIZONTALSECTIONLAYOUTTYPE
|
FULLWIDTH_HORIZONTALSECTIONLAYOUTTYPE
|
||||||
UNKNOWNFUTUREVALUE_HORIZONTALSECTIONLAYOUTTYPE
|
UNKNOWNFUTUREVALUE_HORIZONTALSECTIONLAYOUTTYPE
|
||||||
)
|
)
|
||||||
|
|
||||||
func (i HorizontalSectionLayoutType) String() string {
|
func (i HorizontalSectionLayoutType) String() string {
|
||||||
return []string{"none", "oneColumn", "twoColumns", "threeColumns", "oneThirdLeftColumn", "oneThirdRightColumn", "fullWidth", "unknownFutureValue"}[i]
|
return []string{"none", "oneColumn", "twoColumns", "threeColumns", "oneThirdLeftColumn", "oneThirdRightColumn", "fullWidth", "unknownFutureValue"}[i]
|
||||||
}
|
}
|
||||||
func ParseHorizontalSectionLayoutType(v string) (interface{}, error) {
|
func ParseHorizontalSectionLayoutType(v string) (interface{}, error) {
|
||||||
result := NONE_HORIZONTALSECTIONLAYOUTTYPE
|
result := NONE_HORIZONTALSECTIONLAYOUTTYPE
|
||||||
switch v {
|
switch v {
|
||||||
case "none":
|
case "none":
|
||||||
result = NONE_HORIZONTALSECTIONLAYOUTTYPE
|
result = NONE_HORIZONTALSECTIONLAYOUTTYPE
|
||||||
case "oneColumn":
|
case "oneColumn":
|
||||||
result = ONECOLUMN_HORIZONTALSECTIONLAYOUTTYPE
|
result = ONECOLUMN_HORIZONTALSECTIONLAYOUTTYPE
|
||||||
case "twoColumns":
|
case "twoColumns":
|
||||||
result = TWOCOLUMNS_HORIZONTALSECTIONLAYOUTTYPE
|
result = TWOCOLUMNS_HORIZONTALSECTIONLAYOUTTYPE
|
||||||
case "threeColumns":
|
case "threeColumns":
|
||||||
result = THREECOLUMNS_HORIZONTALSECTIONLAYOUTTYPE
|
result = THREECOLUMNS_HORIZONTALSECTIONLAYOUTTYPE
|
||||||
case "oneThirdLeftColumn":
|
case "oneThirdLeftColumn":
|
||||||
result = ONETHIRDLEFTCOLUMN_HORIZONTALSECTIONLAYOUTTYPE
|
result = ONETHIRDLEFTCOLUMN_HORIZONTALSECTIONLAYOUTTYPE
|
||||||
case "oneThirdRightColumn":
|
case "oneThirdRightColumn":
|
||||||
result = ONETHIRDRIGHTCOLUMN_HORIZONTALSECTIONLAYOUTTYPE
|
result = ONETHIRDRIGHTCOLUMN_HORIZONTALSECTIONLAYOUTTYPE
|
||||||
case "fullWidth":
|
case "fullWidth":
|
||||||
result = FULLWIDTH_HORIZONTALSECTIONLAYOUTTYPE
|
result = FULLWIDTH_HORIZONTALSECTIONLAYOUTTYPE
|
||||||
case "unknownFutureValue":
|
case "unknownFutureValue":
|
||||||
result = UNKNOWNFUTUREVALUE_HORIZONTALSECTIONLAYOUTTYPE
|
result = UNKNOWNFUTUREVALUE_HORIZONTALSECTIONLAYOUTTYPE
|
||||||
default:
|
default:
|
||||||
return 0, errors.New("Unknown HorizontalSectionLayoutType value: " + v)
|
return 0, errors.New("Unknown HorizontalSectionLayoutType value: " + v)
|
||||||
}
|
}
|
||||||
return &result, nil
|
return &result, nil
|
||||||
}
|
}
|
||||||
func SerializeHorizontalSectionLayoutType(values []HorizontalSectionLayoutType) []string {
|
func SerializeHorizontalSectionLayoutType(values []HorizontalSectionLayoutType) []string {
|
||||||
result := make([]string, len(values))
|
result := make([]string, len(values))
|
||||||
for i, v := range values {
|
for i, v := range values {
|
||||||
result[i] = v.String()
|
result[i] = v.String()
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,123 +1,134 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MetaDataKeyStringPair
|
// MetaDataKeyStringPair
|
||||||
type MetaDataKeyStringPair struct {
|
type MetaDataKeyStringPair struct {
|
||||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||||
additionalData map[string]interface{}
|
additionalData map[string]interface{}
|
||||||
// Key of the meta data.
|
// Key of the meta data.
|
||||||
key *string
|
key *string
|
||||||
// The OdataType property
|
// The OdataType property
|
||||||
odataType *string
|
odataType *string
|
||||||
// Value of the meta data.
|
// Value of the meta data.
|
||||||
value *string
|
value *string
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewMetaDataKeyStringPair instantiates a new metaDataKeyStringPair and sets the default values.
|
// NewMetaDataKeyStringPair instantiates a new metaDataKeyStringPair and sets the default values.
|
||||||
func NewMetaDataKeyStringPair()(*MetaDataKeyStringPair) {
|
func NewMetaDataKeyStringPair() *MetaDataKeyStringPair {
|
||||||
m := &MetaDataKeyStringPair{
|
m := &MetaDataKeyStringPair{}
|
||||||
}
|
m.SetAdditionalData(make(map[string]interface{}))
|
||||||
m.SetAdditionalData(make(map[string]interface{}));
|
return m
|
||||||
return m
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateMetaDataKeyStringPairFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
// CreateMetaDataKeyStringPairFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||||
func CreateMetaDataKeyStringPairFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
func CreateMetaDataKeyStringPairFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||||
return NewMetaDataKeyStringPair(), nil
|
return NewMetaDataKeyStringPair(), 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.
|
// 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 *MetaDataKeyStringPair) GetAdditionalData()(map[string]interface{}) {
|
func (m *MetaDataKeyStringPair) GetAdditionalData() map[string]interface{} {
|
||||||
return m.additionalData
|
return m.additionalData
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
// GetFieldDeserializers the deserialization information for the current model
|
||||||
func (m *MetaDataKeyStringPair) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
func (m *MetaDataKeyStringPair) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error)
|
||||||
res["key"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["key"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetStringValue()
|
val, err := n.GetStringValue()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetKey(val)
|
m.SetKey(val)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["@odata.type"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetStringValue()
|
val, err := n.GetStringValue()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetOdataType(val)
|
m.SetOdataType(val)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["value"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetStringValue()
|
val, err := n.GetStringValue()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetValue(val)
|
m.SetValue(val)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetKey gets the key property value. Key of the meta data.
|
// GetKey gets the key property value. Key of the meta data.
|
||||||
func (m *MetaDataKeyStringPair) GetKey()(*string) {
|
func (m *MetaDataKeyStringPair) GetKey() *string {
|
||||||
return m.key
|
return m.key
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||||
func (m *MetaDataKeyStringPair) GetOdataType()(*string) {
|
func (m *MetaDataKeyStringPair) GetOdataType() *string {
|
||||||
return m.odataType
|
return m.odataType
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetValue gets the value property value. Value of the meta data.
|
// GetValue gets the value property value. Value of the meta data.
|
||||||
func (m *MetaDataKeyStringPair) GetValue()(*string) {
|
func (m *MetaDataKeyStringPair) GetValue() *string {
|
||||||
return m.value
|
return m.value
|
||||||
}
|
}
|
||||||
|
|
||||||
// Serialize serializes information the current object
|
// Serialize serializes information the current object
|
||||||
func (m *MetaDataKeyStringPair) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
func (m *MetaDataKeyStringPair) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error {
|
||||||
{
|
{
|
||||||
err := writer.WriteStringValue("key", m.GetKey())
|
err := writer.WriteStringValue("key", m.GetKey())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err := writer.WriteStringValue("value", m.GetValue())
|
err := writer.WriteStringValue("value", m.GetValue())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
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.
|
// 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 *MetaDataKeyStringPair) SetAdditionalData(value map[string]interface{})() {
|
func (m *MetaDataKeyStringPair) SetAdditionalData(value map[string]interface{}) {
|
||||||
m.additionalData = value
|
m.additionalData = value
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetKey sets the key property value. Key of the meta data.
|
// SetKey sets the key property value. Key of the meta data.
|
||||||
func (m *MetaDataKeyStringPair) SetKey(value *string)() {
|
func (m *MetaDataKeyStringPair) SetKey(value *string) {
|
||||||
m.key = value
|
m.key = value
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||||
func (m *MetaDataKeyStringPair) SetOdataType(value *string)() {
|
func (m *MetaDataKeyStringPair) SetOdataType(value *string) {
|
||||||
m.odataType = value
|
m.odataType = value
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetValue sets the value property value. Value of the meta data.
|
// SetValue sets the value property value. Value of the meta data.
|
||||||
func (m *MetaDataKeyStringPair) SetValue(value *string)() {
|
func (m *MetaDataKeyStringPair) SetValue(value *string) {
|
||||||
m.value = value
|
m.value = value
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,17 +1,17 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MetaDataKeyStringPairable
|
// MetaDataKeyStringPairable
|
||||||
type MetaDataKeyStringPairable interface {
|
type MetaDataKeyStringPairable interface {
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||||
GetKey()(*string)
|
GetKey() *string
|
||||||
GetOdataType()(*string)
|
GetOdataType() *string
|
||||||
GetValue()(*string)
|
GetValue() *string
|
||||||
SetKey(value *string)()
|
SetKey(value *string)
|
||||||
SetOdataType(value *string)()
|
SetOdataType(value *string)
|
||||||
SetValue(value *string)()
|
SetValue(value *string)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,40 +1,42 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Provides operations to call the remove method.
|
// Provides operations to call the remove method.
|
||||||
type PageLayoutType int
|
type PageLayoutType int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
MICROSOFTRESERVED_PAGELAYOUTTYPE PageLayoutType = iota
|
MICROSOFTRESERVED_PAGELAYOUTTYPE PageLayoutType = iota
|
||||||
ARTICLE_PAGELAYOUTTYPE
|
ARTICLE_PAGELAYOUTTYPE
|
||||||
HOME_PAGELAYOUTTYPE
|
HOME_PAGELAYOUTTYPE
|
||||||
UNKNOWNFUTUREVALUE_PAGELAYOUTTYPE
|
UNKNOWNFUTUREVALUE_PAGELAYOUTTYPE
|
||||||
)
|
)
|
||||||
|
|
||||||
func (i PageLayoutType) String() string {
|
func (i PageLayoutType) String() string {
|
||||||
return []string{"microsoftReserved", "article", "home", "unknownFutureValue"}[i]
|
return []string{"microsoftReserved", "article", "home", "unknownFutureValue"}[i]
|
||||||
}
|
}
|
||||||
func ParsePageLayoutType(v string) (interface{}, error) {
|
func ParsePageLayoutType(v string) (interface{}, error) {
|
||||||
result := MICROSOFTRESERVED_PAGELAYOUTTYPE
|
result := MICROSOFTRESERVED_PAGELAYOUTTYPE
|
||||||
switch v {
|
switch v {
|
||||||
case "microsoftReserved":
|
case "microsoftReserved":
|
||||||
result = MICROSOFTRESERVED_PAGELAYOUTTYPE
|
result = MICROSOFTRESERVED_PAGELAYOUTTYPE
|
||||||
case "article":
|
case "article":
|
||||||
result = ARTICLE_PAGELAYOUTTYPE
|
result = ARTICLE_PAGELAYOUTTYPE
|
||||||
case "home":
|
case "home":
|
||||||
result = HOME_PAGELAYOUTTYPE
|
result = HOME_PAGELAYOUTTYPE
|
||||||
case "unknownFutureValue":
|
case "unknownFutureValue":
|
||||||
result = UNKNOWNFUTUREVALUE_PAGELAYOUTTYPE
|
result = UNKNOWNFUTUREVALUE_PAGELAYOUTTYPE
|
||||||
default:
|
default:
|
||||||
return 0, errors.New("Unknown PageLayoutType value: " + v)
|
return 0, errors.New("Unknown PageLayoutType value: " + v)
|
||||||
}
|
}
|
||||||
return &result, nil
|
return &result, nil
|
||||||
}
|
}
|
||||||
func SerializePageLayoutType(values []PageLayoutType) []string {
|
func SerializePageLayoutType(values []PageLayoutType) []string {
|
||||||
result := make([]string, len(values))
|
result := make([]string, len(values))
|
||||||
for i, v := range values {
|
for i, v := range values {
|
||||||
result[i] = v.String()
|
result[i] = v.String()
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,40 +1,42 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Provides operations to call the remove method.
|
// Provides operations to call the remove method.
|
||||||
type PagePromotionType int
|
type PagePromotionType int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
MICROSOFTRESERVED_PAGEPROMOTIONTYPE PagePromotionType = iota
|
MICROSOFTRESERVED_PAGEPROMOTIONTYPE PagePromotionType = iota
|
||||||
PAGE_PAGEPROMOTIONTYPE
|
PAGE_PAGEPROMOTIONTYPE
|
||||||
NEWSPOST_PAGEPROMOTIONTYPE
|
NEWSPOST_PAGEPROMOTIONTYPE
|
||||||
UNKNOWNFUTUREVALUE_PAGEPROMOTIONTYPE
|
UNKNOWNFUTUREVALUE_PAGEPROMOTIONTYPE
|
||||||
)
|
)
|
||||||
|
|
||||||
func (i PagePromotionType) String() string {
|
func (i PagePromotionType) String() string {
|
||||||
return []string{"microsoftReserved", "page", "newsPost", "unknownFutureValue"}[i]
|
return []string{"microsoftReserved", "page", "newsPost", "unknownFutureValue"}[i]
|
||||||
}
|
}
|
||||||
func ParsePagePromotionType(v string) (interface{}, error) {
|
func ParsePagePromotionType(v string) (interface{}, error) {
|
||||||
result := MICROSOFTRESERVED_PAGEPROMOTIONTYPE
|
result := MICROSOFTRESERVED_PAGEPROMOTIONTYPE
|
||||||
switch v {
|
switch v {
|
||||||
case "microsoftReserved":
|
case "microsoftReserved":
|
||||||
result = MICROSOFTRESERVED_PAGEPROMOTIONTYPE
|
result = MICROSOFTRESERVED_PAGEPROMOTIONTYPE
|
||||||
case "page":
|
case "page":
|
||||||
result = PAGE_PAGEPROMOTIONTYPE
|
result = PAGE_PAGEPROMOTIONTYPE
|
||||||
case "newsPost":
|
case "newsPost":
|
||||||
result = NEWSPOST_PAGEPROMOTIONTYPE
|
result = NEWSPOST_PAGEPROMOTIONTYPE
|
||||||
case "unknownFutureValue":
|
case "unknownFutureValue":
|
||||||
result = UNKNOWNFUTUREVALUE_PAGEPROMOTIONTYPE
|
result = UNKNOWNFUTUREVALUE_PAGEPROMOTIONTYPE
|
||||||
default:
|
default:
|
||||||
return 0, errors.New("Unknown PagePromotionType value: " + v)
|
return 0, errors.New("Unknown PagePromotionType value: " + v)
|
||||||
}
|
}
|
||||||
return &result, nil
|
return &result, nil
|
||||||
}
|
}
|
||||||
func SerializePagePromotionType(values []PagePromotionType) []string {
|
func SerializePagePromotionType(values []PagePromotionType) []string {
|
||||||
result := make([]string, len(values))
|
result := make([]string, len(values))
|
||||||
for i, v := range values {
|
for i, v := range values {
|
||||||
result[i] = v.String()
|
result[i] = v.String()
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,123 +1,134 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PublicationFacet
|
// PublicationFacet
|
||||||
type PublicationFacet struct {
|
type PublicationFacet struct {
|
||||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||||
additionalData map[string]interface{}
|
additionalData map[string]interface{}
|
||||||
// The state of publication for this document. Either published or checkout. Read-only.
|
// The state of publication for this document. Either published or checkout. Read-only.
|
||||||
level *string
|
level *string
|
||||||
// The OdataType property
|
// The OdataType property
|
||||||
odataType *string
|
odataType *string
|
||||||
// The unique identifier for the version that is visible to the current caller. Read-only.
|
// The unique identifier for the version that is visible to the current caller. Read-only.
|
||||||
versionId *string
|
versionId *string
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewPublicationFacet instantiates a new publicationFacet and sets the default values.
|
// NewPublicationFacet instantiates a new publicationFacet and sets the default values.
|
||||||
func NewPublicationFacet()(*PublicationFacet) {
|
func NewPublicationFacet() *PublicationFacet {
|
||||||
m := &PublicationFacet{
|
m := &PublicationFacet{}
|
||||||
}
|
m.SetAdditionalData(make(map[string]interface{}))
|
||||||
m.SetAdditionalData(make(map[string]interface{}));
|
return m
|
||||||
return m
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreatePublicationFacetFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
// CreatePublicationFacetFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||||
func CreatePublicationFacetFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
func CreatePublicationFacetFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||||
return NewPublicationFacet(), nil
|
return NewPublicationFacet(), 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.
|
// 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 *PublicationFacet) GetAdditionalData()(map[string]interface{}) {
|
func (m *PublicationFacet) GetAdditionalData() map[string]interface{} {
|
||||||
return m.additionalData
|
return m.additionalData
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
// GetFieldDeserializers the deserialization information for the current model
|
||||||
func (m *PublicationFacet) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
func (m *PublicationFacet) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error)
|
||||||
res["level"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["level"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetStringValue()
|
val, err := n.GetStringValue()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetLevel(val)
|
m.SetLevel(val)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["@odata.type"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetStringValue()
|
val, err := n.GetStringValue()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetOdataType(val)
|
m.SetOdataType(val)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
res["versionId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["versionId"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetStringValue()
|
val, err := n.GetStringValue()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetVersionId(val)
|
m.SetVersionId(val)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetLevel gets the level property value. The state of publication for this document. Either published or checkout. Read-only.
|
// GetLevel gets the level property value. The state of publication for this document. Either published or checkout. Read-only.
|
||||||
func (m *PublicationFacet) GetLevel()(*string) {
|
func (m *PublicationFacet) GetLevel() *string {
|
||||||
return m.level
|
return m.level
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||||
func (m *PublicationFacet) GetOdataType()(*string) {
|
func (m *PublicationFacet) GetOdataType() *string {
|
||||||
return m.odataType
|
return m.odataType
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetVersionId gets the versionId property value. The unique identifier for the version that is visible to the current caller. Read-only.
|
// GetVersionId gets the versionId property value. The unique identifier for the version that is visible to the current caller. Read-only.
|
||||||
func (m *PublicationFacet) GetVersionId()(*string) {
|
func (m *PublicationFacet) GetVersionId() *string {
|
||||||
return m.versionId
|
return m.versionId
|
||||||
}
|
}
|
||||||
|
|
||||||
// Serialize serializes information the current object
|
// Serialize serializes information the current object
|
||||||
func (m *PublicationFacet) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
func (m *PublicationFacet) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error {
|
||||||
{
|
{
|
||||||
err := writer.WriteStringValue("level", m.GetLevel())
|
err := writer.WriteStringValue("level", m.GetLevel())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err := writer.WriteStringValue("versionId", m.GetVersionId())
|
err := writer.WriteStringValue("versionId", m.GetVersionId())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
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.
|
// 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 *PublicationFacet) SetAdditionalData(value map[string]interface{})() {
|
func (m *PublicationFacet) SetAdditionalData(value map[string]interface{}) {
|
||||||
m.additionalData = value
|
m.additionalData = value
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetLevel sets the level property value. The state of publication for this document. Either published or checkout. Read-only.
|
// SetLevel sets the level property value. The state of publication for this document. Either published or checkout. Read-only.
|
||||||
func (m *PublicationFacet) SetLevel(value *string)() {
|
func (m *PublicationFacet) SetLevel(value *string) {
|
||||||
m.level = value
|
m.level = value
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||||
func (m *PublicationFacet) SetOdataType(value *string)() {
|
func (m *PublicationFacet) SetOdataType(value *string) {
|
||||||
m.odataType = value
|
m.odataType = value
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetVersionId sets the versionId property value. The unique identifier for the version that is visible to the current caller. Read-only.
|
// SetVersionId sets the versionId property value. The unique identifier for the version that is visible to the current caller. Read-only.
|
||||||
func (m *PublicationFacet) SetVersionId(value *string)() {
|
func (m *PublicationFacet) SetVersionId(value *string) {
|
||||||
m.versionId = value
|
m.versionId = value
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,17 +1,17 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PublicationFacetable
|
// PublicationFacetable
|
||||||
type PublicationFacetable interface {
|
type PublicationFacetable interface {
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||||
GetLevel()(*string)
|
GetLevel() *string
|
||||||
GetOdataType()(*string)
|
GetOdataType() *string
|
||||||
GetVersionId()(*string)
|
GetVersionId() *string
|
||||||
SetLevel(value *string)()
|
SetLevel(value *string)
|
||||||
SetOdataType(value *string)()
|
SetOdataType(value *string)
|
||||||
SetVersionId(value *string)()
|
SetVersionId(value *string)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,149 +1,162 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ReactionsFacet
|
// ReactionsFacet
|
||||||
type ReactionsFacet struct {
|
type ReactionsFacet struct {
|
||||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||||
additionalData map[string]interface{}
|
additionalData map[string]interface{}
|
||||||
// Count of comments.
|
// Count of comments.
|
||||||
commentCount *int32
|
commentCount *int32
|
||||||
// Count of likes.
|
// Count of likes.
|
||||||
likeCount *int32
|
likeCount *int32
|
||||||
// The OdataType property
|
// The OdataType property
|
||||||
odataType *string
|
odataType *string
|
||||||
// Count of shares.
|
// Count of shares.
|
||||||
shareCount *int32
|
shareCount *int32
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewReactionsFacet instantiates a new reactionsFacet and sets the default values.
|
// NewReactionsFacet instantiates a new reactionsFacet and sets the default values.
|
||||||
func NewReactionsFacet()(*ReactionsFacet) {
|
func NewReactionsFacet() *ReactionsFacet {
|
||||||
m := &ReactionsFacet{
|
m := &ReactionsFacet{}
|
||||||
}
|
m.SetAdditionalData(make(map[string]interface{}))
|
||||||
m.SetAdditionalData(make(map[string]interface{}));
|
return m
|
||||||
return m
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateReactionsFacetFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
// CreateReactionsFacetFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||||
func CreateReactionsFacetFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
func CreateReactionsFacetFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||||
return NewReactionsFacet(), nil
|
return NewReactionsFacet(), 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.
|
// 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 *ReactionsFacet) GetAdditionalData()(map[string]interface{}) {
|
func (m *ReactionsFacet) GetAdditionalData() map[string]interface{} {
|
||||||
return m.additionalData
|
return m.additionalData
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetCommentCount gets the commentCount property value. Count of comments.
|
// GetCommentCount gets the commentCount property value. Count of comments.
|
||||||
func (m *ReactionsFacet) GetCommentCount()(*int32) {
|
func (m *ReactionsFacet) GetCommentCount() *int32 {
|
||||||
return m.commentCount
|
return m.commentCount
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
// GetFieldDeserializers the deserialization information for the current model
|
||||||
func (m *ReactionsFacet) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
func (m *ReactionsFacet) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error)
|
||||||
res["commentCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["commentCount"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetInt32Value()
|
val, err := n.GetInt32Value()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetCommentCount(val)
|
m.SetCommentCount(val)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
res["likeCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["likeCount"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetInt32Value()
|
val, err := n.GetInt32Value()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetLikeCount(val)
|
m.SetLikeCount(val)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["@odata.type"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetStringValue()
|
val, err := n.GetStringValue()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetOdataType(val)
|
m.SetOdataType(val)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
res["shareCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["shareCount"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetInt32Value()
|
val, err := n.GetInt32Value()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetShareCount(val)
|
m.SetShareCount(val)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetLikeCount gets the likeCount property value. Count of likes.
|
// GetLikeCount gets the likeCount property value. Count of likes.
|
||||||
func (m *ReactionsFacet) GetLikeCount()(*int32) {
|
func (m *ReactionsFacet) GetLikeCount() *int32 {
|
||||||
return m.likeCount
|
return m.likeCount
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||||
func (m *ReactionsFacet) GetOdataType()(*string) {
|
func (m *ReactionsFacet) GetOdataType() *string {
|
||||||
return m.odataType
|
return m.odataType
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetShareCount gets the shareCount property value. Count of shares.
|
// GetShareCount gets the shareCount property value. Count of shares.
|
||||||
func (m *ReactionsFacet) GetShareCount()(*int32) {
|
func (m *ReactionsFacet) GetShareCount() *int32 {
|
||||||
return m.shareCount
|
return m.shareCount
|
||||||
}
|
}
|
||||||
|
|
||||||
// Serialize serializes information the current object
|
// Serialize serializes information the current object
|
||||||
func (m *ReactionsFacet) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
func (m *ReactionsFacet) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error {
|
||||||
{
|
{
|
||||||
err := writer.WriteInt32Value("commentCount", m.GetCommentCount())
|
err := writer.WriteInt32Value("commentCount", m.GetCommentCount())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err := writer.WriteInt32Value("likeCount", m.GetLikeCount())
|
err := writer.WriteInt32Value("likeCount", m.GetLikeCount())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err := writer.WriteInt32Value("shareCount", m.GetShareCount())
|
err := writer.WriteInt32Value("shareCount", m.GetShareCount())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
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.
|
// 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 *ReactionsFacet) SetAdditionalData(value map[string]interface{})() {
|
func (m *ReactionsFacet) SetAdditionalData(value map[string]interface{}) {
|
||||||
m.additionalData = value
|
m.additionalData = value
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetCommentCount sets the commentCount property value. Count of comments.
|
// SetCommentCount sets the commentCount property value. Count of comments.
|
||||||
func (m *ReactionsFacet) SetCommentCount(value *int32)() {
|
func (m *ReactionsFacet) SetCommentCount(value *int32) {
|
||||||
m.commentCount = value
|
m.commentCount = value
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetLikeCount sets the likeCount property value. Count of likes.
|
// SetLikeCount sets the likeCount property value. Count of likes.
|
||||||
func (m *ReactionsFacet) SetLikeCount(value *int32)() {
|
func (m *ReactionsFacet) SetLikeCount(value *int32) {
|
||||||
m.likeCount = value
|
m.likeCount = value
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||||
func (m *ReactionsFacet) SetOdataType(value *string)() {
|
func (m *ReactionsFacet) SetOdataType(value *string) {
|
||||||
m.odataType = value
|
m.odataType = value
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetShareCount sets the shareCount property value. Count of shares.
|
// SetShareCount sets the shareCount property value. Count of shares.
|
||||||
func (m *ReactionsFacet) SetShareCount(value *int32)() {
|
func (m *ReactionsFacet) SetShareCount(value *int32) {
|
||||||
m.shareCount = value
|
m.shareCount = value
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,19 +1,19 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ReactionsFacetable
|
// ReactionsFacetable
|
||||||
type ReactionsFacetable interface {
|
type ReactionsFacetable interface {
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||||
GetCommentCount()(*int32)
|
GetCommentCount() *int32
|
||||||
GetLikeCount()(*int32)
|
GetLikeCount() *int32
|
||||||
GetOdataType()(*string)
|
GetOdataType() *string
|
||||||
GetShareCount()(*int32)
|
GetShareCount() *int32
|
||||||
SetCommentCount(value *int32)()
|
SetCommentCount(value *int32)
|
||||||
SetLikeCount(value *int32)()
|
SetLikeCount(value *int32)
|
||||||
SetOdataType(value *string)()
|
SetOdataType(value *string)
|
||||||
SetShareCount(value *int32)()
|
SetShareCount(value *int32)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,43 +1,45 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Provides operations to call the remove method.
|
// Provides operations to call the remove method.
|
||||||
type SectionEmphasisType int
|
type SectionEmphasisType int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
NONE_SECTIONEMPHASISTYPE SectionEmphasisType = iota
|
NONE_SECTIONEMPHASISTYPE SectionEmphasisType = iota
|
||||||
NEUTRAL_SECTIONEMPHASISTYPE
|
NEUTRAL_SECTIONEMPHASISTYPE
|
||||||
SOFT_SECTIONEMPHASISTYPE
|
SOFT_SECTIONEMPHASISTYPE
|
||||||
STRONG_SECTIONEMPHASISTYPE
|
STRONG_SECTIONEMPHASISTYPE
|
||||||
UNKNOWNFUTUREVALUE_SECTIONEMPHASISTYPE
|
UNKNOWNFUTUREVALUE_SECTIONEMPHASISTYPE
|
||||||
)
|
)
|
||||||
|
|
||||||
func (i SectionEmphasisType) String() string {
|
func (i SectionEmphasisType) String() string {
|
||||||
return []string{"none", "neutral", "soft", "strong", "unknownFutureValue"}[i]
|
return []string{"none", "neutral", "soft", "strong", "unknownFutureValue"}[i]
|
||||||
}
|
}
|
||||||
func ParseSectionEmphasisType(v string) (interface{}, error) {
|
func ParseSectionEmphasisType(v string) (interface{}, error) {
|
||||||
result := NONE_SECTIONEMPHASISTYPE
|
result := NONE_SECTIONEMPHASISTYPE
|
||||||
switch v {
|
switch v {
|
||||||
case "none":
|
case "none":
|
||||||
result = NONE_SECTIONEMPHASISTYPE
|
result = NONE_SECTIONEMPHASISTYPE
|
||||||
case "neutral":
|
case "neutral":
|
||||||
result = NEUTRAL_SECTIONEMPHASISTYPE
|
result = NEUTRAL_SECTIONEMPHASISTYPE
|
||||||
case "soft":
|
case "soft":
|
||||||
result = SOFT_SECTIONEMPHASISTYPE
|
result = SOFT_SECTIONEMPHASISTYPE
|
||||||
case "strong":
|
case "strong":
|
||||||
result = STRONG_SECTIONEMPHASISTYPE
|
result = STRONG_SECTIONEMPHASISTYPE
|
||||||
case "unknownFutureValue":
|
case "unknownFutureValue":
|
||||||
result = UNKNOWNFUTUREVALUE_SECTIONEMPHASISTYPE
|
result = UNKNOWNFUTUREVALUE_SECTIONEMPHASISTYPE
|
||||||
default:
|
default:
|
||||||
return 0, errors.New("Unknown SectionEmphasisType value: " + v)
|
return 0, errors.New("Unknown SectionEmphasisType value: " + v)
|
||||||
}
|
}
|
||||||
return &result, nil
|
return &result, nil
|
||||||
}
|
}
|
||||||
func SerializeSectionEmphasisType(values []SectionEmphasisType) []string {
|
func SerializeSectionEmphasisType(values []SectionEmphasisType) []string {
|
||||||
result := make([]string, len(values))
|
result := make([]string, len(values))
|
||||||
for i, v := range values {
|
for i, v := range values {
|
||||||
result[i] = v.String()
|
result[i] = v.String()
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,37 +1,39 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Provides operations to call the remove method.
|
// Provides operations to call the remove method.
|
||||||
type SiteAccessType int
|
type SiteAccessType int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
BLOCK_SITEACCESSTYPE SiteAccessType = iota
|
BLOCK_SITEACCESSTYPE SiteAccessType = iota
|
||||||
FULL_SITEACCESSTYPE
|
FULL_SITEACCESSTYPE
|
||||||
LIMITED_SITEACCESSTYPE
|
LIMITED_SITEACCESSTYPE
|
||||||
)
|
)
|
||||||
|
|
||||||
func (i SiteAccessType) String() string {
|
func (i SiteAccessType) String() string {
|
||||||
return []string{"block", "full", "limited"}[i]
|
return []string{"block", "full", "limited"}[i]
|
||||||
}
|
}
|
||||||
func ParseSiteAccessType(v string) (interface{}, error) {
|
func ParseSiteAccessType(v string) (interface{}, error) {
|
||||||
result := BLOCK_SITEACCESSTYPE
|
result := BLOCK_SITEACCESSTYPE
|
||||||
switch v {
|
switch v {
|
||||||
case "block":
|
case "block":
|
||||||
result = BLOCK_SITEACCESSTYPE
|
result = BLOCK_SITEACCESSTYPE
|
||||||
case "full":
|
case "full":
|
||||||
result = FULL_SITEACCESSTYPE
|
result = FULL_SITEACCESSTYPE
|
||||||
case "limited":
|
case "limited":
|
||||||
result = LIMITED_SITEACCESSTYPE
|
result = LIMITED_SITEACCESSTYPE
|
||||||
default:
|
default:
|
||||||
return 0, errors.New("Unknown SiteAccessType value: " + v)
|
return 0, errors.New("Unknown SiteAccessType value: " + v)
|
||||||
}
|
}
|
||||||
return &result, nil
|
return &result, nil
|
||||||
}
|
}
|
||||||
func SerializeSiteAccessType(values []SiteAccessType) []string {
|
func SerializeSiteAccessType(values []SiteAccessType) []string {
|
||||||
result := make([]string, len(values))
|
result := make([]string, len(values))
|
||||||
for i, v := range values {
|
for i, v := range values {
|
||||||
result[i] = v.String()
|
result[i] = v.String()
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,52 +1,54 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Provides operations to call the add method.
|
// Provides operations to call the add method.
|
||||||
type SiteSecurityLevel int
|
type SiteSecurityLevel int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// User Defined, default value, no intent.
|
// User Defined, default value, no intent.
|
||||||
USERDEFINED_SITESECURITYLEVEL SiteSecurityLevel = iota
|
USERDEFINED_SITESECURITYLEVEL SiteSecurityLevel = iota
|
||||||
// Low.
|
// Low.
|
||||||
LOW_SITESECURITYLEVEL
|
LOW_SITESECURITYLEVEL
|
||||||
// Medium-low.
|
// Medium-low.
|
||||||
MEDIUMLOW_SITESECURITYLEVEL
|
MEDIUMLOW_SITESECURITYLEVEL
|
||||||
// Medium.
|
// Medium.
|
||||||
MEDIUM_SITESECURITYLEVEL
|
MEDIUM_SITESECURITYLEVEL
|
||||||
// Medium-high.
|
// Medium-high.
|
||||||
MEDIUMHIGH_SITESECURITYLEVEL
|
MEDIUMHIGH_SITESECURITYLEVEL
|
||||||
// High.
|
// High.
|
||||||
HIGH_SITESECURITYLEVEL
|
HIGH_SITESECURITYLEVEL
|
||||||
)
|
)
|
||||||
|
|
||||||
func (i SiteSecurityLevel) String() string {
|
func (i SiteSecurityLevel) String() string {
|
||||||
return []string{"userDefined", "low", "mediumLow", "medium", "mediumHigh", "high"}[i]
|
return []string{"userDefined", "low", "mediumLow", "medium", "mediumHigh", "high"}[i]
|
||||||
}
|
}
|
||||||
func ParseSiteSecurityLevel(v string) (interface{}, error) {
|
func ParseSiteSecurityLevel(v string) (interface{}, error) {
|
||||||
result := USERDEFINED_SITESECURITYLEVEL
|
result := USERDEFINED_SITESECURITYLEVEL
|
||||||
switch v {
|
switch v {
|
||||||
case "userDefined":
|
case "userDefined":
|
||||||
result = USERDEFINED_SITESECURITYLEVEL
|
result = USERDEFINED_SITESECURITYLEVEL
|
||||||
case "low":
|
case "low":
|
||||||
result = LOW_SITESECURITYLEVEL
|
result = LOW_SITESECURITYLEVEL
|
||||||
case "mediumLow":
|
case "mediumLow":
|
||||||
result = MEDIUMLOW_SITESECURITYLEVEL
|
result = MEDIUMLOW_SITESECURITYLEVEL
|
||||||
case "medium":
|
case "medium":
|
||||||
result = MEDIUM_SITESECURITYLEVEL
|
result = MEDIUM_SITESECURITYLEVEL
|
||||||
case "mediumHigh":
|
case "mediumHigh":
|
||||||
result = MEDIUMHIGH_SITESECURITYLEVEL
|
result = MEDIUMHIGH_SITESECURITYLEVEL
|
||||||
case "high":
|
case "high":
|
||||||
result = HIGH_SITESECURITYLEVEL
|
result = HIGH_SITESECURITYLEVEL
|
||||||
default:
|
default:
|
||||||
return 0, errors.New("Unknown SiteSecurityLevel value: " + v)
|
return 0, errors.New("Unknown SiteSecurityLevel value: " + v)
|
||||||
}
|
}
|
||||||
return &result, nil
|
return &result, nil
|
||||||
}
|
}
|
||||||
func SerializeSiteSecurityLevel(values []SiteSecurityLevel) []string {
|
func SerializeSiteSecurityLevel(values []SiteSecurityLevel) []string {
|
||||||
result := make([]string, len(values))
|
result := make([]string, len(values))
|
||||||
for i, v := range values {
|
for i, v := range values {
|
||||||
result[i] = v.String()
|
result[i] = v.String()
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,123 +1,134 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SiteSettings
|
// SiteSettings
|
||||||
type SiteSettings struct {
|
type SiteSettings struct {
|
||||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||||
additionalData map[string]interface{}
|
additionalData map[string]interface{}
|
||||||
// The language tag for the language used on this site.
|
// The language tag for the language used on this site.
|
||||||
languageTag *string
|
languageTag *string
|
||||||
// The OdataType property
|
// The OdataType property
|
||||||
odataType *string
|
odataType *string
|
||||||
// Indicates the time offset for the time zone of the site from Coordinated Universal Time (UTC).
|
// Indicates the time offset for the time zone of the site from Coordinated Universal Time (UTC).
|
||||||
timeZone *string
|
timeZone *string
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewSiteSettings instantiates a new siteSettings and sets the default values.
|
// NewSiteSettings instantiates a new siteSettings and sets the default values.
|
||||||
func NewSiteSettings()(*SiteSettings) {
|
func NewSiteSettings() *SiteSettings {
|
||||||
m := &SiteSettings{
|
m := &SiteSettings{}
|
||||||
}
|
m.SetAdditionalData(make(map[string]interface{}))
|
||||||
m.SetAdditionalData(make(map[string]interface{}));
|
return m
|
||||||
return m
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateSiteSettingsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
// CreateSiteSettingsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||||
func CreateSiteSettingsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
func CreateSiteSettingsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||||
return NewSiteSettings(), nil
|
return NewSiteSettings(), 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.
|
// 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 *SiteSettings) GetAdditionalData()(map[string]interface{}) {
|
func (m *SiteSettings) GetAdditionalData() map[string]interface{} {
|
||||||
return m.additionalData
|
return m.additionalData
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
// GetFieldDeserializers the deserialization information for the current model
|
||||||
func (m *SiteSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
func (m *SiteSettings) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error)
|
||||||
res["languageTag"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["languageTag"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetStringValue()
|
val, err := n.GetStringValue()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetLanguageTag(val)
|
m.SetLanguageTag(val)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["@odata.type"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetStringValue()
|
val, err := n.GetStringValue()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetOdataType(val)
|
m.SetOdataType(val)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
res["timeZone"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["timeZone"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetStringValue()
|
val, err := n.GetStringValue()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetTimeZone(val)
|
m.SetTimeZone(val)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetLanguageTag gets the languageTag property value. The language tag for the language used on this site.
|
// GetLanguageTag gets the languageTag property value. The language tag for the language used on this site.
|
||||||
func (m *SiteSettings) GetLanguageTag()(*string) {
|
func (m *SiteSettings) GetLanguageTag() *string {
|
||||||
return m.languageTag
|
return m.languageTag
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||||
func (m *SiteSettings) GetOdataType()(*string) {
|
func (m *SiteSettings) GetOdataType() *string {
|
||||||
return m.odataType
|
return m.odataType
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetTimeZone gets the timeZone property value. Indicates the time offset for the time zone of the site from Coordinated Universal Time (UTC).
|
// GetTimeZone gets the timeZone property value. Indicates the time offset for the time zone of the site from Coordinated Universal Time (UTC).
|
||||||
func (m *SiteSettings) GetTimeZone()(*string) {
|
func (m *SiteSettings) GetTimeZone() *string {
|
||||||
return m.timeZone
|
return m.timeZone
|
||||||
}
|
}
|
||||||
|
|
||||||
// Serialize serializes information the current object
|
// Serialize serializes information the current object
|
||||||
func (m *SiteSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
func (m *SiteSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error {
|
||||||
{
|
{
|
||||||
err := writer.WriteStringValue("languageTag", m.GetLanguageTag())
|
err := writer.WriteStringValue("languageTag", m.GetLanguageTag())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err := writer.WriteStringValue("timeZone", m.GetTimeZone())
|
err := writer.WriteStringValue("timeZone", m.GetTimeZone())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
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.
|
// 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 *SiteSettings) SetAdditionalData(value map[string]interface{})() {
|
func (m *SiteSettings) SetAdditionalData(value map[string]interface{}) {
|
||||||
m.additionalData = value
|
m.additionalData = value
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetLanguageTag sets the languageTag property value. The language tag for the language used on this site.
|
// SetLanguageTag sets the languageTag property value. The language tag for the language used on this site.
|
||||||
func (m *SiteSettings) SetLanguageTag(value *string)() {
|
func (m *SiteSettings) SetLanguageTag(value *string) {
|
||||||
m.languageTag = value
|
m.languageTag = value
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||||
func (m *SiteSettings) SetOdataType(value *string)() {
|
func (m *SiteSettings) SetOdataType(value *string) {
|
||||||
m.odataType = value
|
m.odataType = value
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetTimeZone sets the timeZone property value. Indicates the time offset for the time zone of the site from Coordinated Universal Time (UTC).
|
// SetTimeZone sets the timeZone property value. Indicates the time offset for the time zone of the site from Coordinated Universal Time (UTC).
|
||||||
func (m *SiteSettings) SetTimeZone(value *string)() {
|
func (m *SiteSettings) SetTimeZone(value *string) {
|
||||||
m.timeZone = value
|
m.timeZone = value
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,17 +1,17 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SiteSettingsable
|
// SiteSettingsable
|
||||||
type SiteSettingsable interface {
|
type SiteSettingsable interface {
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||||
GetLanguageTag()(*string)
|
GetLanguageTag() *string
|
||||||
GetOdataType()(*string)
|
GetOdataType() *string
|
||||||
GetTimeZone()(*string)
|
GetTimeZone() *string
|
||||||
SetLanguageTag(value *string)()
|
SetLanguageTag(value *string)
|
||||||
SetOdataType(value *string)()
|
SetOdataType(value *string)
|
||||||
SetTimeZone(value *string)()
|
SetTimeZone(value *string)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,88 +1,96 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StandardWebPart
|
// StandardWebPart
|
||||||
type StandardWebPart struct {
|
type StandardWebPart struct {
|
||||||
WebPart
|
WebPart
|
||||||
// Data of the webPart.
|
// Data of the webPart.
|
||||||
data WebPartDataable
|
data WebPartDataable
|
||||||
// A Guid which indicates the type of the webParts
|
// A Guid which indicates the type of the webParts
|
||||||
webPartType *string
|
webPartType *string
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewStandardWebPart instantiates a new StandardWebPart and sets the default values.
|
// NewStandardWebPart instantiates a new StandardWebPart and sets the default values.
|
||||||
func NewStandardWebPart()(*StandardWebPart) {
|
func NewStandardWebPart() *StandardWebPart {
|
||||||
m := &StandardWebPart{
|
m := &StandardWebPart{
|
||||||
WebPart: *NewWebPart(),
|
WebPart: *NewWebPart(),
|
||||||
}
|
}
|
||||||
odataTypeValue := "#microsoft.graph.standardWebPart";
|
odataTypeValue := "#microsoft.graph.standardWebPart"
|
||||||
m.SetOdataType(&odataTypeValue);
|
m.SetOdataType(&odataTypeValue)
|
||||||
return m
|
return m
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateStandardWebPartFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
// CreateStandardWebPartFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||||
func CreateStandardWebPartFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
func CreateStandardWebPartFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||||
return NewStandardWebPart(), nil
|
return NewStandardWebPart(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetData gets the data property value. Data of the webPart.
|
// GetData gets the data property value. Data of the webPart.
|
||||||
func (m *StandardWebPart) GetData()(WebPartDataable) {
|
func (m *StandardWebPart) GetData() WebPartDataable {
|
||||||
return m.data
|
return m.data
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
// GetFieldDeserializers the deserialization information for the current model
|
||||||
func (m *StandardWebPart) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
func (m *StandardWebPart) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
res := m.WebPart.GetFieldDeserializers()
|
res := m.WebPart.GetFieldDeserializers()
|
||||||
res["data"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["data"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetObjectValue(CreateWebPartDataFromDiscriminatorValue)
|
val, err := n.GetObjectValue(CreateWebPartDataFromDiscriminatorValue)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetData(val.(WebPartDataable))
|
m.SetData(val.(WebPartDataable))
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
res["webPartType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["webPartType"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetStringValue()
|
val, err := n.GetStringValue()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetWebPartType(val)
|
m.SetWebPartType(val)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetWebPartType gets the webPartType property value. A Guid which indicates the type of the webParts
|
// GetWebPartType gets the webPartType property value. A Guid which indicates the type of the webParts
|
||||||
func (m *StandardWebPart) GetWebPartType()(*string) {
|
func (m *StandardWebPart) GetWebPartType() *string {
|
||||||
return m.webPartType
|
return m.webPartType
|
||||||
}
|
}
|
||||||
|
|
||||||
// Serialize serializes information the current object
|
// Serialize serializes information the current object
|
||||||
func (m *StandardWebPart) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
func (m *StandardWebPart) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error {
|
||||||
err := m.WebPart.Serialize(writer)
|
err := m.WebPart.Serialize(writer)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err = writer.WriteObjectValue("data", m.GetData())
|
err = writer.WriteObjectValue("data", m.GetData())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err = writer.WriteStringValue("webPartType", m.GetWebPartType())
|
err = writer.WriteStringValue("webPartType", m.GetWebPartType())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetData sets the data property value. Data of the webPart.
|
// SetData sets the data property value. Data of the webPart.
|
||||||
func (m *StandardWebPart) SetData(value WebPartDataable)() {
|
func (m *StandardWebPart) SetData(value WebPartDataable) {
|
||||||
m.data = value
|
m.data = value
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetWebPartType sets the webPartType property value. A Guid which indicates the type of the webParts
|
// SetWebPartType sets the webPartType property value. A Guid which indicates the type of the webParts
|
||||||
func (m *StandardWebPart) SetWebPartType(value *string)() {
|
func (m *StandardWebPart) SetWebPartType(value *string) {
|
||||||
m.webPartType = value
|
m.webPartType = value
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,15 +1,15 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StandardWebPartable
|
// StandardWebPartable
|
||||||
type StandardWebPartable interface {
|
type StandardWebPartable interface {
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||||
WebPartable
|
WebPartable
|
||||||
GetData()(WebPartDataable)
|
GetData() WebPartDataable
|
||||||
GetWebPartType()(*string)
|
GetWebPartType() *string
|
||||||
SetData(value WebPartDataable)()
|
SetData(value WebPartDataable)
|
||||||
SetWebPartType(value *string)()
|
SetWebPartType(value *string)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,62 +1,68 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TextWebPart
|
// TextWebPart
|
||||||
type TextWebPart struct {
|
type TextWebPart struct {
|
||||||
WebPart
|
WebPart
|
||||||
// The HTML string in text web part.
|
// The HTML string in text web part.
|
||||||
innerHtml *string
|
innerHtml *string
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTextWebPart instantiates a new TextWebPart and sets the default values.
|
// NewTextWebPart instantiates a new TextWebPart and sets the default values.
|
||||||
func NewTextWebPart()(*TextWebPart) {
|
func NewTextWebPart() *TextWebPart {
|
||||||
m := &TextWebPart{
|
m := &TextWebPart{
|
||||||
WebPart: *NewWebPart(),
|
WebPart: *NewWebPart(),
|
||||||
}
|
}
|
||||||
odataTypeValue := "#microsoft.graph.textWebPart";
|
odataTypeValue := "#microsoft.graph.textWebPart"
|
||||||
m.SetOdataType(&odataTypeValue);
|
m.SetOdataType(&odataTypeValue)
|
||||||
return m
|
return m
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateTextWebPartFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
// CreateTextWebPartFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||||
func CreateTextWebPartFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
func CreateTextWebPartFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||||
return NewTextWebPart(), nil
|
return NewTextWebPart(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
// GetFieldDeserializers the deserialization information for the current model
|
||||||
func (m *TextWebPart) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
func (m *TextWebPart) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
res := m.WebPart.GetFieldDeserializers()
|
res := m.WebPart.GetFieldDeserializers()
|
||||||
res["innerHtml"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["innerHtml"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetStringValue()
|
val, err := n.GetStringValue()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetInnerHtml(val)
|
m.SetInnerHtml(val)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetInnerHtml gets the innerHtml property value. The HTML string in text web part.
|
// GetInnerHtml gets the innerHtml property value. The HTML string in text web part.
|
||||||
func (m *TextWebPart) GetInnerHtml()(*string) {
|
func (m *TextWebPart) GetInnerHtml() *string {
|
||||||
return m.innerHtml
|
return m.innerHtml
|
||||||
}
|
}
|
||||||
|
|
||||||
// Serialize serializes information the current object
|
// Serialize serializes information the current object
|
||||||
func (m *TextWebPart) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
func (m *TextWebPart) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error {
|
||||||
err := m.WebPart.Serialize(writer)
|
err := m.WebPart.Serialize(writer)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err = writer.WriteStringValue("innerHtml", m.GetInnerHtml())
|
err = writer.WriteStringValue("innerHtml", m.GetInnerHtml())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetInnerHtml sets the innerHtml property value. The HTML string in text web part.
|
// SetInnerHtml sets the innerHtml property value. The HTML string in text web part.
|
||||||
func (m *TextWebPart) SetInnerHtml(value *string)() {
|
func (m *TextWebPart) SetInnerHtml(value *string) {
|
||||||
m.innerHtml = value
|
m.innerHtml = value
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TextWebPartable
|
// TextWebPartable
|
||||||
type TextWebPartable interface {
|
type TextWebPartable interface {
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||||
WebPartable
|
WebPartable
|
||||||
GetInnerHtml()(*string)
|
GetInnerHtml() *string
|
||||||
SetInnerHtml(value *string)()
|
SetInnerHtml(value *string)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,43 +1,45 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Provides operations to call the remove method.
|
// Provides operations to call the remove method.
|
||||||
type TitleAreaLayoutType int
|
type TitleAreaLayoutType int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
IMAGEANDTITLE_TITLEAREALAYOUTTYPE TitleAreaLayoutType = iota
|
IMAGEANDTITLE_TITLEAREALAYOUTTYPE TitleAreaLayoutType = iota
|
||||||
PLAIN_TITLEAREALAYOUTTYPE
|
PLAIN_TITLEAREALAYOUTTYPE
|
||||||
COLORBLOCK_TITLEAREALAYOUTTYPE
|
COLORBLOCK_TITLEAREALAYOUTTYPE
|
||||||
OVERLAP_TITLEAREALAYOUTTYPE
|
OVERLAP_TITLEAREALAYOUTTYPE
|
||||||
UNKNOWNFUTUREVALUE_TITLEAREALAYOUTTYPE
|
UNKNOWNFUTUREVALUE_TITLEAREALAYOUTTYPE
|
||||||
)
|
)
|
||||||
|
|
||||||
func (i TitleAreaLayoutType) String() string {
|
func (i TitleAreaLayoutType) String() string {
|
||||||
return []string{"imageAndTitle", "plain", "colorBlock", "overlap", "unknownFutureValue"}[i]
|
return []string{"imageAndTitle", "plain", "colorBlock", "overlap", "unknownFutureValue"}[i]
|
||||||
}
|
}
|
||||||
func ParseTitleAreaLayoutType(v string) (interface{}, error) {
|
func ParseTitleAreaLayoutType(v string) (interface{}, error) {
|
||||||
result := IMAGEANDTITLE_TITLEAREALAYOUTTYPE
|
result := IMAGEANDTITLE_TITLEAREALAYOUTTYPE
|
||||||
switch v {
|
switch v {
|
||||||
case "imageAndTitle":
|
case "imageAndTitle":
|
||||||
result = IMAGEANDTITLE_TITLEAREALAYOUTTYPE
|
result = IMAGEANDTITLE_TITLEAREALAYOUTTYPE
|
||||||
case "plain":
|
case "plain":
|
||||||
result = PLAIN_TITLEAREALAYOUTTYPE
|
result = PLAIN_TITLEAREALAYOUTTYPE
|
||||||
case "colorBlock":
|
case "colorBlock":
|
||||||
result = COLORBLOCK_TITLEAREALAYOUTTYPE
|
result = COLORBLOCK_TITLEAREALAYOUTTYPE
|
||||||
case "overlap":
|
case "overlap":
|
||||||
result = OVERLAP_TITLEAREALAYOUTTYPE
|
result = OVERLAP_TITLEAREALAYOUTTYPE
|
||||||
case "unknownFutureValue":
|
case "unknownFutureValue":
|
||||||
result = UNKNOWNFUTUREVALUE_TITLEAREALAYOUTTYPE
|
result = UNKNOWNFUTUREVALUE_TITLEAREALAYOUTTYPE
|
||||||
default:
|
default:
|
||||||
return 0, errors.New("Unknown TitleAreaLayoutType value: " + v)
|
return 0, errors.New("Unknown TitleAreaLayoutType value: " + v)
|
||||||
}
|
}
|
||||||
return &result, nil
|
return &result, nil
|
||||||
}
|
}
|
||||||
func SerializeTitleAreaLayoutType(values []TitleAreaLayoutType) []string {
|
func SerializeTitleAreaLayoutType(values []TitleAreaLayoutType) []string {
|
||||||
result := make([]string, len(values))
|
result := make([]string, len(values))
|
||||||
for i, v := range values {
|
for i, v := range values {
|
||||||
result[i] = v.String()
|
result[i] = v.String()
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,37 +1,39 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Provides operations to call the remove method.
|
// Provides operations to call the remove method.
|
||||||
type TitleAreaTextAlignmentType int
|
type TitleAreaTextAlignmentType int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
LEFT_TITLEAREATEXTALIGNMENTTYPE TitleAreaTextAlignmentType = iota
|
LEFT_TITLEAREATEXTALIGNMENTTYPE TitleAreaTextAlignmentType = iota
|
||||||
CENTER_TITLEAREATEXTALIGNMENTTYPE
|
CENTER_TITLEAREATEXTALIGNMENTTYPE
|
||||||
UNKNOWNFUTUREVALUE_TITLEAREATEXTALIGNMENTTYPE
|
UNKNOWNFUTUREVALUE_TITLEAREATEXTALIGNMENTTYPE
|
||||||
)
|
)
|
||||||
|
|
||||||
func (i TitleAreaTextAlignmentType) String() string {
|
func (i TitleAreaTextAlignmentType) String() string {
|
||||||
return []string{"left", "center", "unknownFutureValue"}[i]
|
return []string{"left", "center", "unknownFutureValue"}[i]
|
||||||
}
|
}
|
||||||
func ParseTitleAreaTextAlignmentType(v string) (interface{}, error) {
|
func ParseTitleAreaTextAlignmentType(v string) (interface{}, error) {
|
||||||
result := LEFT_TITLEAREATEXTALIGNMENTTYPE
|
result := LEFT_TITLEAREATEXTALIGNMENTTYPE
|
||||||
switch v {
|
switch v {
|
||||||
case "left":
|
case "left":
|
||||||
result = LEFT_TITLEAREATEXTALIGNMENTTYPE
|
result = LEFT_TITLEAREATEXTALIGNMENTTYPE
|
||||||
case "center":
|
case "center":
|
||||||
result = CENTER_TITLEAREATEXTALIGNMENTTYPE
|
result = CENTER_TITLEAREATEXTALIGNMENTTYPE
|
||||||
case "unknownFutureValue":
|
case "unknownFutureValue":
|
||||||
result = UNKNOWNFUTUREVALUE_TITLEAREATEXTALIGNMENTTYPE
|
result = UNKNOWNFUTUREVALUE_TITLEAREATEXTALIGNMENTTYPE
|
||||||
default:
|
default:
|
||||||
return 0, errors.New("Unknown TitleAreaTextAlignmentType value: " + v)
|
return 0, errors.New("Unknown TitleAreaTextAlignmentType value: " + v)
|
||||||
}
|
}
|
||||||
return &result, nil
|
return &result, nil
|
||||||
}
|
}
|
||||||
func SerializeTitleAreaTextAlignmentType(values []TitleAreaTextAlignmentType) []string {
|
func SerializeTitleAreaTextAlignmentType(values []TitleAreaTextAlignmentType) []string {
|
||||||
result := make([]string, len(values))
|
result := make([]string, len(values))
|
||||||
for i, v := range values {
|
for i, v := range values {
|
||||||
result[i] = v.String()
|
result[i] = v.String()
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,175 +1,190 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||||
)
|
)
|
||||||
|
|
||||||
// WebPartPosition
|
// WebPartPosition
|
||||||
type WebPartPosition struct {
|
type WebPartPosition struct {
|
||||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||||
additionalData map[string]interface{}
|
additionalData map[string]interface{}
|
||||||
// Indicates the identifier of the column where the web part is located.
|
// Indicates the identifier of the column where the web part is located.
|
||||||
columnId *float64
|
columnId *float64
|
||||||
// Indicates the horizontal section where the web part is located.
|
// Indicates the horizontal section where the web part is located.
|
||||||
horizontalSectionId *float64
|
horizontalSectionId *float64
|
||||||
// Indicates whether the web part is located in the vertical section.
|
// Indicates whether the web part is located in the vertical section.
|
||||||
isInVerticalSection *bool
|
isInVerticalSection *bool
|
||||||
// The OdataType property
|
// The OdataType property
|
||||||
odataType *string
|
odataType *string
|
||||||
// Index of the current web part. Represents the order of the web part in this column or section.
|
// Index of the current web part. Represents the order of the web part in this column or section.
|
||||||
webPartIndex *float64
|
webPartIndex *float64
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewWebPartPosition instantiates a new webPartPosition and sets the default values.
|
// NewWebPartPosition instantiates a new webPartPosition and sets the default values.
|
||||||
func NewWebPartPosition()(*WebPartPosition) {
|
func NewWebPartPosition() *WebPartPosition {
|
||||||
m := &WebPartPosition{
|
m := &WebPartPosition{}
|
||||||
}
|
m.SetAdditionalData(make(map[string]interface{}))
|
||||||
m.SetAdditionalData(make(map[string]interface{}));
|
return m
|
||||||
return m
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateWebPartPositionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
// CreateWebPartPositionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||||
func CreateWebPartPositionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
func CreateWebPartPositionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||||
return NewWebPartPosition(), nil
|
return NewWebPartPosition(), 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.
|
// 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 *WebPartPosition) GetAdditionalData()(map[string]interface{}) {
|
func (m *WebPartPosition) GetAdditionalData() map[string]interface{} {
|
||||||
return m.additionalData
|
return m.additionalData
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetColumnId gets the columnId property value. Indicates the identifier of the column where the web part is located.
|
// GetColumnId gets the columnId property value. Indicates the identifier of the column where the web part is located.
|
||||||
func (m *WebPartPosition) GetColumnId()(*float64) {
|
func (m *WebPartPosition) GetColumnId() *float64 {
|
||||||
return m.columnId
|
return m.columnId
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
// GetFieldDeserializers the deserialization information for the current model
|
||||||
func (m *WebPartPosition) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
func (m *WebPartPosition) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error)
|
||||||
res["columnId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["columnId"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetFloat64Value()
|
val, err := n.GetFloat64Value()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetColumnId(val)
|
m.SetColumnId(val)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
res["horizontalSectionId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["horizontalSectionId"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetFloat64Value()
|
val, err := n.GetFloat64Value()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetHorizontalSectionId(val)
|
m.SetHorizontalSectionId(val)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
res["isInVerticalSection"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["isInVerticalSection"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetBoolValue()
|
val, err := n.GetBoolValue()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetIsInVerticalSection(val)
|
m.SetIsInVerticalSection(val)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["@odata.type"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetStringValue()
|
val, err := n.GetStringValue()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetOdataType(val)
|
m.SetOdataType(val)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
res["webPartIndex"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
res["webPartIndex"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||||
val, err := n.GetFloat64Value()
|
val, err := n.GetFloat64Value()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if val != nil {
|
if val != nil {
|
||||||
m.SetWebPartIndex(val)
|
m.SetWebPartIndex(val)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetHorizontalSectionId gets the horizontalSectionId property value. Indicates the horizontal section where the web part is located.
|
// GetHorizontalSectionId gets the horizontalSectionId property value. Indicates the horizontal section where the web part is located.
|
||||||
func (m *WebPartPosition) GetHorizontalSectionId()(*float64) {
|
func (m *WebPartPosition) GetHorizontalSectionId() *float64 {
|
||||||
return m.horizontalSectionId
|
return m.horizontalSectionId
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetIsInVerticalSection gets the isInVerticalSection property value. Indicates whether the web part is located in the vertical section.
|
// GetIsInVerticalSection gets the isInVerticalSection property value. Indicates whether the web part is located in the vertical section.
|
||||||
func (m *WebPartPosition) GetIsInVerticalSection()(*bool) {
|
func (m *WebPartPosition) GetIsInVerticalSection() *bool {
|
||||||
return m.isInVerticalSection
|
return m.isInVerticalSection
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||||
func (m *WebPartPosition) GetOdataType()(*string) {
|
func (m *WebPartPosition) GetOdataType() *string {
|
||||||
return m.odataType
|
return m.odataType
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetWebPartIndex gets the webPartIndex property value. Index of the current web part. Represents the order of the web part in this column or section.
|
// GetWebPartIndex gets the webPartIndex property value. Index of the current web part. Represents the order of the web part in this column or section.
|
||||||
func (m *WebPartPosition) GetWebPartIndex()(*float64) {
|
func (m *WebPartPosition) GetWebPartIndex() *float64 {
|
||||||
return m.webPartIndex
|
return m.webPartIndex
|
||||||
}
|
}
|
||||||
|
|
||||||
// Serialize serializes information the current object
|
// Serialize serializes information the current object
|
||||||
func (m *WebPartPosition) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
func (m *WebPartPosition) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error {
|
||||||
{
|
{
|
||||||
err := writer.WriteFloat64Value("columnId", m.GetColumnId())
|
err := writer.WriteFloat64Value("columnId", m.GetColumnId())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err := writer.WriteFloat64Value("horizontalSectionId", m.GetHorizontalSectionId())
|
err := writer.WriteFloat64Value("horizontalSectionId", m.GetHorizontalSectionId())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err := writer.WriteBoolValue("isInVerticalSection", m.GetIsInVerticalSection())
|
err := writer.WriteBoolValue("isInVerticalSection", m.GetIsInVerticalSection())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err := writer.WriteFloat64Value("webPartIndex", m.GetWebPartIndex())
|
err := writer.WriteFloat64Value("webPartIndex", m.GetWebPartIndex())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
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.
|
// 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 *WebPartPosition) SetAdditionalData(value map[string]interface{})() {
|
func (m *WebPartPosition) SetAdditionalData(value map[string]interface{}) {
|
||||||
m.additionalData = value
|
m.additionalData = value
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetColumnId sets the columnId property value. Indicates the identifier of the column where the web part is located.
|
// SetColumnId sets the columnId property value. Indicates the identifier of the column where the web part is located.
|
||||||
func (m *WebPartPosition) SetColumnId(value *float64)() {
|
func (m *WebPartPosition) SetColumnId(value *float64) {
|
||||||
m.columnId = value
|
m.columnId = value
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetHorizontalSectionId sets the horizontalSectionId property value. Indicates the horizontal section where the web part is located.
|
// SetHorizontalSectionId sets the horizontalSectionId property value. Indicates the horizontal section where the web part is located.
|
||||||
func (m *WebPartPosition) SetHorizontalSectionId(value *float64)() {
|
func (m *WebPartPosition) SetHorizontalSectionId(value *float64) {
|
||||||
m.horizontalSectionId = value
|
m.horizontalSectionId = value
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetIsInVerticalSection sets the isInVerticalSection property value. Indicates whether the web part is located in the vertical section.
|
// SetIsInVerticalSection sets the isInVerticalSection property value. Indicates whether the web part is located in the vertical section.
|
||||||
func (m *WebPartPosition) SetIsInVerticalSection(value *bool)() {
|
func (m *WebPartPosition) SetIsInVerticalSection(value *bool) {
|
||||||
m.isInVerticalSection = value
|
m.isInVerticalSection = value
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||||
func (m *WebPartPosition) SetOdataType(value *string)() {
|
func (m *WebPartPosition) SetOdataType(value *string) {
|
||||||
m.odataType = value
|
m.odataType = value
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetWebPartIndex sets the webPartIndex property value. Index of the current web part. Represents the order of the web part in this column or section.
|
// SetWebPartIndex sets the webPartIndex property value. Index of the current web part. Represents the order of the web part in this column or section.
|
||||||
func (m *WebPartPosition) SetWebPartIndex(value *float64)() {
|
func (m *WebPartPosition) SetWebPartIndex(value *float64) {
|
||||||
m.webPartIndex = value
|
m.webPartIndex = value
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,21 +1,21 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||||
)
|
)
|
||||||
|
|
||||||
// WebPartPositionable
|
// WebPartPositionable
|
||||||
type WebPartPositionable interface {
|
type WebPartPositionable interface {
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||||
GetColumnId()(*float64)
|
GetColumnId() *float64
|
||||||
GetHorizontalSectionId()(*float64)
|
GetHorizontalSectionId() *float64
|
||||||
GetIsInVerticalSection()(*bool)
|
GetIsInVerticalSection() *bool
|
||||||
GetOdataType()(*string)
|
GetOdataType() *string
|
||||||
GetWebPartIndex()(*float64)
|
GetWebPartIndex() *float64
|
||||||
SetColumnId(value *float64)()
|
SetColumnId(value *float64)
|
||||||
SetHorizontalSectionId(value *float64)()
|
SetHorizontalSectionId(value *float64)
|
||||||
SetIsInVerticalSection(value *bool)()
|
SetIsInVerticalSection(value *bool)
|
||||||
SetOdataType(value *string)()
|
SetOdataType(value *string)
|
||||||
SetWebPartIndex(value *float64)()
|
SetWebPartIndex(value *float64)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user