Updates betaSDK/groups package

Removes backing store from model.
This commit is contained in:
Danny Adams 2023-01-25 08:36:04 -05:00
parent e9371379a6
commit 1d13f7d2df
110 changed files with 1120 additions and 1392 deletions

View File

@ -7,14 +7,15 @@ import (
// ItemSitesAddPostRequestBody provides operations to call the add method.
type ItemSitesAddPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The value property
value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Siteable
}
// NewItemSitesAddPostRequestBody instantiates a new ItemSitesAddPostRequestBody and sets the default values.
func NewItemSitesAddPostRequestBody()(*ItemSitesAddPostRequestBody) {
m := &ItemSitesAddPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -24,16 +25,7 @@ func CreateItemSitesAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2
}
// 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 *ItemSitesAddPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesAddPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -44,9 +36,9 @@ func (m *ItemSitesAddPostRequestBody) GetFieldDeserializers()(map[string]func(i8
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Site, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Siteable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Site))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Siteable)
}
m.SetValue(res)
}
@ -56,32 +48,33 @@ func (m *ItemSitesAddPostRequestBody) GetFieldDeserializers()(map[string]func(i8
}
// GetValue gets the value property value. The value property
func (m *ItemSitesAddPostRequestBody) GetValue()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Siteable) {
return m.GetBackingStore().Get("value");
return m.value
}
// Serialize serializes information the current object
func (m *ItemSitesAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
if m.GetValue() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
for i, v := range m.GetValue() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err := writer.WriteCollectionOfObjectValues("value", cast)
if err != nil {
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesAddPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesAddPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetValue sets the value property value. The value property
func (m *ItemSitesAddPostRequestBody) SetValue(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Siteable)() {
m.GetBackingStore().Set("value", value)
m.value = value
}

View File

@ -8,10 +8,7 @@ import (
// ItemSitesAddPostRequestBodyable
type ItemSitesAddPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetValue()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Siteable)
SetBackingStore(value BackingStore)()
SetValue(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Siteable)()
}

View File

@ -8,6 +8,8 @@ import (
// ItemSitesAddResponse provides operations to call the add method.
type ItemSitesAddResponse struct {
ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.BaseCollectionPaginationCountResponse
// The value property
value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Siteable
}
// NewItemSitesAddResponse instantiates a new ItemSitesAddResponse and sets the default values.
func NewItemSitesAddResponse()(*ItemSitesAddResponse) {
@ -29,9 +31,9 @@ func (m *ItemSitesAddResponse) GetFieldDeserializers()(map[string]func(i878a80d2
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Site, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Siteable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Site))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Siteable)
}
m.SetValue(res)
}
@ -41,7 +43,7 @@ func (m *ItemSitesAddResponse) GetFieldDeserializers()(map[string]func(i878a80d2
}
// GetValue gets the value property value. The value property
func (m *ItemSitesAddResponse) GetValue()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Siteable) {
return m.GetBackingStore().Get("value");
return m.value
}
// Serialize serializes information the current object
func (m *ItemSitesAddResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -52,8 +54,7 @@ func (m *ItemSitesAddResponse) Serialize(writer i878a80d2330e89d26896388a3f487ee
if m.GetValue() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
for i, v := range m.GetValue() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err = writer.WriteCollectionOfObjectValues("value", cast)
if err != nil {
@ -64,5 +65,5 @@ func (m *ItemSitesAddResponse) Serialize(writer i878a80d2330e89d26896388a3f487ee
}
// SetValue sets the value property value. The value property
func (m *ItemSitesAddResponse) SetValue(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Siteable)() {
m.GetBackingStore().Set("value", value)
m.value = value
}

View File

@ -8,6 +8,8 @@ import (
// ItemSitesDeltaResponse provides operations to call the delta method.
type ItemSitesDeltaResponse struct {
ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.BaseDeltaFunctionResponse
// The value property
value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Siteable
}
// NewItemSitesDeltaResponse instantiates a new ItemSitesDeltaResponse and sets the default values.
func NewItemSitesDeltaResponse()(*ItemSitesDeltaResponse) {
@ -29,9 +31,9 @@ func (m *ItemSitesDeltaResponse) GetFieldDeserializers()(map[string]func(i878a80
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Site, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Siteable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Site))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Siteable)
}
m.SetValue(res)
}
@ -41,7 +43,7 @@ func (m *ItemSitesDeltaResponse) GetFieldDeserializers()(map[string]func(i878a80
}
// GetValue gets the value property value. The value property
func (m *ItemSitesDeltaResponse) GetValue()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Siteable) {
return m.GetBackingStore().Get("value");
return m.value
}
// Serialize serializes information the current object
func (m *ItemSitesDeltaResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -52,8 +54,7 @@ func (m *ItemSitesDeltaResponse) Serialize(writer i878a80d2330e89d26896388a3f487
if m.GetValue() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
for i, v := range m.GetValue() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err = writer.WriteCollectionOfObjectValues("value", cast)
if err != nil {
@ -64,5 +65,5 @@ func (m *ItemSitesDeltaResponse) Serialize(writer i878a80d2330e89d26896388a3f487
}
// SetValue sets the value property value. The value property
func (m *ItemSitesDeltaResponse) SetValue(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.Siteable)() {
m.GetBackingStore().Set("value", value)
m.value = value
}

View File

@ -6,14 +6,15 @@ import (
// ItemSitesItemContentTypesAddCopyFromContentTypeHubPostRequestBody provides operations to call the addCopyFromContentTypeHub method.
type ItemSitesItemContentTypesAddCopyFromContentTypeHubPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The contentTypeId property
contentTypeId *string
}
// NewItemSitesItemContentTypesAddCopyFromContentTypeHubPostRequestBody instantiates a new ItemSitesItemContentTypesAddCopyFromContentTypeHubPostRequestBody and sets the default values.
func NewItemSitesItemContentTypesAddCopyFromContentTypeHubPostRequestBody()(*ItemSitesItemContentTypesAddCopyFromContentTypeHubPostRequestBody) {
m := &ItemSitesItemContentTypesAddCopyFromContentTypeHubPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,20 +24,11 @@ func CreateItemSitesItemContentTypesAddCopyFromContentTypeHubPostRequestBodyFrom
}
// 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 *ItemSitesItemContentTypesAddCopyFromContentTypeHubPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemContentTypesAddCopyFromContentTypeHubPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetContentTypeId gets the contentTypeId property value. The contentTypeId property
func (m *ItemSitesItemContentTypesAddCopyFromContentTypeHubPostRequestBody) GetContentTypeId()(*string) {
return m.GetBackingStore().Get("contentTypeId");
return m.contentTypeId
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemContentTypesAddCopyFromContentTypeHubPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -61,17 +53,19 @@ func (m *ItemSitesItemContentTypesAddCopyFromContentTypeHubPostRequestBody) Seri
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemContentTypesAddCopyFromContentTypeHubPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemContentTypesAddCopyFromContentTypeHubPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetContentTypeId sets the contentTypeId property value. The contentTypeId property
func (m *ItemSitesItemContentTypesAddCopyFromContentTypeHubPostRequestBody) SetContentTypeId(value *string)() {
m.GetBackingStore().Set("contentTypeId", value)
m.contentTypeId = value
}

View File

@ -7,10 +7,7 @@ import (
// ItemSitesItemContentTypesAddCopyFromContentTypeHubPostRequestBodyable
type ItemSitesItemContentTypesAddCopyFromContentTypeHubPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetContentTypeId()(*string)
SetBackingStore(value BackingStore)()
SetContentTypeId(value *string)()
}

View File

@ -6,14 +6,15 @@ import (
// ItemSitesItemContentTypesAddCopyPostRequestBody provides operations to call the addCopy method.
type ItemSitesItemContentTypesAddCopyPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The contentType property
contentType *string
}
// NewItemSitesItemContentTypesAddCopyPostRequestBody instantiates a new ItemSitesItemContentTypesAddCopyPostRequestBody and sets the default values.
func NewItemSitesItemContentTypesAddCopyPostRequestBody()(*ItemSitesItemContentTypesAddCopyPostRequestBody) {
m := &ItemSitesItemContentTypesAddCopyPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,20 +24,11 @@ func CreateItemSitesItemContentTypesAddCopyPostRequestBodyFromDiscriminatorValue
}
// 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 *ItemSitesItemContentTypesAddCopyPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemContentTypesAddCopyPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetContentType gets the contentType property value. The contentType property
func (m *ItemSitesItemContentTypesAddCopyPostRequestBody) GetContentType()(*string) {
return m.GetBackingStore().Get("contentType");
return m.contentType
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemContentTypesAddCopyPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -61,17 +53,19 @@ func (m *ItemSitesItemContentTypesAddCopyPostRequestBody) Serialize(writer i878a
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemContentTypesAddCopyPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemContentTypesAddCopyPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetContentType sets the contentType property value. The contentType property
func (m *ItemSitesItemContentTypesAddCopyPostRequestBody) SetContentType(value *string)() {
m.GetBackingStore().Set("contentType", value)
m.contentType = value
}

View File

@ -7,10 +7,7 @@ import (
// ItemSitesItemContentTypesAddCopyPostRequestBodyable
type ItemSitesItemContentTypesAddCopyPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetContentType()(*string)
SetBackingStore(value BackingStore)()
SetContentType(value *string)()
}

View File

@ -8,6 +8,8 @@ import (
// ItemSitesItemContentTypesGetCompatibleHubContentTypesResponse provides operations to call the getCompatibleHubContentTypes method.
type ItemSitesItemContentTypesGetCompatibleHubContentTypesResponse struct {
ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.BaseCollectionPaginationCountResponse
// The value property
value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentTypeable
}
// NewItemSitesItemContentTypesGetCompatibleHubContentTypesResponse instantiates a new ItemSitesItemContentTypesGetCompatibleHubContentTypesResponse and sets the default values.
func NewItemSitesItemContentTypesGetCompatibleHubContentTypesResponse()(*ItemSitesItemContentTypesGetCompatibleHubContentTypesResponse) {
@ -29,9 +31,9 @@ func (m *ItemSitesItemContentTypesGetCompatibleHubContentTypesResponse) GetField
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentType, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentTypeable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentType))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentTypeable)
}
m.SetValue(res)
}
@ -41,7 +43,7 @@ func (m *ItemSitesItemContentTypesGetCompatibleHubContentTypesResponse) GetField
}
// GetValue gets the value property value. The value property
func (m *ItemSitesItemContentTypesGetCompatibleHubContentTypesResponse) GetValue()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentTypeable) {
return m.GetBackingStore().Get("value");
return m.value
}
// Serialize serializes information the current object
func (m *ItemSitesItemContentTypesGetCompatibleHubContentTypesResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -52,8 +54,7 @@ func (m *ItemSitesItemContentTypesGetCompatibleHubContentTypesResponse) Serializ
if m.GetValue() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
for i, v := range m.GetValue() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err = writer.WriteCollectionOfObjectValues("value", cast)
if err != nil {
@ -64,5 +65,5 @@ func (m *ItemSitesItemContentTypesGetCompatibleHubContentTypesResponse) Serializ
}
// SetValue sets the value property value. The value property
func (m *ItemSitesItemContentTypesGetCompatibleHubContentTypesResponse) SetValue(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentTypeable)() {
m.GetBackingStore().Set("value", value)
m.value = value
}

View File

@ -6,14 +6,17 @@ import (
// ItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBody provides operations to call the associateWithHubSites method.
type ItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The hubSiteUrls property
hubSiteUrls []string
// The propagateToExistingLists property
propagateToExistingLists *bool
}
// NewItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBody instantiates a new ItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBody and sets the default values.
func NewItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBody()(*ItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBody) {
m := &ItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,16 +26,7 @@ func CreateItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBodyFrom
}
// 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 *ItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -65,11 +59,11 @@ func (m *ItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBody) GetF
}
// GetHubSiteUrls gets the hubSiteUrls property value. The hubSiteUrls property
func (m *ItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBody) GetHubSiteUrls()([]string) {
return m.GetBackingStore().Get("hubSiteUrls");
return m.hubSiteUrls
}
// GetPropagateToExistingLists gets the propagateToExistingLists property value. The propagateToExistingLists property
func (m *ItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBody) GetPropagateToExistingLists()(*bool) {
return m.GetBackingStore().Get("propagateToExistingLists");
return m.propagateToExistingLists
}
// Serialize serializes information the current object
func (m *ItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -85,21 +79,23 @@ func (m *ItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBody) Seri
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetHubSiteUrls sets the hubSiteUrls property value. The hubSiteUrls property
func (m *ItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBody) SetHubSiteUrls(value []string)() {
m.GetBackingStore().Set("hubSiteUrls", value)
m.hubSiteUrls = value
}
// SetPropagateToExistingLists sets the propagateToExistingLists property value. The propagateToExistingLists property
func (m *ItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBody) SetPropagateToExistingLists(value *bool)() {
m.GetBackingStore().Set("propagateToExistingLists", value)
m.propagateToExistingLists = value
}

View File

@ -7,12 +7,9 @@ import (
// ItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBodyable
type ItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetHubSiteUrls()([]string)
GetPropagateToExistingLists()(*bool)
SetBackingStore(value BackingStore)()
SetHubSiteUrls(value []string)()
SetPropagateToExistingLists(value *bool)()
}

View File

@ -7,14 +7,17 @@ import (
// ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBody provides operations to call the copyToDefaultContentLocation method.
type ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The destinationFileName property
destinationFileName *string
// The sourceFile property
sourceFile ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemReferenceable
}
// NewItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBody instantiates a new ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBody and sets the default values.
func NewItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBody()(*ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) {
m := &ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -24,20 +27,11 @@ func CreateItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestB
}
// 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 *ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetDestinationFileName gets the destinationFileName property value. The destinationFileName property
func (m *ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) GetDestinationFileName()(*string) {
return m.GetBackingStore().Get("destinationFileName");
return m.destinationFileName
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -58,7 +52,7 @@ func (m *ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBod
return err
}
if val != nil {
m.SetSourceFile(val.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemReference))
m.SetSourceFile(val.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemReferenceable))
}
return nil
}
@ -66,7 +60,7 @@ func (m *ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBod
}
// GetSourceFile gets the sourceFile property value. The sourceFile property
func (m *ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) GetSourceFile()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemReferenceable) {
return m.GetBackingStore().Get("sourceFile");
return m.sourceFile
}
// Serialize serializes information the current object
func (m *ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -82,21 +76,23 @@ func (m *ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBod
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetDestinationFileName sets the destinationFileName property value. The destinationFileName property
func (m *ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) SetDestinationFileName(value *string)() {
m.GetBackingStore().Set("destinationFileName", value)
m.destinationFileName = value
}
// SetSourceFile sets the sourceFile property value. The sourceFile property
func (m *ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) SetSourceFile(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemReferenceable)() {
m.GetBackingStore().Set("sourceFile", value)
m.sourceFile = value
}

View File

@ -8,12 +8,9 @@ import (
// ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBodyable
type ItemSitesItemContentTypesItemCopyToDefaultContentLocationPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetDestinationFileName()(*string)
GetSourceFile()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemReferenceable)
SetBackingStore(value BackingStore)()
SetDestinationFileName(value *string)()
SetSourceFile(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemReferenceable)()
}

View File

@ -6,14 +6,15 @@ import (
// ItemSitesItemContentTypesItemIsPublishedResponse provides operations to call the isPublished method.
type ItemSitesItemContentTypesItemIsPublishedResponse struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The value property
value *bool
}
// NewItemSitesItemContentTypesItemIsPublishedResponse instantiates a new ItemSitesItemContentTypesItemIsPublishedResponse and sets the default values.
func NewItemSitesItemContentTypesItemIsPublishedResponse()(*ItemSitesItemContentTypesItemIsPublishedResponse) {
m := &ItemSitesItemContentTypesItemIsPublishedResponse{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,16 +24,7 @@ func CreateItemSitesItemContentTypesItemIsPublishedResponseFromDiscriminatorValu
}
// 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 *ItemSitesItemContentTypesItemIsPublishedResponse) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemContentTypesItemIsPublishedResponse) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemContentTypesItemIsPublishedResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -51,7 +43,7 @@ func (m *ItemSitesItemContentTypesItemIsPublishedResponse) GetFieldDeserializers
}
// GetValue gets the value property value. The value property
func (m *ItemSitesItemContentTypesItemIsPublishedResponse) GetValue()(*bool) {
return m.GetBackingStore().Get("value");
return m.value
}
// Serialize serializes information the current object
func (m *ItemSitesItemContentTypesItemIsPublishedResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -61,17 +53,19 @@ func (m *ItemSitesItemContentTypesItemIsPublishedResponse) Serialize(writer i878
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemContentTypesItemIsPublishedResponse) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemContentTypesItemIsPublishedResponse) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetValue sets the value property value. The value property
func (m *ItemSitesItemContentTypesItemIsPublishedResponse) SetValue(value *bool)() {
m.GetBackingStore().Set("value", value)
m.value = value
}

View File

@ -7,10 +7,7 @@ import (
// ItemSitesItemContentTypesItemIsPublishedResponseable
type ItemSitesItemContentTypesItemIsPublishedResponseable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetValue()(*bool)
SetBackingStore(value BackingStore)()
SetValue(value *bool)()
}

View File

@ -8,6 +8,8 @@ import (
// ItemSitesItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse provides operations to call the getActivitiesByInterval method.
type ItemSitesItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse struct {
ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.BaseCollectionPaginationCountResponse
// The value property
value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemActivityStatable
}
// NewItemSitesItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse instantiates a new ItemSitesItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values.
func NewItemSitesItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse()(*ItemSitesItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse) {
@ -29,9 +31,9 @@ func (m *ItemSitesItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWit
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemActivityStat, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemActivityStatable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemActivityStat))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemActivityStatable)
}
m.SetValue(res)
}
@ -41,7 +43,7 @@ func (m *ItemSitesItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWit
}
// GetValue gets the value property value. The value property
func (m *ItemSitesItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse) GetValue()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemActivityStatable) {
return m.GetBackingStore().Get("value");
return m.value
}
// Serialize serializes information the current object
func (m *ItemSitesItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -52,8 +54,7 @@ func (m *ItemSitesItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWit
if m.GetValue() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
for i, v := range m.GetValue() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err = writer.WriteCollectionOfObjectValues("value", cast)
if err != nil {
@ -64,5 +65,5 @@ func (m *ItemSitesItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWit
}
// SetValue sets the value property value. The value property
func (m *ItemSitesItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse) SetValue(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemActivityStatable)() {
m.GetBackingStore().Set("value", value)
m.value = value
}

View File

@ -8,6 +8,8 @@ import (
// ItemSitesItemGetApplicableContentTypesForListWithListIdResponse provides operations to call the getApplicableContentTypesForList method.
type ItemSitesItemGetApplicableContentTypesForListWithListIdResponse struct {
ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.BaseCollectionPaginationCountResponse
// The value property
value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentTypeable
}
// NewItemSitesItemGetApplicableContentTypesForListWithListIdResponse instantiates a new ItemSitesItemGetApplicableContentTypesForListWithListIdResponse and sets the default values.
func NewItemSitesItemGetApplicableContentTypesForListWithListIdResponse()(*ItemSitesItemGetApplicableContentTypesForListWithListIdResponse) {
@ -29,9 +31,9 @@ func (m *ItemSitesItemGetApplicableContentTypesForListWithListIdResponse) GetFie
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentType, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentTypeable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentType))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentTypeable)
}
m.SetValue(res)
}
@ -41,7 +43,7 @@ func (m *ItemSitesItemGetApplicableContentTypesForListWithListIdResponse) GetFie
}
// GetValue gets the value property value. The value property
func (m *ItemSitesItemGetApplicableContentTypesForListWithListIdResponse) GetValue()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentTypeable) {
return m.GetBackingStore().Get("value");
return m.value
}
// Serialize serializes information the current object
func (m *ItemSitesItemGetApplicableContentTypesForListWithListIdResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -52,8 +54,7 @@ func (m *ItemSitesItemGetApplicableContentTypesForListWithListIdResponse) Serial
if m.GetValue() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
for i, v := range m.GetValue() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err = writer.WriteCollectionOfObjectValues("value", cast)
if err != nil {
@ -64,5 +65,5 @@ func (m *ItemSitesItemGetApplicableContentTypesForListWithListIdResponse) Serial
}
// SetValue sets the value property value. The value property
func (m *ItemSitesItemGetApplicableContentTypesForListWithListIdResponse) SetValue(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentTypeable)() {
m.GetBackingStore().Set("value", value)
m.value = value
}

View File

@ -7,14 +7,19 @@ import (
// ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody provides operations to call the evaluate method.
type ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The evaluationInput property
evaluationInput ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DlpEvaluationInputable
// The notificationInfo property
notificationInfo ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DlpNotificationable
// The target property
target *string
}
// NewItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody instantiates a new ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody and sets the default values.
func NewItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody()(*ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) {
m := &ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -24,20 +29,11 @@ func CreateItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluateP
}
// 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 *ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetEvaluationInput gets the evaluationInput property value. The evaluationInput property
func (m *ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) GetEvaluationInput()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DlpEvaluationInputable) {
return m.GetBackingStore().Get("evaluationInput");
return m.evaluationInput
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -48,7 +44,7 @@ func (m *ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePos
return err
}
if val != nil {
m.SetEvaluationInput(val.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DlpEvaluationInput))
m.SetEvaluationInput(val.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DlpEvaluationInputable))
}
return nil
}
@ -58,7 +54,7 @@ func (m *ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePos
return err
}
if val != nil {
m.SetNotificationInfo(val.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DlpNotification))
m.SetNotificationInfo(val.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DlpNotificationable))
}
return nil
}
@ -76,11 +72,11 @@ func (m *ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePos
}
// GetNotificationInfo gets the notificationInfo property value. The notificationInfo property
func (m *ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) GetNotificationInfo()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DlpNotificationable) {
return m.GetBackingStore().Get("notificationInfo");
return m.notificationInfo
}
// GetTarget gets the target property value. The target property
func (m *ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) GetTarget()(*string) {
return m.GetBackingStore().Get("target");
return m.target
}
// Serialize serializes information the current object
func (m *ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -102,25 +98,27 @@ func (m *ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePos
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetEvaluationInput sets the evaluationInput property value. The evaluationInput property
func (m *ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) SetEvaluationInput(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DlpEvaluationInputable)() {
m.GetBackingStore().Set("evaluationInput", value)
m.evaluationInput = value
}
// SetNotificationInfo sets the notificationInfo property value. The notificationInfo property
func (m *ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) SetNotificationInfo(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DlpNotificationable)() {
m.GetBackingStore().Set("notificationInfo", value)
m.notificationInfo = value
}
// SetTarget sets the target property value. The target property
func (m *ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) SetTarget(value *string)() {
m.GetBackingStore().Set("target", value)
m.target = value
}

View File

@ -8,13 +8,10 @@ import (
// ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBodyable
type ItemSitesItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetEvaluationInput()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DlpEvaluationInputable)
GetNotificationInfo()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DlpNotificationable)
GetTarget()(*string)
SetBackingStore(value BackingStore)()
SetEvaluationInput(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DlpEvaluationInputable)()
SetNotificationInfo(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DlpNotificationable)()
SetTarget(value *string)()

View File

@ -6,14 +6,17 @@ import (
// ItemSitesItemInformationProtectionDecryptBufferPostRequestBody provides operations to call the decryptBuffer method.
type ItemSitesItemInformationProtectionDecryptBufferPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The encryptedBuffer property
encryptedBuffer []byte
// The publishingLicense property
publishingLicense []byte
}
// NewItemSitesItemInformationProtectionDecryptBufferPostRequestBody instantiates a new ItemSitesItemInformationProtectionDecryptBufferPostRequestBody and sets the default values.
func NewItemSitesItemInformationProtectionDecryptBufferPostRequestBody()(*ItemSitesItemInformationProtectionDecryptBufferPostRequestBody) {
m := &ItemSitesItemInformationProtectionDecryptBufferPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,20 +26,11 @@ func CreateItemSitesItemInformationProtectionDecryptBufferPostRequestBodyFromDis
}
// 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 *ItemSitesItemInformationProtectionDecryptBufferPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionDecryptBufferPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetEncryptedBuffer gets the encryptedBuffer property value. The encryptedBuffer property
func (m *ItemSitesItemInformationProtectionDecryptBufferPostRequestBody) GetEncryptedBuffer()([]byte) {
return m.GetBackingStore().Get("encryptedBuffer");
return m.encryptedBuffer
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemInformationProtectionDecryptBufferPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -65,7 +59,7 @@ func (m *ItemSitesItemInformationProtectionDecryptBufferPostRequestBody) GetFiel
}
// GetPublishingLicense gets the publishingLicense property value. The publishingLicense property
func (m *ItemSitesItemInformationProtectionDecryptBufferPostRequestBody) GetPublishingLicense()([]byte) {
return m.GetBackingStore().Get("publishingLicense");
return m.publishingLicense
}
// Serialize serializes information the current object
func (m *ItemSitesItemInformationProtectionDecryptBufferPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -81,21 +75,23 @@ func (m *ItemSitesItemInformationProtectionDecryptBufferPostRequestBody) Seriali
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemInformationProtectionDecryptBufferPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionDecryptBufferPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetEncryptedBuffer sets the encryptedBuffer property value. The encryptedBuffer property
func (m *ItemSitesItemInformationProtectionDecryptBufferPostRequestBody) SetEncryptedBuffer(value []byte)() {
m.GetBackingStore().Set("encryptedBuffer", value)
m.encryptedBuffer = value
}
// SetPublishingLicense sets the publishingLicense property value. The publishingLicense property
func (m *ItemSitesItemInformationProtectionDecryptBufferPostRequestBody) SetPublishingLicense(value []byte)() {
m.GetBackingStore().Set("publishingLicense", value)
m.publishingLicense = value
}

View File

@ -7,12 +7,9 @@ import (
// ItemSitesItemInformationProtectionDecryptBufferPostRequestBodyable
type ItemSitesItemInformationProtectionDecryptBufferPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetEncryptedBuffer()([]byte)
GetPublishingLicense()([]byte)
SetBackingStore(value BackingStore)()
SetEncryptedBuffer(value []byte)()
SetPublishingLicense(value []byte)()
}

View File

@ -7,14 +7,17 @@ import (
// ItemSitesItemInformationProtectionEncryptBufferPostRequestBody provides operations to call the encryptBuffer method.
type ItemSitesItemInformationProtectionEncryptBufferPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The buffer property
buffer []byte
// The labelId property
labelId *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID
}
// NewItemSitesItemInformationProtectionEncryptBufferPostRequestBody instantiates a new ItemSitesItemInformationProtectionEncryptBufferPostRequestBody and sets the default values.
func NewItemSitesItemInformationProtectionEncryptBufferPostRequestBody()(*ItemSitesItemInformationProtectionEncryptBufferPostRequestBody) {
m := &ItemSitesItemInformationProtectionEncryptBufferPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -24,20 +27,11 @@ func CreateItemSitesItemInformationProtectionEncryptBufferPostRequestBodyFromDis
}
// 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 *ItemSitesItemInformationProtectionEncryptBufferPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionEncryptBufferPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetBuffer gets the buffer property value. The buffer property
func (m *ItemSitesItemInformationProtectionEncryptBufferPostRequestBody) GetBuffer()([]byte) {
return m.GetBackingStore().Get("buffer");
return m.buffer
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemInformationProtectionEncryptBufferPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -66,7 +60,7 @@ func (m *ItemSitesItemInformationProtectionEncryptBufferPostRequestBody) GetFiel
}
// GetLabelId gets the labelId property value. The labelId property
func (m *ItemSitesItemInformationProtectionEncryptBufferPostRequestBody) GetLabelId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) {
return m.GetBackingStore().Get("labelId");
return m.labelId
}
// Serialize serializes information the current object
func (m *ItemSitesItemInformationProtectionEncryptBufferPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -82,21 +76,23 @@ func (m *ItemSitesItemInformationProtectionEncryptBufferPostRequestBody) Seriali
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemInformationProtectionEncryptBufferPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionEncryptBufferPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetBuffer sets the buffer property value. The buffer property
func (m *ItemSitesItemInformationProtectionEncryptBufferPostRequestBody) SetBuffer(value []byte)() {
m.GetBackingStore().Set("buffer", value)
m.buffer = value
}
// SetLabelId sets the labelId property value. The labelId property
func (m *ItemSitesItemInformationProtectionEncryptBufferPostRequestBody) SetLabelId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() {
m.GetBackingStore().Set("labelId", value)
m.labelId = value
}

View File

@ -8,12 +8,9 @@ import (
// ItemSitesItemInformationProtectionEncryptBufferPostRequestBodyable
type ItemSitesItemInformationProtectionEncryptBufferPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetBuffer()([]byte)
GetLabelId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)
SetBackingStore(value BackingStore)()
SetBuffer(value []byte)()
SetLabelId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)()
}

View File

@ -7,14 +7,17 @@ import (
// ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody provides operations to call the evaluateApplication method.
type ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The contentInfo property
contentInfo ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable
// The labelingOptions property
labelingOptions ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.LabelingOptionsable
}
// NewItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody instantiates a new ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody and sets the default values.
func NewItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody()(*ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody) {
m := &ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -24,20 +27,11 @@ func CreateItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPost
}
// 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 *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetContentInfo gets the contentInfo property value. The contentInfo property
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody) GetContentInfo()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable) {
return m.GetBackingStore().Get("contentInfo");
return m.contentInfo
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -48,7 +42,7 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRe
return err
}
if val != nil {
m.SetContentInfo(val.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfo))
m.SetContentInfo(val.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable))
}
return nil
}
@ -58,7 +52,7 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRe
return err
}
if val != nil {
m.SetLabelingOptions(val.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.LabelingOptions))
m.SetLabelingOptions(val.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.LabelingOptionsable))
}
return nil
}
@ -66,7 +60,7 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRe
}
// GetLabelingOptions gets the labelingOptions property value. The labelingOptions property
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody) GetLabelingOptions()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.LabelingOptionsable) {
return m.GetBackingStore().Get("labelingOptions");
return m.labelingOptions
}
// Serialize serializes information the current object
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -82,21 +76,23 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRe
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetContentInfo sets the contentInfo property value. The contentInfo property
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody) SetContentInfo(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable)() {
m.GetBackingStore().Set("contentInfo", value)
m.contentInfo = value
}
// SetLabelingOptions sets the labelingOptions property value. The labelingOptions property
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody) SetLabelingOptions(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.LabelingOptionsable)() {
m.GetBackingStore().Set("labelingOptions", value)
m.labelingOptions = value
}

View File

@ -8,12 +8,9 @@ import (
// ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBodyable
type ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetContentInfo()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable)
GetLabelingOptions()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.LabelingOptionsable)
SetBackingStore(value BackingStore)()
SetContentInfo(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable)()
SetLabelingOptions(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.LabelingOptionsable)()
}

View File

@ -8,6 +8,8 @@ import (
// ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationResponse provides operations to call the evaluateApplication method.
type ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationResponse struct {
ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.BaseCollectionPaginationCountResponse
// The value property
value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionActionable
}
// NewItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationResponse instantiates a new ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationResponse and sets the default values.
func NewItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationResponse()(*ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationResponse) {
@ -29,9 +31,9 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationRespon
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionAction, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionActionable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionAction))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionActionable)
}
m.SetValue(res)
}
@ -41,7 +43,7 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationRespon
}
// GetValue gets the value property value. The value property
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationResponse) GetValue()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionActionable) {
return m.GetBackingStore().Get("value");
return m.value
}
// Serialize serializes information the current object
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -52,8 +54,7 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationRespon
if m.GetValue() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
for i, v := range m.GetValue() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err = writer.WriteCollectionOfObjectValues("value", cast)
if err != nil {
@ -64,5 +65,5 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationRespon
}
// SetValue sets the value property value. The value property
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateApplicationResponse) SetValue(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionActionable)() {
m.GetBackingStore().Set("value", value)
m.value = value
}

View File

@ -7,14 +7,17 @@ import (
// ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody provides operations to call the evaluateClassificationResults method.
type ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The classificationResults property
classificationResults []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ClassificationResultable
// The contentInfo property
contentInfo ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable
}
// NewItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody instantiates a new ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody and sets the default values.
func NewItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody()(*ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody) {
m := &ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -24,24 +27,15 @@ func CreateItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationR
}
// 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 *ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetClassificationResults gets the classificationResults property value. The classificationResults property
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody) GetClassificationResults()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ClassificationResultable) {
return m.GetBackingStore().Get("classificationResults");
return m.classificationResults
}
// GetContentInfo gets the contentInfo property value. The contentInfo property
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody) GetContentInfo()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable) {
return m.GetBackingStore().Get("contentInfo");
return m.contentInfo
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -52,9 +46,9 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationRes
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ClassificationResult, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ClassificationResultable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ClassificationResult))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ClassificationResultable)
}
m.SetClassificationResults(res)
}
@ -66,7 +60,7 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationRes
return err
}
if val != nil {
m.SetContentInfo(val.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfo))
m.SetContentInfo(val.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable))
}
return nil
}
@ -77,8 +71,7 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationRes
if m.GetClassificationResults() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetClassificationResults()))
for i, v := range m.GetClassificationResults() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err := writer.WriteCollectionOfObjectValues("classificationResults", cast)
if err != nil {
@ -91,21 +84,23 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationRes
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetClassificationResults sets the classificationResults property value. The classificationResults property
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody) SetClassificationResults(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ClassificationResultable)() {
m.GetBackingStore().Set("classificationResults", value)
m.classificationResults = value
}
// SetContentInfo sets the contentInfo property value. The contentInfo property
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody) SetContentInfo(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable)() {
m.GetBackingStore().Set("contentInfo", value)
m.contentInfo = value
}

View File

@ -8,12 +8,9 @@ import (
// ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBodyable
type ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetClassificationResults()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ClassificationResultable)
GetContentInfo()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable)
SetBackingStore(value BackingStore)()
SetClassificationResults(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ClassificationResultable)()
SetContentInfo(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable)()
}

View File

@ -8,6 +8,8 @@ import (
// ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse provides operations to call the evaluateClassificationResults method.
type ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse struct {
ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.BaseCollectionPaginationCountResponse
// The value property
value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionActionable
}
// NewItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse instantiates a new ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse and sets the default values.
func NewItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse()(*ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse) {
@ -29,9 +31,9 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationRes
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionAction, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionActionable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionAction))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionActionable)
}
m.SetValue(res)
}
@ -41,7 +43,7 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationRes
}
// GetValue gets the value property value. The value property
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse) GetValue()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionActionable) {
return m.GetBackingStore().Get("value");
return m.value
}
// Serialize serializes information the current object
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -52,8 +54,7 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationRes
if m.GetValue() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
for i, v := range m.GetValue() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err = writer.WriteCollectionOfObjectValues("value", cast)
if err != nil {
@ -64,5 +65,5 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationRes
}
// SetValue sets the value property value. The value property
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse) SetValue(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionActionable)() {
m.GetBackingStore().Set("value", value)
m.value = value
}

View File

@ -7,14 +7,17 @@ import (
// ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody provides operations to call the evaluateRemoval method.
type ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The contentInfo property
contentInfo ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable
// The downgradeJustification property
downgradeJustification ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DowngradeJustificationable
}
// NewItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody instantiates a new ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody and sets the default values.
func NewItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody()(*ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody) {
m := &ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -24,24 +27,15 @@ func CreateItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequ
}
// 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 *ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetContentInfo gets the contentInfo property value. The contentInfo property
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody) GetContentInfo()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable) {
return m.GetBackingStore().Get("contentInfo");
return m.contentInfo
}
// GetDowngradeJustification gets the downgradeJustification property value. The downgradeJustification property
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody) GetDowngradeJustification()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DowngradeJustificationable) {
return m.GetBackingStore().Get("downgradeJustification");
return m.downgradeJustification
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -52,7 +46,7 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostReques
return err
}
if val != nil {
m.SetContentInfo(val.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfo))
m.SetContentInfo(val.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable))
}
return nil
}
@ -62,7 +56,7 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostReques
return err
}
if val != nil {
m.SetDowngradeJustification(val.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DowngradeJustification))
m.SetDowngradeJustification(val.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DowngradeJustificationable))
}
return nil
}
@ -82,21 +76,23 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostReques
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetContentInfo sets the contentInfo property value. The contentInfo property
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody) SetContentInfo(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable)() {
m.GetBackingStore().Set("contentInfo", value)
m.contentInfo = value
}
// SetDowngradeJustification sets the downgradeJustification property value. The downgradeJustification property
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody) SetDowngradeJustification(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DowngradeJustificationable)() {
m.GetBackingStore().Set("downgradeJustification", value)
m.downgradeJustification = value
}

View File

@ -8,12 +8,9 @@ import (
// ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBodyable
type ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetContentInfo()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable)
GetDowngradeJustification()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DowngradeJustificationable)
SetBackingStore(value BackingStore)()
SetContentInfo(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable)()
SetDowngradeJustification(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DowngradeJustificationable)()
}

View File

@ -8,6 +8,8 @@ import (
// ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalResponse provides operations to call the evaluateRemoval method.
type ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalResponse struct {
ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.BaseCollectionPaginationCountResponse
// The value property
value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionActionable
}
// NewItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalResponse instantiates a new ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalResponse and sets the default values.
func NewItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalResponse()(*ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalResponse) {
@ -29,9 +31,9 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalResponse)
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionAction, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionActionable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionAction))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionActionable)
}
m.SetValue(res)
}
@ -41,7 +43,7 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalResponse)
}
// GetValue gets the value property value. The value property
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalResponse) GetValue()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionActionable) {
return m.GetBackingStore().Get("value");
return m.value
}
// Serialize serializes information the current object
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -52,8 +54,7 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalResponse)
if m.GetValue() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
for i, v := range m.GetValue() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err = writer.WriteCollectionOfObjectValues("value", cast)
if err != nil {
@ -64,5 +65,5 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalResponse)
}
// SetValue sets the value property value. The value property
func (m *ItemSitesItemInformationProtectionPolicyLabelsEvaluateRemovalResponse) SetValue(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.InformationProtectionActionable)() {
m.GetBackingStore().Set("value", value)
m.value = value
}

View File

@ -7,14 +7,15 @@ import (
// ItemSitesItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody provides operations to call the extractLabel method.
type ItemSitesItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The contentInfo property
contentInfo ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable
}
// NewItemSitesItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody instantiates a new ItemSitesItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody and sets the default values.
func NewItemSitesItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody()(*ItemSitesItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody) {
m := &ItemSitesItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -24,20 +25,11 @@ func CreateItemSitesItemInformationProtectionPolicyLabelsExtractLabelPostRequest
}
// 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 *ItemSitesItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetContentInfo gets the contentInfo property value. The contentInfo property
func (m *ItemSitesItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody) GetContentInfo()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable) {
return m.GetBackingStore().Get("contentInfo");
return m.contentInfo
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -48,7 +40,7 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsExtractLabelPostRequestBo
return err
}
if val != nil {
m.SetContentInfo(val.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfo))
m.SetContentInfo(val.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable))
}
return nil
}
@ -62,17 +54,19 @@ func (m *ItemSitesItemInformationProtectionPolicyLabelsExtractLabelPostRequestBo
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetContentInfo sets the contentInfo property value. The contentInfo property
func (m *ItemSitesItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody) SetContentInfo(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable)() {
m.GetBackingStore().Set("contentInfo", value)
m.contentInfo = value
}

View File

@ -8,10 +8,7 @@ import (
// ItemSitesItemInformationProtectionPolicyLabelsExtractLabelPostRequestBodyable
type ItemSitesItemInformationProtectionPolicyLabelsExtractLabelPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetContentInfo()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable)
SetBackingStore(value BackingStore)()
SetContentInfo(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentInfoable)()
}

View File

@ -7,14 +7,17 @@ import (
// ItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestBody provides operations to call the evaluate method.
type ItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The currentLabel property
currentLabel ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.CurrentLabelable
// The discoveredSensitiveTypes property
discoveredSensitiveTypes []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DiscoveredSensitiveTypeable
}
// NewItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestBody instantiates a new ItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestBody and sets the default values.
func NewItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestBody()(*ItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestBody) {
m := &ItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -24,24 +27,15 @@ func CreateItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostReques
}
// 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 *ItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetCurrentLabel gets the currentLabel property value. The currentLabel property
func (m *ItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestBody) GetCurrentLabel()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.CurrentLabelable) {
return m.GetBackingStore().Get("currentLabel");
return m.currentLabel
}
// GetDiscoveredSensitiveTypes gets the discoveredSensitiveTypes property value. The discoveredSensitiveTypes property
func (m *ItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestBody) GetDiscoveredSensitiveTypes()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DiscoveredSensitiveTypeable) {
return m.GetBackingStore().Get("discoveredSensitiveTypes");
return m.discoveredSensitiveTypes
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -52,7 +46,7 @@ func (m *ItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestB
return err
}
if val != nil {
m.SetCurrentLabel(val.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.CurrentLabel))
m.SetCurrentLabel(val.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.CurrentLabelable))
}
return nil
}
@ -62,9 +56,9 @@ func (m *ItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestB
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DiscoveredSensitiveType, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DiscoveredSensitiveTypeable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DiscoveredSensitiveType))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DiscoveredSensitiveTypeable)
}
m.SetDiscoveredSensitiveTypes(res)
}
@ -83,29 +77,30 @@ func (m *ItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestB
if m.GetDiscoveredSensitiveTypes() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetDiscoveredSensitiveTypes()))
for i, v := range m.GetDiscoveredSensitiveTypes() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err := writer.WriteCollectionOfObjectValues("discoveredSensitiveTypes", cast)
if err != nil {
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetCurrentLabel sets the currentLabel property value. The currentLabel property
func (m *ItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestBody) SetCurrentLabel(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.CurrentLabelable)() {
m.GetBackingStore().Set("currentLabel", value)
m.currentLabel = value
}
// SetDiscoveredSensitiveTypes sets the discoveredSensitiveTypes property value. The discoveredSensitiveTypes property
func (m *ItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestBody) SetDiscoveredSensitiveTypes(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DiscoveredSensitiveTypeable)() {
m.GetBackingStore().Set("discoveredSensitiveTypes", value)
m.discoveredSensitiveTypes = value
}

View File

@ -8,12 +8,9 @@ import (
// ItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestBodyable
type ItemSitesItemInformationProtectionSensitivityLabelsEvaluatePostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetCurrentLabel()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.CurrentLabelable)
GetDiscoveredSensitiveTypes()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DiscoveredSensitiveTypeable)
SetBackingStore(value BackingStore)()
SetCurrentLabel(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.CurrentLabelable)()
SetDiscoveredSensitiveTypes(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DiscoveredSensitiveTypeable)()
}

View File

@ -7,14 +7,17 @@ import (
// ItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluatePostRequestBody provides operations to call the evaluate method.
type ItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluatePostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The currentLabel property
currentLabel ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.CurrentLabelable
// The discoveredSensitiveTypes property
discoveredSensitiveTypes []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DiscoveredSensitiveTypeable
}
// NewItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluatePostRequestBody instantiates a new ItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluatePostRequestBody and sets the default values.
func NewItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluatePostRequestBody()(*ItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluatePostRequestBody) {
m := &ItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluatePostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -24,24 +27,15 @@ func CreateItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvalu
}
// 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 *ItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluatePostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluatePostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetCurrentLabel gets the currentLabel property value. The currentLabel property
func (m *ItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluatePostRequestBody) GetCurrentLabel()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.CurrentLabelable) {
return m.GetBackingStore().Get("currentLabel");
return m.currentLabel
}
// GetDiscoveredSensitiveTypes gets the discoveredSensitiveTypes property value. The discoveredSensitiveTypes property
func (m *ItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluatePostRequestBody) GetDiscoveredSensitiveTypes()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DiscoveredSensitiveTypeable) {
return m.GetBackingStore().Get("discoveredSensitiveTypes");
return m.discoveredSensitiveTypes
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluatePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -52,7 +46,7 @@ func (m *ItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluat
return err
}
if val != nil {
m.SetCurrentLabel(val.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.CurrentLabel))
m.SetCurrentLabel(val.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.CurrentLabelable))
}
return nil
}
@ -62,9 +56,9 @@ func (m *ItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluat
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DiscoveredSensitiveType, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DiscoveredSensitiveTypeable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DiscoveredSensitiveType))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DiscoveredSensitiveTypeable)
}
m.SetDiscoveredSensitiveTypes(res)
}
@ -83,29 +77,30 @@ func (m *ItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluat
if m.GetDiscoveredSensitiveTypes() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetDiscoveredSensitiveTypes()))
for i, v := range m.GetDiscoveredSensitiveTypes() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err := writer.WriteCollectionOfObjectValues("discoveredSensitiveTypes", cast)
if err != nil {
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluatePostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluatePostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetCurrentLabel sets the currentLabel property value. The currentLabel property
func (m *ItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluatePostRequestBody) SetCurrentLabel(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.CurrentLabelable)() {
m.GetBackingStore().Set("currentLabel", value)
m.currentLabel = value
}
// SetDiscoveredSensitiveTypes sets the discoveredSensitiveTypes property value. The discoveredSensitiveTypes property
func (m *ItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluatePostRequestBody) SetDiscoveredSensitiveTypes(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DiscoveredSensitiveTypeable)() {
m.GetBackingStore().Set("discoveredSensitiveTypes", value)
m.discoveredSensitiveTypes = value
}

View File

@ -8,12 +8,9 @@ import (
// ItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluatePostRequestBodyable
type ItemSitesItemInformationProtectionSensitivityLabelsItemSublabelsEvaluatePostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetCurrentLabel()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.CurrentLabelable)
GetDiscoveredSensitiveTypes()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DiscoveredSensitiveTypeable)
SetBackingStore(value BackingStore)()
SetCurrentLabel(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.CurrentLabelable)()
SetDiscoveredSensitiveTypes(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DiscoveredSensitiveTypeable)()
}

View File

@ -6,14 +6,15 @@ import (
// ItemSitesItemInformationProtectionSignDigestPostRequestBody provides operations to call the signDigest method.
type ItemSitesItemInformationProtectionSignDigestPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The digest property
digest []byte
}
// NewItemSitesItemInformationProtectionSignDigestPostRequestBody instantiates a new ItemSitesItemInformationProtectionSignDigestPostRequestBody and sets the default values.
func NewItemSitesItemInformationProtectionSignDigestPostRequestBody()(*ItemSitesItemInformationProtectionSignDigestPostRequestBody) {
m := &ItemSitesItemInformationProtectionSignDigestPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,20 +24,11 @@ func CreateItemSitesItemInformationProtectionSignDigestPostRequestBodyFromDiscri
}
// 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 *ItemSitesItemInformationProtectionSignDigestPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionSignDigestPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetDigest gets the digest property value. The digest property
func (m *ItemSitesItemInformationProtectionSignDigestPostRequestBody) GetDigest()([]byte) {
return m.GetBackingStore().Get("digest");
return m.digest
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemInformationProtectionSignDigestPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -61,17 +53,19 @@ func (m *ItemSitesItemInformationProtectionSignDigestPostRequestBody) Serialize(
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemInformationProtectionSignDigestPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionSignDigestPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetDigest sets the digest property value. The digest property
func (m *ItemSitesItemInformationProtectionSignDigestPostRequestBody) SetDigest(value []byte)() {
m.GetBackingStore().Set("digest", value)
m.digest = value
}

View File

@ -7,10 +7,7 @@ import (
// ItemSitesItemInformationProtectionSignDigestPostRequestBodyable
type ItemSitesItemInformationProtectionSignDigestPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetDigest()([]byte)
SetBackingStore(value BackingStore)()
SetDigest(value []byte)()
}

View File

@ -6,14 +6,19 @@ import (
// ItemSitesItemInformationProtectionVerifySignaturePostRequestBody provides operations to call the verifySignature method.
type ItemSitesItemInformationProtectionVerifySignaturePostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The digest property
digest []byte
// The signature property
signature []byte
// The signingKeyId property
signingKeyId *string
}
// NewItemSitesItemInformationProtectionVerifySignaturePostRequestBody instantiates a new ItemSitesItemInformationProtectionVerifySignaturePostRequestBody and sets the default values.
func NewItemSitesItemInformationProtectionVerifySignaturePostRequestBody()(*ItemSitesItemInformationProtectionVerifySignaturePostRequestBody) {
m := &ItemSitesItemInformationProtectionVerifySignaturePostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,20 +28,11 @@ func CreateItemSitesItemInformationProtectionVerifySignaturePostRequestBodyFromD
}
// 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 *ItemSitesItemInformationProtectionVerifySignaturePostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionVerifySignaturePostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetDigest gets the digest property value. The digest property
func (m *ItemSitesItemInformationProtectionVerifySignaturePostRequestBody) GetDigest()([]byte) {
return m.GetBackingStore().Get("digest");
return m.digest
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemInformationProtectionVerifySignaturePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -75,11 +71,11 @@ func (m *ItemSitesItemInformationProtectionVerifySignaturePostRequestBody) GetFi
}
// GetSignature gets the signature property value. The signature property
func (m *ItemSitesItemInformationProtectionVerifySignaturePostRequestBody) GetSignature()([]byte) {
return m.GetBackingStore().Get("signature");
return m.signature
}
// GetSigningKeyId gets the signingKeyId property value. The signingKeyId property
func (m *ItemSitesItemInformationProtectionVerifySignaturePostRequestBody) GetSigningKeyId()(*string) {
return m.GetBackingStore().Get("signingKeyId");
return m.signingKeyId
}
// Serialize serializes information the current object
func (m *ItemSitesItemInformationProtectionVerifySignaturePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -101,25 +97,27 @@ func (m *ItemSitesItemInformationProtectionVerifySignaturePostRequestBody) Seria
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemInformationProtectionVerifySignaturePostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemInformationProtectionVerifySignaturePostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetDigest sets the digest property value. The digest property
func (m *ItemSitesItemInformationProtectionVerifySignaturePostRequestBody) SetDigest(value []byte)() {
m.GetBackingStore().Set("digest", value)
m.digest = value
}
// SetSignature sets the signature property value. The signature property
func (m *ItemSitesItemInformationProtectionVerifySignaturePostRequestBody) SetSignature(value []byte)() {
m.GetBackingStore().Set("signature", value)
m.signature = value
}
// SetSigningKeyId sets the signingKeyId property value. The signingKeyId property
func (m *ItemSitesItemInformationProtectionVerifySignaturePostRequestBody) SetSigningKeyId(value *string)() {
m.GetBackingStore().Set("signingKeyId", value)
m.signingKeyId = value
}

View File

@ -7,13 +7,10 @@ import (
// ItemSitesItemInformationProtectionVerifySignaturePostRequestBodyable
type ItemSitesItemInformationProtectionVerifySignaturePostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetDigest()([]byte)
GetSignature()([]byte)
GetSigningKeyId()(*string)
SetBackingStore(value BackingStore)()
SetDigest(value []byte)()
SetSignature(value []byte)()
SetSigningKeyId(value *string)()

View File

@ -6,14 +6,15 @@ import (
// ItemSitesItemListsItemContentTypesAddCopyFromContentTypeHubPostRequestBody provides operations to call the addCopyFromContentTypeHub method.
type ItemSitesItemListsItemContentTypesAddCopyFromContentTypeHubPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The contentTypeId property
contentTypeId *string
}
// NewItemSitesItemListsItemContentTypesAddCopyFromContentTypeHubPostRequestBody instantiates a new ItemSitesItemListsItemContentTypesAddCopyFromContentTypeHubPostRequestBody and sets the default values.
func NewItemSitesItemListsItemContentTypesAddCopyFromContentTypeHubPostRequestBody()(*ItemSitesItemListsItemContentTypesAddCopyFromContentTypeHubPostRequestBody) {
m := &ItemSitesItemListsItemContentTypesAddCopyFromContentTypeHubPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,20 +24,11 @@ func CreateItemSitesItemListsItemContentTypesAddCopyFromContentTypeHubPostReques
}
// 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 *ItemSitesItemListsItemContentTypesAddCopyFromContentTypeHubPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemListsItemContentTypesAddCopyFromContentTypeHubPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetContentTypeId gets the contentTypeId property value. The contentTypeId property
func (m *ItemSitesItemListsItemContentTypesAddCopyFromContentTypeHubPostRequestBody) GetContentTypeId()(*string) {
return m.GetBackingStore().Get("contentTypeId");
return m.contentTypeId
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemListsItemContentTypesAddCopyFromContentTypeHubPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -61,17 +53,19 @@ func (m *ItemSitesItemListsItemContentTypesAddCopyFromContentTypeHubPostRequestB
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemListsItemContentTypesAddCopyFromContentTypeHubPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemListsItemContentTypesAddCopyFromContentTypeHubPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetContentTypeId sets the contentTypeId property value. The contentTypeId property
func (m *ItemSitesItemListsItemContentTypesAddCopyFromContentTypeHubPostRequestBody) SetContentTypeId(value *string)() {
m.GetBackingStore().Set("contentTypeId", value)
m.contentTypeId = value
}

View File

@ -7,10 +7,7 @@ import (
// ItemSitesItemListsItemContentTypesAddCopyFromContentTypeHubPostRequestBodyable
type ItemSitesItemListsItemContentTypesAddCopyFromContentTypeHubPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetContentTypeId()(*string)
SetBackingStore(value BackingStore)()
SetContentTypeId(value *string)()
}

View File

@ -6,14 +6,15 @@ import (
// ItemSitesItemListsItemContentTypesAddCopyPostRequestBody provides operations to call the addCopy method.
type ItemSitesItemListsItemContentTypesAddCopyPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The contentType property
contentType *string
}
// NewItemSitesItemListsItemContentTypesAddCopyPostRequestBody instantiates a new ItemSitesItemListsItemContentTypesAddCopyPostRequestBody and sets the default values.
func NewItemSitesItemListsItemContentTypesAddCopyPostRequestBody()(*ItemSitesItemListsItemContentTypesAddCopyPostRequestBody) {
m := &ItemSitesItemListsItemContentTypesAddCopyPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,20 +24,11 @@ func CreateItemSitesItemListsItemContentTypesAddCopyPostRequestBodyFromDiscrimin
}
// 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 *ItemSitesItemListsItemContentTypesAddCopyPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemListsItemContentTypesAddCopyPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetContentType gets the contentType property value. The contentType property
func (m *ItemSitesItemListsItemContentTypesAddCopyPostRequestBody) GetContentType()(*string) {
return m.GetBackingStore().Get("contentType");
return m.contentType
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemListsItemContentTypesAddCopyPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -61,17 +53,19 @@ func (m *ItemSitesItemListsItemContentTypesAddCopyPostRequestBody) Serialize(wri
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemListsItemContentTypesAddCopyPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemListsItemContentTypesAddCopyPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetContentType sets the contentType property value. The contentType property
func (m *ItemSitesItemListsItemContentTypesAddCopyPostRequestBody) SetContentType(value *string)() {
m.GetBackingStore().Set("contentType", value)
m.contentType = value
}

View File

@ -7,10 +7,7 @@ import (
// ItemSitesItemListsItemContentTypesAddCopyPostRequestBodyable
type ItemSitesItemListsItemContentTypesAddCopyPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetContentType()(*string)
SetBackingStore(value BackingStore)()
SetContentType(value *string)()
}

View File

@ -8,6 +8,8 @@ import (
// ItemSitesItemListsItemContentTypesGetCompatibleHubContentTypesResponse provides operations to call the getCompatibleHubContentTypes method.
type ItemSitesItemListsItemContentTypesGetCompatibleHubContentTypesResponse struct {
ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.BaseCollectionPaginationCountResponse
// The value property
value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentTypeable
}
// NewItemSitesItemListsItemContentTypesGetCompatibleHubContentTypesResponse instantiates a new ItemSitesItemListsItemContentTypesGetCompatibleHubContentTypesResponse and sets the default values.
func NewItemSitesItemListsItemContentTypesGetCompatibleHubContentTypesResponse()(*ItemSitesItemListsItemContentTypesGetCompatibleHubContentTypesResponse) {
@ -29,9 +31,9 @@ func (m *ItemSitesItemListsItemContentTypesGetCompatibleHubContentTypesResponse)
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentType, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentTypeable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentType))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentTypeable)
}
m.SetValue(res)
}
@ -41,7 +43,7 @@ func (m *ItemSitesItemListsItemContentTypesGetCompatibleHubContentTypesResponse)
}
// GetValue gets the value property value. The value property
func (m *ItemSitesItemListsItemContentTypesGetCompatibleHubContentTypesResponse) GetValue()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentTypeable) {
return m.GetBackingStore().Get("value");
return m.value
}
// Serialize serializes information the current object
func (m *ItemSitesItemListsItemContentTypesGetCompatibleHubContentTypesResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -52,8 +54,7 @@ func (m *ItemSitesItemListsItemContentTypesGetCompatibleHubContentTypesResponse)
if m.GetValue() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
for i, v := range m.GetValue() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err = writer.WriteCollectionOfObjectValues("value", cast)
if err != nil {
@ -64,5 +65,5 @@ func (m *ItemSitesItemListsItemContentTypesGetCompatibleHubContentTypesResponse)
}
// SetValue sets the value property value. The value property
func (m *ItemSitesItemListsItemContentTypesGetCompatibleHubContentTypesResponse) SetValue(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ContentTypeable)() {
m.GetBackingStore().Set("value", value)
m.value = value
}

View File

@ -6,14 +6,17 @@ import (
// ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBody provides operations to call the associateWithHubSites method.
type ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The hubSiteUrls property
hubSiteUrls []string
// The propagateToExistingLists property
propagateToExistingLists *bool
}
// NewItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBody instantiates a new ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBody and sets the default values.
func NewItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBody()(*ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBody) {
m := &ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,16 +26,7 @@ func CreateItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostReques
}
// 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 *ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -65,11 +59,11 @@ func (m *ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestB
}
// GetHubSiteUrls gets the hubSiteUrls property value. The hubSiteUrls property
func (m *ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBody) GetHubSiteUrls()([]string) {
return m.GetBackingStore().Get("hubSiteUrls");
return m.hubSiteUrls
}
// GetPropagateToExistingLists gets the propagateToExistingLists property value. The propagateToExistingLists property
func (m *ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBody) GetPropagateToExistingLists()(*bool) {
return m.GetBackingStore().Get("propagateToExistingLists");
return m.propagateToExistingLists
}
// Serialize serializes information the current object
func (m *ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -85,21 +79,23 @@ func (m *ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestB
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetHubSiteUrls sets the hubSiteUrls property value. The hubSiteUrls property
func (m *ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBody) SetHubSiteUrls(value []string)() {
m.GetBackingStore().Set("hubSiteUrls", value)
m.hubSiteUrls = value
}
// SetPropagateToExistingLists sets the propagateToExistingLists property value. The propagateToExistingLists property
func (m *ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBody) SetPropagateToExistingLists(value *bool)() {
m.GetBackingStore().Set("propagateToExistingLists", value)
m.propagateToExistingLists = value
}

View File

@ -7,12 +7,9 @@ import (
// ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBodyable
type ItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetHubSiteUrls()([]string)
GetPropagateToExistingLists()(*bool)
SetBackingStore(value BackingStore)()
SetHubSiteUrls(value []string)()
SetPropagateToExistingLists(value *bool)()
}

View File

@ -7,14 +7,17 @@ import (
// ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBody provides operations to call the copyToDefaultContentLocation method.
type ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The destinationFileName property
destinationFileName *string
// The sourceFile property
sourceFile ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemReferenceable
}
// NewItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBody instantiates a new ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBody and sets the default values.
func NewItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBody()(*ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) {
m := &ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -24,20 +27,11 @@ func CreateItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPos
}
// 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 *ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetDestinationFileName gets the destinationFileName property value. The destinationFileName property
func (m *ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) GetDestinationFileName()(*string) {
return m.GetBackingStore().Get("destinationFileName");
return m.destinationFileName
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -58,7 +52,7 @@ func (m *ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostR
return err
}
if val != nil {
m.SetSourceFile(val.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemReference))
m.SetSourceFile(val.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemReferenceable))
}
return nil
}
@ -66,7 +60,7 @@ func (m *ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostR
}
// GetSourceFile gets the sourceFile property value. The sourceFile property
func (m *ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) GetSourceFile()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemReferenceable) {
return m.GetBackingStore().Get("sourceFile");
return m.sourceFile
}
// Serialize serializes information the current object
func (m *ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -82,21 +76,23 @@ func (m *ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostR
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetDestinationFileName sets the destinationFileName property value. The destinationFileName property
func (m *ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) SetDestinationFileName(value *string)() {
m.GetBackingStore().Set("destinationFileName", value)
m.destinationFileName = value
}
// SetSourceFile sets the sourceFile property value. The sourceFile property
func (m *ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) SetSourceFile(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemReferenceable)() {
m.GetBackingStore().Set("sourceFile", value)
m.sourceFile = value
}

View File

@ -8,12 +8,9 @@ import (
// ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBodyable
type ItemSitesItemListsItemContentTypesItemCopyToDefaultContentLocationPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetDestinationFileName()(*string)
GetSourceFile()(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemReferenceable)
SetBackingStore(value BackingStore)()
SetDestinationFileName(value *string)()
SetSourceFile(value ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemReferenceable)()
}

View File

@ -6,14 +6,15 @@ import (
// ItemSitesItemListsItemContentTypesItemIsPublishedResponse provides operations to call the isPublished method.
type ItemSitesItemListsItemContentTypesItemIsPublishedResponse struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The value property
value *bool
}
// NewItemSitesItemListsItemContentTypesItemIsPublishedResponse instantiates a new ItemSitesItemListsItemContentTypesItemIsPublishedResponse and sets the default values.
func NewItemSitesItemListsItemContentTypesItemIsPublishedResponse()(*ItemSitesItemListsItemContentTypesItemIsPublishedResponse) {
m := &ItemSitesItemListsItemContentTypesItemIsPublishedResponse{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,16 +24,7 @@ func CreateItemSitesItemListsItemContentTypesItemIsPublishedResponseFromDiscrimi
}
// 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 *ItemSitesItemListsItemContentTypesItemIsPublishedResponse) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemListsItemContentTypesItemIsPublishedResponse) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemListsItemContentTypesItemIsPublishedResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -51,7 +43,7 @@ func (m *ItemSitesItemListsItemContentTypesItemIsPublishedResponse) GetFieldDese
}
// GetValue gets the value property value. The value property
func (m *ItemSitesItemListsItemContentTypesItemIsPublishedResponse) GetValue()(*bool) {
return m.GetBackingStore().Get("value");
return m.value
}
// Serialize serializes information the current object
func (m *ItemSitesItemListsItemContentTypesItemIsPublishedResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -61,17 +53,19 @@ func (m *ItemSitesItemListsItemContentTypesItemIsPublishedResponse) Serialize(wr
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemListsItemContentTypesItemIsPublishedResponse) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemListsItemContentTypesItemIsPublishedResponse) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetValue sets the value property value. The value property
func (m *ItemSitesItemListsItemContentTypesItemIsPublishedResponse) SetValue(value *bool)() {
m.GetBackingStore().Set("value", value)
m.value = value
}

View File

@ -7,10 +7,7 @@ import (
// ItemSitesItemListsItemContentTypesItemIsPublishedResponseable
type ItemSitesItemListsItemContentTypesItemIsPublishedResponseable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetValue()(*bool)
SetBackingStore(value BackingStore)()
SetValue(value *bool)()
}

View File

@ -8,6 +8,8 @@ import (
// ItemSitesItemListsItemItemsDeltaResponse provides operations to call the delta method.
type ItemSitesItemListsItemItemsDeltaResponse struct {
ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.BaseDeltaFunctionResponse
// The value property
value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ListItemable
}
// NewItemSitesItemListsItemItemsDeltaResponse instantiates a new ItemSitesItemListsItemItemsDeltaResponse and sets the default values.
func NewItemSitesItemListsItemItemsDeltaResponse()(*ItemSitesItemListsItemItemsDeltaResponse) {
@ -29,9 +31,9 @@ func (m *ItemSitesItemListsItemItemsDeltaResponse) GetFieldDeserializers()(map[s
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ListItem, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ListItemable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ListItem))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ListItemable)
}
m.SetValue(res)
}
@ -41,7 +43,7 @@ func (m *ItemSitesItemListsItemItemsDeltaResponse) GetFieldDeserializers()(map[s
}
// GetValue gets the value property value. The value property
func (m *ItemSitesItemListsItemItemsDeltaResponse) GetValue()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ListItemable) {
return m.GetBackingStore().Get("value");
return m.value
}
// Serialize serializes information the current object
func (m *ItemSitesItemListsItemItemsDeltaResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -52,8 +54,7 @@ func (m *ItemSitesItemListsItemItemsDeltaResponse) Serialize(writer i878a80d2330
if m.GetValue() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
for i, v := range m.GetValue() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err = writer.WriteCollectionOfObjectValues("value", cast)
if err != nil {
@ -64,5 +65,5 @@ func (m *ItemSitesItemListsItemItemsDeltaResponse) Serialize(writer i878a80d2330
}
// SetValue sets the value property value. The value property
func (m *ItemSitesItemListsItemItemsDeltaResponse) SetValue(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ListItemable)() {
m.GetBackingStore().Set("value", value)
m.value = value
}

View File

@ -8,6 +8,8 @@ import (
// ItemSitesItemListsItemItemsDeltaWithTokenResponse provides operations to call the delta method.
type ItemSitesItemListsItemItemsDeltaWithTokenResponse struct {
ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.BaseDeltaFunctionResponse
// The value property
value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ListItemable
}
// NewItemSitesItemListsItemItemsDeltaWithTokenResponse instantiates a new ItemSitesItemListsItemItemsDeltaWithTokenResponse and sets the default values.
func NewItemSitesItemListsItemItemsDeltaWithTokenResponse()(*ItemSitesItemListsItemItemsDeltaWithTokenResponse) {
@ -29,9 +31,9 @@ func (m *ItemSitesItemListsItemItemsDeltaWithTokenResponse) GetFieldDeserializer
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ListItem, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ListItemable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ListItem))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ListItemable)
}
m.SetValue(res)
}
@ -41,7 +43,7 @@ func (m *ItemSitesItemListsItemItemsDeltaWithTokenResponse) GetFieldDeserializer
}
// GetValue gets the value property value. The value property
func (m *ItemSitesItemListsItemItemsDeltaWithTokenResponse) GetValue()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ListItemable) {
return m.GetBackingStore().Get("value");
return m.value
}
// Serialize serializes information the current object
func (m *ItemSitesItemListsItemItemsDeltaWithTokenResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -52,8 +54,7 @@ func (m *ItemSitesItemListsItemItemsDeltaWithTokenResponse) Serialize(writer i87
if m.GetValue() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
for i, v := range m.GetValue() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err = writer.WriteCollectionOfObjectValues("value", cast)
if err != nil {
@ -64,5 +65,5 @@ func (m *ItemSitesItemListsItemItemsDeltaWithTokenResponse) Serialize(writer i87
}
// SetValue sets the value property value. The value property
func (m *ItemSitesItemListsItemItemsDeltaWithTokenResponse) SetValue(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ListItemable)() {
m.GetBackingStore().Set("value", value)
m.value = value
}

View File

@ -8,16 +8,25 @@ import (
// ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody provides operations to call the createLink method.
type ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The expirationDateTime property
expirationDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
// The password property
password *string
// The recipients property
recipients []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DriveRecipientable
// The retainInheritedPermissions property
retainInheritedPermissions *bool
// The scope property
scope *string
// The type property
Type_escaped *string
type_escaped *string
}
// NewItemSitesItemListsItemItemsItemCreateLinkPostRequestBody instantiates a new ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody and sets the default values.
func NewItemSitesItemListsItemItemsItemCreateLinkPostRequestBody()(*ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) {
m := &ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -27,20 +36,11 @@ func CreateItemSitesItemListsItemItemsItemCreateLinkPostRequestBodyFromDiscrimin
}
// 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 *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetExpirationDateTime gets the expirationDateTime property value. The expirationDateTime property
func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
return m.GetBackingStore().Get("expirationDateTime");
return m.expirationDateTime
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -71,9 +71,9 @@ func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) GetFieldDeser
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DriveRecipient, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DriveRecipientable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DriveRecipient))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DriveRecipientable)
}
m.SetRecipients(res)
}
@ -113,23 +113,23 @@ func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) GetFieldDeser
}
// GetPassword gets the password property value. The password property
func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) GetPassword()(*string) {
return m.GetBackingStore().Get("password");
return m.password
}
// GetRecipients gets the recipients property value. The recipients property
func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) GetRecipients()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DriveRecipientable) {
return m.GetBackingStore().Get("recipients");
return m.recipients
}
// GetRetainInheritedPermissions gets the retainInheritedPermissions property value. The retainInheritedPermissions property
func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) GetRetainInheritedPermissions()(*bool) {
return m.GetBackingStore().Get("retainInheritedPermissions");
return m.retainInheritedPermissions
}
// GetScope gets the scope property value. The scope property
func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) GetScope()(*string) {
return m.GetBackingStore().Get("scope");
return m.scope
}
// GetType gets the type property value. The type property
func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) GetType()(*string) {
return m.GetBackingStore().Get("type_escaped");
return m.type_escaped
}
// Serialize serializes information the current object
func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -148,8 +148,7 @@ func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) Serialize(wri
if m.GetRecipients() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRecipients()))
for i, v := range m.GetRecipients() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err := writer.WriteCollectionOfObjectValues("recipients", cast)
if err != nil {
@ -174,37 +173,39 @@ func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) Serialize(wri
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetExpirationDateTime sets the expirationDateTime property value. The expirationDateTime property
func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
m.GetBackingStore().Set("expirationDateTime", value)
m.expirationDateTime = value
}
// SetPassword sets the password property value. The password property
func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) SetPassword(value *string)() {
m.GetBackingStore().Set("password", value)
m.password = value
}
// SetRecipients sets the recipients property value. The recipients property
func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) SetRecipients(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DriveRecipientable)() {
m.GetBackingStore().Set("recipients", value)
m.recipients = value
}
// SetRetainInheritedPermissions sets the retainInheritedPermissions property value. The retainInheritedPermissions property
func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) SetRetainInheritedPermissions(value *bool)() {
m.GetBackingStore().Set("retainInheritedPermissions", value)
m.retainInheritedPermissions = value
}
// SetScope sets the scope property value. The scope property
func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) SetScope(value *string)() {
m.GetBackingStore().Set("scope", value)
m.scope = value
}
// SetType sets the type property value. The type property
func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) SetType(value *string)() {
m.GetBackingStore().Set("type_escaped", value)
m.type_escaped = value
}

View File

@ -9,16 +9,13 @@ import (
// ItemSitesItemListsItemItemsItemCreateLinkPostRequestBodyable
type ItemSitesItemListsItemItemsItemCreateLinkPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
GetPassword()(*string)
GetRecipients()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DriveRecipientable)
GetRetainInheritedPermissions()(*bool)
GetScope()(*string)
GetType()(*string)
SetBackingStore(value BackingStore)()
SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
SetPassword(value *string)()
SetRecipients(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.DriveRecipientable)()

View File

@ -8,6 +8,8 @@ import (
// ItemSitesItemListsItemItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse provides operations to call the getActivitiesByInterval method.
type ItemSitesItemListsItemItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse struct {
ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.BaseCollectionPaginationCountResponse
// The value property
value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemActivityStatable
}
// NewItemSitesItemListsItemItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse instantiates a new ItemSitesItemListsItemItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values.
func NewItemSitesItemListsItemItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse()(*ItemSitesItemListsItemItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse) {
@ -29,9 +31,9 @@ func (m *ItemSitesItemListsItemItemsItemGetActivitiesByIntervalWithStartDateTime
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemActivityStat, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemActivityStatable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemActivityStat))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemActivityStatable)
}
m.SetValue(res)
}
@ -41,7 +43,7 @@ func (m *ItemSitesItemListsItemItemsItemGetActivitiesByIntervalWithStartDateTime
}
// GetValue gets the value property value. The value property
func (m *ItemSitesItemListsItemItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse) GetValue()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemActivityStatable) {
return m.GetBackingStore().Get("value");
return m.value
}
// Serialize serializes information the current object
func (m *ItemSitesItemListsItemItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -52,8 +54,7 @@ func (m *ItemSitesItemListsItemItemsItemGetActivitiesByIntervalWithStartDateTime
if m.GetValue() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
for i, v := range m.GetValue() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err = writer.WriteCollectionOfObjectValues("value", cast)
if err != nil {
@ -64,5 +65,5 @@ func (m *ItemSitesItemListsItemItemsItemGetActivitiesByIntervalWithStartDateTime
}
// SetValue sets the value property value. The value property
func (m *ItemSitesItemListsItemItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse) SetValue(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.ItemActivityStatable)() {
m.GetBackingStore().Set("value", value)
m.value = value
}

View File

@ -6,14 +6,15 @@ import (
// ItemSitesItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBody provides operations to call the getNotebookFromWebUrl method.
type ItemSitesItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The webUrl property
webUrl *string
}
// NewItemSitesItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBody instantiates a new ItemSitesItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBody and sets the default values.
func NewItemSitesItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBody()(*ItemSitesItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBody) {
m := &ItemSitesItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,16 +24,7 @@ func CreateItemSitesItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBodyFrom
}
// 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 *ItemSitesItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -51,7 +43,7 @@ func (m *ItemSitesItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBody) GetF
}
// GetWebUrl gets the webUrl property value. The webUrl property
func (m *ItemSitesItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBody) GetWebUrl()(*string) {
return m.GetBackingStore().Get("webUrl");
return m.webUrl
}
// Serialize serializes information the current object
func (m *ItemSitesItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -61,17 +53,19 @@ func (m *ItemSitesItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBody) Seri
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetWebUrl sets the webUrl property value. The webUrl property
func (m *ItemSitesItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBody) SetWebUrl(value *string)() {
m.GetBackingStore().Set("webUrl", value)
m.webUrl = value
}

View File

@ -7,10 +7,7 @@ import (
// ItemSitesItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBodyable
type ItemSitesItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetWebUrl()(*string)
SetBackingStore(value BackingStore)()
SetWebUrl(value *string)()
}

View File

@ -8,6 +8,8 @@ import (
// ItemSitesItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksResponse provides operations to call the getRecentNotebooks method.
type ItemSitesItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksResponse struct {
ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.BaseCollectionPaginationCountResponse
// The value property
value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.RecentNotebookable
}
// NewItemSitesItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksResponse instantiates a new ItemSitesItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksResponse and sets the default values.
func NewItemSitesItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksResponse()(*ItemSitesItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksResponse) {
@ -29,9 +31,9 @@ func (m *ItemSitesItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNoteb
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.RecentNotebook, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.RecentNotebookable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.RecentNotebook))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.RecentNotebookable)
}
m.SetValue(res)
}
@ -41,7 +43,7 @@ func (m *ItemSitesItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNoteb
}
// GetValue gets the value property value. The value property
func (m *ItemSitesItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksResponse) GetValue()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.RecentNotebookable) {
return m.GetBackingStore().Get("value");
return m.value
}
// Serialize serializes information the current object
func (m *ItemSitesItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -52,8 +54,7 @@ func (m *ItemSitesItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNoteb
if m.GetValue() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
for i, v := range m.GetValue() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err = writer.WriteCollectionOfObjectValues("value", cast)
if err != nil {
@ -64,5 +65,5 @@ func (m *ItemSitesItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNoteb
}
// SetValue sets the value property value. The value property
func (m *ItemSitesItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksResponse) SetValue(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.RecentNotebookable)() {
m.GetBackingStore().Set("value", value)
m.value = value
}

View File

@ -6,14 +6,23 @@ import (
// ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody provides operations to call the copyNotebook method.
type ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The groupId property
groupId *string
// The notebookFolder property
notebookFolder *string
// The renameAs property
renameAs *string
// The siteCollectionId property
siteCollectionId *string
// The siteId property
siteId *string
}
// NewItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody instantiates a new ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody and sets the default values.
func NewItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody()(*ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody) {
m := &ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,16 +32,7 @@ func CreateItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBodyFromDiscr
}
// 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 *ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -91,23 +91,23 @@ func (m *ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody) GetFieldD
}
// GetGroupId gets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody) GetGroupId()(*string) {
return m.GetBackingStore().Get("groupId");
return m.groupId
}
// GetNotebookFolder gets the notebookFolder property value. The notebookFolder property
func (m *ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody) GetNotebookFolder()(*string) {
return m.GetBackingStore().Get("notebookFolder");
return m.notebookFolder
}
// GetRenameAs gets the renameAs property value. The renameAs property
func (m *ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody) GetRenameAs()(*string) {
return m.GetBackingStore().Get("renameAs");
return m.renameAs
}
// GetSiteCollectionId gets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody) GetSiteCollectionId()(*string) {
return m.GetBackingStore().Get("siteCollectionId");
return m.siteCollectionId
}
// GetSiteId gets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody) GetSiteId()(*string) {
return m.GetBackingStore().Get("siteId");
return m.siteId
}
// Serialize serializes information the current object
func (m *ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -141,33 +141,35 @@ func (m *ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody) Serialize
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetGroupId sets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody) SetGroupId(value *string)() {
m.GetBackingStore().Set("groupId", value)
m.groupId = value
}
// SetNotebookFolder sets the notebookFolder property value. The notebookFolder property
func (m *ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody) SetNotebookFolder(value *string)() {
m.GetBackingStore().Set("notebookFolder", value)
m.notebookFolder = value
}
// SetRenameAs sets the renameAs property value. The renameAs property
func (m *ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody) SetRenameAs(value *string)() {
m.GetBackingStore().Set("renameAs", value)
m.renameAs = value
}
// SetSiteCollectionId sets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody) SetSiteCollectionId(value *string)() {
m.GetBackingStore().Set("siteCollectionId", value)
m.siteCollectionId = value
}
// SetSiteId sets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBody) SetSiteId(value *string)() {
m.GetBackingStore().Set("siteId", value)
m.siteId = value
}

View File

@ -7,15 +7,12 @@ import (
// ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBodyable
type ItemSitesItemOnenoteNotebooksItemCopyNotebookPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetGroupId()(*string)
GetNotebookFolder()(*string)
GetRenameAs()(*string)
GetSiteCollectionId()(*string)
GetSiteId()(*string)
SetBackingStore(value BackingStore)()
SetGroupId(value *string)()
SetNotebookFolder(value *string)()
SetRenameAs(value *string)()

View File

@ -6,14 +6,23 @@ import (
// ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody provides operations to call the copyToNotebook method.
type ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The groupId property
groupId *string
// The id property
id *string
// The renameAs property
renameAs *string
// The siteCollectionId property
siteCollectionId *string
// The siteId property
siteId *string
}
// NewItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody instantiates a new ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody and sets the default values.
func NewItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody()(*ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) {
m := &ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,16 +32,7 @@ func CreateItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToN
}
// 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 *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -91,23 +91,23 @@ func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNot
}
// GetGroupId gets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) GetGroupId()(*string) {
return m.GetBackingStore().Get("groupId");
return m.groupId
}
// GetId gets the id property value. The id property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) GetId()(*string) {
return m.GetBackingStore().Get("id");
return m.id
}
// GetRenameAs gets the renameAs property value. The renameAs property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) GetRenameAs()(*string) {
return m.GetBackingStore().Get("renameAs");
return m.renameAs
}
// GetSiteCollectionId gets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) GetSiteCollectionId()(*string) {
return m.GetBackingStore().Get("siteCollectionId");
return m.siteCollectionId
}
// GetSiteId gets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) GetSiteId()(*string) {
return m.GetBackingStore().Get("siteId");
return m.siteId
}
// Serialize serializes information the current object
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -141,33 +141,35 @@ func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNot
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetGroupId sets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) SetGroupId(value *string)() {
m.GetBackingStore().Set("groupId", value)
m.groupId = value
}
// SetId sets the id property value. The id property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) SetId(value *string)() {
m.GetBackingStore().Set("id", value)
m.id = value
}
// SetRenameAs sets the renameAs property value. The renameAs property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) SetRenameAs(value *string)() {
m.GetBackingStore().Set("renameAs", value)
m.renameAs = value
}
// SetSiteCollectionId sets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) SetSiteCollectionId(value *string)() {
m.GetBackingStore().Set("siteCollectionId", value)
m.siteCollectionId = value
}
// SetSiteId sets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) SetSiteId(value *string)() {
m.GetBackingStore().Set("siteId", value)
m.siteId = value
}

View File

@ -7,15 +7,12 @@ import (
// ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBodyable
type ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetGroupId()(*string)
GetId()(*string)
GetRenameAs()(*string)
GetSiteCollectionId()(*string)
GetSiteId()(*string)
SetBackingStore(value BackingStore)()
SetGroupId(value *string)()
SetId(value *string)()
SetRenameAs(value *string)()

View File

@ -6,14 +6,23 @@ import (
// ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody provides operations to call the copyToSectionGroup method.
type ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The groupId property
groupId *string
// The id property
id *string
// The renameAs property
renameAs *string
// The siteCollectionId property
siteCollectionId *string
// The siteId property
siteId *string
}
// NewItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody instantiates a new ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody and sets the default values.
func NewItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody()(*ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) {
m := &ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,16 +32,7 @@ func CreateItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToS
}
// 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 *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -91,23 +91,23 @@ func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSec
}
// GetGroupId gets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) GetGroupId()(*string) {
return m.GetBackingStore().Get("groupId");
return m.groupId
}
// GetId gets the id property value. The id property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) GetId()(*string) {
return m.GetBackingStore().Get("id");
return m.id
}
// GetRenameAs gets the renameAs property value. The renameAs property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) GetRenameAs()(*string) {
return m.GetBackingStore().Get("renameAs");
return m.renameAs
}
// GetSiteCollectionId gets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) GetSiteCollectionId()(*string) {
return m.GetBackingStore().Get("siteCollectionId");
return m.siteCollectionId
}
// GetSiteId gets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) GetSiteId()(*string) {
return m.GetBackingStore().Get("siteId");
return m.siteId
}
// Serialize serializes information the current object
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -141,33 +141,35 @@ func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSec
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetGroupId sets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) SetGroupId(value *string)() {
m.GetBackingStore().Set("groupId", value)
m.groupId = value
}
// SetId sets the id property value. The id property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) SetId(value *string)() {
m.GetBackingStore().Set("id", value)
m.id = value
}
// SetRenameAs sets the renameAs property value. The renameAs property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) SetRenameAs(value *string)() {
m.GetBackingStore().Set("renameAs", value)
m.renameAs = value
}
// SetSiteCollectionId sets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) SetSiteCollectionId(value *string)() {
m.GetBackingStore().Set("siteCollectionId", value)
m.siteCollectionId = value
}
// SetSiteId sets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) SetSiteId(value *string)() {
m.GetBackingStore().Set("siteId", value)
m.siteId = value
}

View File

@ -7,15 +7,12 @@ import (
// ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBodyable
type ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetGroupId()(*string)
GetId()(*string)
GetRenameAs()(*string)
GetSiteCollectionId()(*string)
GetSiteId()(*string)
SetBackingStore(value BackingStore)()
SetGroupId(value *string)()
SetId(value *string)()
SetRenameAs(value *string)()

View File

@ -6,14 +6,21 @@ import (
// ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody provides operations to call the copyToSection method.
type ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The groupId property
groupId *string
// The id property
id *string
// The siteCollectionId property
siteCollectionId *string
// The siteId property
siteId *string
}
// NewItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody instantiates a new ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody and sets the default values.
func NewItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody()(*ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) {
m := &ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,16 +30,7 @@ func CreateItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesIt
}
// 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 *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -81,19 +79,19 @@ func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItem
}
// GetGroupId gets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetGroupId()(*string) {
return m.GetBackingStore().Get("groupId");
return m.groupId
}
// GetId gets the id property value. The id property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetId()(*string) {
return m.GetBackingStore().Get("id");
return m.id
}
// GetSiteCollectionId gets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetSiteCollectionId()(*string) {
return m.GetBackingStore().Get("siteCollectionId");
return m.siteCollectionId
}
// GetSiteId gets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetSiteId()(*string) {
return m.GetBackingStore().Get("siteId");
return m.siteId
}
// Serialize serializes information the current object
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -121,29 +119,31 @@ func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItem
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetGroupId sets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) SetGroupId(value *string)() {
m.GetBackingStore().Set("groupId", value)
m.groupId = value
}
// SetId sets the id property value. The id property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) SetId(value *string)() {
m.GetBackingStore().Set("id", value)
m.id = value
}
// SetSiteCollectionId sets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) SetSiteCollectionId(value *string)() {
m.GetBackingStore().Set("siteCollectionId", value)
m.siteCollectionId = value
}
// SetSiteId sets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) SetSiteId(value *string)() {
m.GetBackingStore().Set("siteId", value)
m.siteId = value
}

View File

@ -7,14 +7,11 @@ import (
// ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBodyable
type ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetGroupId()(*string)
GetId()(*string)
GetSiteCollectionId()(*string)
GetSiteId()(*string)
SetBackingStore(value BackingStore)()
SetGroupId(value *string)()
SetId(value *string)()
SetSiteCollectionId(value *string)()

View File

@ -7,14 +7,15 @@ import (
// ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody provides operations to call the onenotePatchContent method.
type ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The commands property
commands []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable
}
// NewItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody instantiates a new ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody and sets the default values.
func NewItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody()(*ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) {
m := &ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -24,20 +25,11 @@ func CreateItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesIt
}
// 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 *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetCommands gets the commands property value. The commands property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) GetCommands()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable) {
return m.GetBackingStore().Get("commands");
return m.commands
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -48,9 +40,9 @@ func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItem
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommand, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommand))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable)
}
m.SetCommands(res)
}
@ -63,25 +55,26 @@ func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItem
if m.GetCommands() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCommands()))
for i, v := range m.GetCommands() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err := writer.WriteCollectionOfObjectValues("commands", cast)
if err != nil {
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetCommands sets the commands property value. The commands property
func (m *ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) SetCommands(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable)() {
m.GetBackingStore().Set("commands", value)
m.commands = value
}

View File

@ -8,10 +8,7 @@ import (
// ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBodyable
type ItemSitesItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetCommands()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable)
SetBackingStore(value BackingStore)()
SetCommands(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable)()
}

View File

@ -6,14 +6,23 @@ import (
// ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody provides operations to call the copyToNotebook method.
type ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The groupId property
groupId *string
// The id property
id *string
// The renameAs property
renameAs *string
// The siteCollectionId property
siteCollectionId *string
// The siteId property
siteId *string
}
// NewItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody instantiates a new ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody and sets the default values.
func NewItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody()(*ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody) {
m := &ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,16 +32,7 @@ func CreateItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostReques
}
// 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 *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -91,23 +91,23 @@ func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestB
}
// GetGroupId gets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody) GetGroupId()(*string) {
return m.GetBackingStore().Get("groupId");
return m.groupId
}
// GetId gets the id property value. The id property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody) GetId()(*string) {
return m.GetBackingStore().Get("id");
return m.id
}
// GetRenameAs gets the renameAs property value. The renameAs property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody) GetRenameAs()(*string) {
return m.GetBackingStore().Get("renameAs");
return m.renameAs
}
// GetSiteCollectionId gets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody) GetSiteCollectionId()(*string) {
return m.GetBackingStore().Get("siteCollectionId");
return m.siteCollectionId
}
// GetSiteId gets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody) GetSiteId()(*string) {
return m.GetBackingStore().Get("siteId");
return m.siteId
}
// Serialize serializes information the current object
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -141,33 +141,35 @@ func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestB
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetGroupId sets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody) SetGroupId(value *string)() {
m.GetBackingStore().Set("groupId", value)
m.groupId = value
}
// SetId sets the id property value. The id property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody) SetId(value *string)() {
m.GetBackingStore().Set("id", value)
m.id = value
}
// SetRenameAs sets the renameAs property value. The renameAs property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody) SetRenameAs(value *string)() {
m.GetBackingStore().Set("renameAs", value)
m.renameAs = value
}
// SetSiteCollectionId sets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody) SetSiteCollectionId(value *string)() {
m.GetBackingStore().Set("siteCollectionId", value)
m.siteCollectionId = value
}
// SetSiteId sets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBody) SetSiteId(value *string)() {
m.GetBackingStore().Set("siteId", value)
m.siteId = value
}

View File

@ -7,15 +7,12 @@ import (
// ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBodyable
type ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetGroupId()(*string)
GetId()(*string)
GetRenameAs()(*string)
GetSiteCollectionId()(*string)
GetSiteId()(*string)
SetBackingStore(value BackingStore)()
SetGroupId(value *string)()
SetId(value *string)()
SetRenameAs(value *string)()

View File

@ -6,14 +6,23 @@ import (
// ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody provides operations to call the copyToSectionGroup method.
type ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The groupId property
groupId *string
// The id property
id *string
// The renameAs property
renameAs *string
// The siteCollectionId property
siteCollectionId *string
// The siteId property
siteId *string
}
// NewItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody instantiates a new ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody and sets the default values.
func NewItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody()(*ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody) {
m := &ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,16 +32,7 @@ func CreateItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRe
}
// 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 *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -91,23 +91,23 @@ func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequ
}
// GetGroupId gets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody) GetGroupId()(*string) {
return m.GetBackingStore().Get("groupId");
return m.groupId
}
// GetId gets the id property value. The id property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody) GetId()(*string) {
return m.GetBackingStore().Get("id");
return m.id
}
// GetRenameAs gets the renameAs property value. The renameAs property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody) GetRenameAs()(*string) {
return m.GetBackingStore().Get("renameAs");
return m.renameAs
}
// GetSiteCollectionId gets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody) GetSiteCollectionId()(*string) {
return m.GetBackingStore().Get("siteCollectionId");
return m.siteCollectionId
}
// GetSiteId gets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody) GetSiteId()(*string) {
return m.GetBackingStore().Get("siteId");
return m.siteId
}
// Serialize serializes information the current object
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -141,33 +141,35 @@ func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequ
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetGroupId sets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody) SetGroupId(value *string)() {
m.GetBackingStore().Set("groupId", value)
m.groupId = value
}
// SetId sets the id property value. The id property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody) SetId(value *string)() {
m.GetBackingStore().Set("id", value)
m.id = value
}
// SetRenameAs sets the renameAs property value. The renameAs property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody) SetRenameAs(value *string)() {
m.GetBackingStore().Set("renameAs", value)
m.renameAs = value
}
// SetSiteCollectionId sets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody) SetSiteCollectionId(value *string)() {
m.GetBackingStore().Set("siteCollectionId", value)
m.siteCollectionId = value
}
// SetSiteId sets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBody) SetSiteId(value *string)() {
m.GetBackingStore().Set("siteId", value)
m.siteId = value
}

View File

@ -7,15 +7,12 @@ import (
// ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBodyable
type ItemSitesItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetGroupId()(*string)
GetId()(*string)
GetRenameAs()(*string)
GetSiteCollectionId()(*string)
GetSiteId()(*string)
SetBackingStore(value BackingStore)()
SetGroupId(value *string)()
SetId(value *string)()
SetRenameAs(value *string)()

View File

@ -6,14 +6,21 @@ import (
// ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody provides operations to call the copyToSection method.
type ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The groupId property
groupId *string
// The id property
id *string
// The siteCollectionId property
siteCollectionId *string
// The siteId property
siteId *string
}
// NewItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody instantiates a new ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody and sets the default values.
func NewItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody()(*ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody) {
m := &ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,16 +30,7 @@ func CreateItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPo
}
// 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 *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -81,19 +79,19 @@ func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPost
}
// GetGroupId gets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetGroupId()(*string) {
return m.GetBackingStore().Get("groupId");
return m.groupId
}
// GetId gets the id property value. The id property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetId()(*string) {
return m.GetBackingStore().Get("id");
return m.id
}
// GetSiteCollectionId gets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetSiteCollectionId()(*string) {
return m.GetBackingStore().Get("siteCollectionId");
return m.siteCollectionId
}
// GetSiteId gets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetSiteId()(*string) {
return m.GetBackingStore().Get("siteId");
return m.siteId
}
// Serialize serializes information the current object
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -121,29 +119,31 @@ func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPost
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetGroupId sets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody) SetGroupId(value *string)() {
m.GetBackingStore().Set("groupId", value)
m.groupId = value
}
// SetId sets the id property value. The id property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody) SetId(value *string)() {
m.GetBackingStore().Set("id", value)
m.id = value
}
// SetSiteCollectionId sets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody) SetSiteCollectionId(value *string)() {
m.GetBackingStore().Set("siteCollectionId", value)
m.siteCollectionId = value
}
// SetSiteId sets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBody) SetSiteId(value *string)() {
m.GetBackingStore().Set("siteId", value)
m.siteId = value
}

View File

@ -7,14 +7,11 @@ import (
// ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBodyable
type ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetGroupId()(*string)
GetId()(*string)
GetSiteCollectionId()(*string)
GetSiteId()(*string)
SetBackingStore(value BackingStore)()
SetGroupId(value *string)()
SetId(value *string)()
SetSiteCollectionId(value *string)()

View File

@ -7,14 +7,15 @@ import (
// ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentPostRequestBody provides operations to call the onenotePatchContent method.
type ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The commands property
commands []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable
}
// NewItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentPostRequestBody instantiates a new ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentPostRequestBody and sets the default values.
func NewItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentPostRequestBody()(*ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) {
m := &ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -24,20 +25,11 @@ func CreateItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchCon
}
// 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 *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetCommands gets the commands property value. The commands property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) GetCommands()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable) {
return m.GetBackingStore().Get("commands");
return m.commands
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -48,9 +40,9 @@ func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchConte
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommand, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommand))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable)
}
m.SetCommands(res)
}
@ -63,25 +55,26 @@ func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchConte
if m.GetCommands() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCommands()))
for i, v := range m.GetCommands() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err := writer.WriteCollectionOfObjectValues("commands", cast)
if err != nil {
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetCommands sets the commands property value. The commands property
func (m *ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) SetCommands(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable)() {
m.GetBackingStore().Set("commands", value)
m.commands = value
}

View File

@ -8,10 +8,7 @@ import (
// ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentPostRequestBodyable
type ItemSitesItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetCommands()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable)
SetBackingStore(value BackingStore)()
SetCommands(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable)()
}

View File

@ -6,14 +6,21 @@ import (
// ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody provides operations to call the copyToSection method.
type ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The groupId property
groupId *string
// The id property
id *string
// The siteCollectionId property
siteCollectionId *string
// The siteId property
siteId *string
}
// NewItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody instantiates a new ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody and sets the default values.
func NewItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody()(*ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody) {
m := &ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,16 +30,7 @@ func CreateItemSitesItemOnenotePagesItemCopyToSectionPostRequestBodyFromDiscrimi
}
// 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 *ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -81,19 +79,19 @@ func (m *ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody) GetFieldDese
}
// GetGroupId gets the groupId property value. The groupId property
func (m *ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody) GetGroupId()(*string) {
return m.GetBackingStore().Get("groupId");
return m.groupId
}
// GetId gets the id property value. The id property
func (m *ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody) GetId()(*string) {
return m.GetBackingStore().Get("id");
return m.id
}
// GetSiteCollectionId gets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody) GetSiteCollectionId()(*string) {
return m.GetBackingStore().Get("siteCollectionId");
return m.siteCollectionId
}
// GetSiteId gets the siteId property value. The siteId property
func (m *ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody) GetSiteId()(*string) {
return m.GetBackingStore().Get("siteId");
return m.siteId
}
// Serialize serializes information the current object
func (m *ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -121,29 +119,31 @@ func (m *ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody) Serialize(wr
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetGroupId sets the groupId property value. The groupId property
func (m *ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody) SetGroupId(value *string)() {
m.GetBackingStore().Set("groupId", value)
m.groupId = value
}
// SetId sets the id property value. The id property
func (m *ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody) SetId(value *string)() {
m.GetBackingStore().Set("id", value)
m.id = value
}
// SetSiteCollectionId sets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody) SetSiteCollectionId(value *string)() {
m.GetBackingStore().Set("siteCollectionId", value)
m.siteCollectionId = value
}
// SetSiteId sets the siteId property value. The siteId property
func (m *ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBody) SetSiteId(value *string)() {
m.GetBackingStore().Set("siteId", value)
m.siteId = value
}

View File

@ -7,14 +7,11 @@ import (
// ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBodyable
type ItemSitesItemOnenotePagesItemCopyToSectionPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetGroupId()(*string)
GetId()(*string)
GetSiteCollectionId()(*string)
GetSiteId()(*string)
SetBackingStore(value BackingStore)()
SetGroupId(value *string)()
SetId(value *string)()
SetSiteCollectionId(value *string)()

View File

@ -7,14 +7,15 @@ import (
// ItemSitesItemOnenotePagesItemOnenotePatchContentPostRequestBody provides operations to call the onenotePatchContent method.
type ItemSitesItemOnenotePagesItemOnenotePatchContentPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The commands property
commands []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable
}
// NewItemSitesItemOnenotePagesItemOnenotePatchContentPostRequestBody instantiates a new ItemSitesItemOnenotePagesItemOnenotePatchContentPostRequestBody and sets the default values.
func NewItemSitesItemOnenotePagesItemOnenotePatchContentPostRequestBody()(*ItemSitesItemOnenotePagesItemOnenotePatchContentPostRequestBody) {
m := &ItemSitesItemOnenotePagesItemOnenotePatchContentPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -24,20 +25,11 @@ func CreateItemSitesItemOnenotePagesItemOnenotePatchContentPostRequestBodyFromDi
}
// 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 *ItemSitesItemOnenotePagesItemOnenotePatchContentPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenotePagesItemOnenotePatchContentPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetCommands gets the commands property value. The commands property
func (m *ItemSitesItemOnenotePagesItemOnenotePatchContentPostRequestBody) GetCommands()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable) {
return m.GetBackingStore().Get("commands");
return m.commands
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemOnenotePagesItemOnenotePatchContentPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -48,9 +40,9 @@ func (m *ItemSitesItemOnenotePagesItemOnenotePatchContentPostRequestBody) GetFie
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommand, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommand))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable)
}
m.SetCommands(res)
}
@ -63,25 +55,26 @@ func (m *ItemSitesItemOnenotePagesItemOnenotePatchContentPostRequestBody) Serial
if m.GetCommands() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCommands()))
for i, v := range m.GetCommands() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err := writer.WriteCollectionOfObjectValues("commands", cast)
if err != nil {
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemOnenotePagesItemOnenotePatchContentPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenotePagesItemOnenotePatchContentPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetCommands sets the commands property value. The commands property
func (m *ItemSitesItemOnenotePagesItemOnenotePatchContentPostRequestBody) SetCommands(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable)() {
m.GetBackingStore().Set("commands", value)
m.commands = value
}

View File

@ -8,10 +8,7 @@ import (
// ItemSitesItemOnenotePagesItemOnenotePatchContentPostRequestBodyable
type ItemSitesItemOnenotePagesItemOnenotePatchContentPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetCommands()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable)
SetBackingStore(value BackingStore)()
SetCommands(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable)()
}

View File

@ -6,14 +6,23 @@ import (
// ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody provides operations to call the copyToNotebook method.
type ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The groupId property
groupId *string
// The id property
id *string
// The renameAs property
renameAs *string
// The siteCollectionId property
siteCollectionId *string
// The siteId property
siteId *string
}
// NewItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody instantiates a new ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody and sets the default values.
func NewItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody()(*ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) {
m := &ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,16 +32,7 @@ func CreateItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRe
}
// 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 *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -91,23 +91,23 @@ func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequ
}
// GetGroupId gets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) GetGroupId()(*string) {
return m.GetBackingStore().Get("groupId");
return m.groupId
}
// GetId gets the id property value. The id property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) GetId()(*string) {
return m.GetBackingStore().Get("id");
return m.id
}
// GetRenameAs gets the renameAs property value. The renameAs property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) GetRenameAs()(*string) {
return m.GetBackingStore().Get("renameAs");
return m.renameAs
}
// GetSiteCollectionId gets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) GetSiteCollectionId()(*string) {
return m.GetBackingStore().Get("siteCollectionId");
return m.siteCollectionId
}
// GetSiteId gets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) GetSiteId()(*string) {
return m.GetBackingStore().Get("siteId");
return m.siteId
}
// Serialize serializes information the current object
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -141,33 +141,35 @@ func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequ
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetGroupId sets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) SetGroupId(value *string)() {
m.GetBackingStore().Set("groupId", value)
m.groupId = value
}
// SetId sets the id property value. The id property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) SetId(value *string)() {
m.GetBackingStore().Set("id", value)
m.id = value
}
// SetRenameAs sets the renameAs property value. The renameAs property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) SetRenameAs(value *string)() {
m.GetBackingStore().Set("renameAs", value)
m.renameAs = value
}
// SetSiteCollectionId sets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) SetSiteCollectionId(value *string)() {
m.GetBackingStore().Set("siteCollectionId", value)
m.siteCollectionId = value
}
// SetSiteId sets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBody) SetSiteId(value *string)() {
m.GetBackingStore().Set("siteId", value)
m.siteId = value
}

View File

@ -7,15 +7,12 @@ import (
// ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBodyable
type ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetGroupId()(*string)
GetId()(*string)
GetRenameAs()(*string)
GetSiteCollectionId()(*string)
GetSiteId()(*string)
SetBackingStore(value BackingStore)()
SetGroupId(value *string)()
SetId(value *string)()
SetRenameAs(value *string)()

View File

@ -6,14 +6,23 @@ import (
// ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody provides operations to call the copyToSectionGroup method.
type ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The groupId property
groupId *string
// The id property
id *string
// The renameAs property
renameAs *string
// The siteCollectionId property
siteCollectionId *string
// The siteId property
siteId *string
}
// NewItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody instantiates a new ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody and sets the default values.
func NewItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody()(*ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) {
m := &ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,16 +32,7 @@ func CreateItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPo
}
// 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 *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -91,23 +91,23 @@ func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPost
}
// GetGroupId gets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) GetGroupId()(*string) {
return m.GetBackingStore().Get("groupId");
return m.groupId
}
// GetId gets the id property value. The id property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) GetId()(*string) {
return m.GetBackingStore().Get("id");
return m.id
}
// GetRenameAs gets the renameAs property value. The renameAs property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) GetRenameAs()(*string) {
return m.GetBackingStore().Get("renameAs");
return m.renameAs
}
// GetSiteCollectionId gets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) GetSiteCollectionId()(*string) {
return m.GetBackingStore().Get("siteCollectionId");
return m.siteCollectionId
}
// GetSiteId gets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) GetSiteId()(*string) {
return m.GetBackingStore().Get("siteId");
return m.siteId
}
// Serialize serializes information the current object
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -141,33 +141,35 @@ func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPost
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetGroupId sets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) SetGroupId(value *string)() {
m.GetBackingStore().Set("groupId", value)
m.groupId = value
}
// SetId sets the id property value. The id property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) SetId(value *string)() {
m.GetBackingStore().Set("id", value)
m.id = value
}
// SetRenameAs sets the renameAs property value. The renameAs property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) SetRenameAs(value *string)() {
m.GetBackingStore().Set("renameAs", value)
m.renameAs = value
}
// SetSiteCollectionId sets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) SetSiteCollectionId(value *string)() {
m.GetBackingStore().Set("siteCollectionId", value)
m.siteCollectionId = value
}
// SetSiteId sets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBody) SetSiteId(value *string)() {
m.GetBackingStore().Set("siteId", value)
m.siteId = value
}

View File

@ -7,15 +7,12 @@ import (
// ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBodyable
type ItemSitesItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetGroupId()(*string)
GetId()(*string)
GetRenameAs()(*string)
GetSiteCollectionId()(*string)
GetSiteId()(*string)
SetBackingStore(value BackingStore)()
SetGroupId(value *string)()
SetId(value *string)()
SetRenameAs(value *string)()

View File

@ -6,14 +6,21 @@ import (
// ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody provides operations to call the copyToSection method.
type ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The groupId property
groupId *string
// The id property
id *string
// The siteCollectionId property
siteCollectionId *string
// The siteId property
siteId *string
}
// NewItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody instantiates a new ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody and sets the default values.
func NewItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody()(*ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) {
m := &ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,16 +30,7 @@ func CreateItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSecti
}
// 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 *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -81,19 +79,19 @@ func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSection
}
// GetGroupId gets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetGroupId()(*string) {
return m.GetBackingStore().Get("groupId");
return m.groupId
}
// GetId gets the id property value. The id property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetId()(*string) {
return m.GetBackingStore().Get("id");
return m.id
}
// GetSiteCollectionId gets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetSiteCollectionId()(*string) {
return m.GetBackingStore().Get("siteCollectionId");
return m.siteCollectionId
}
// GetSiteId gets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) GetSiteId()(*string) {
return m.GetBackingStore().Get("siteId");
return m.siteId
}
// Serialize serializes information the current object
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -121,29 +119,31 @@ func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSection
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetGroupId sets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) SetGroupId(value *string)() {
m.GetBackingStore().Set("groupId", value)
m.groupId = value
}
// SetId sets the id property value. The id property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) SetId(value *string)() {
m.GetBackingStore().Set("id", value)
m.id = value
}
// SetSiteCollectionId sets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) SetSiteCollectionId(value *string)() {
m.GetBackingStore().Set("siteCollectionId", value)
m.siteCollectionId = value
}
// SetSiteId sets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBody) SetSiteId(value *string)() {
m.GetBackingStore().Set("siteId", value)
m.siteId = value
}

View File

@ -7,14 +7,11 @@ import (
// ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBodyable
type ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetGroupId()(*string)
GetId()(*string)
GetSiteCollectionId()(*string)
GetSiteId()(*string)
SetBackingStore(value BackingStore)()
SetGroupId(value *string)()
SetId(value *string)()
SetSiteCollectionId(value *string)()

View File

@ -7,14 +7,15 @@ import (
// ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody provides operations to call the onenotePatchContent method.
type ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The commands property
commands []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable
}
// NewItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody instantiates a new ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody and sets the default values.
func NewItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody()(*ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) {
m := &ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -24,20 +25,11 @@ func CreateItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatc
}
// 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 *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetCommands gets the commands property value. The commands property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) GetCommands()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable) {
return m.GetBackingStore().Get("commands");
return m.commands
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -48,9 +40,9 @@ func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchC
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommand, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommand))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable)
}
m.SetCommands(res)
}
@ -63,25 +55,26 @@ func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchC
if m.GetCommands() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCommands()))
for i, v := range m.GetCommands() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err := writer.WriteCollectionOfObjectValues("commands", cast)
if err != nil {
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetCommands sets the commands property value. The commands property
func (m *ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBody) SetCommands(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable)() {
m.GetBackingStore().Set("commands", value)
m.commands = value
}

View File

@ -8,10 +8,7 @@ import (
// ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBodyable
type ItemSitesItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetCommands()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable)
SetBackingStore(value BackingStore)()
SetCommands(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable)()
}

View File

@ -6,14 +6,23 @@ import (
// ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody provides operations to call the copyToNotebook method.
type ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The groupId property
groupId *string
// The id property
id *string
// The renameAs property
renameAs *string
// The siteCollectionId property
siteCollectionId *string
// The siteId property
siteId *string
}
// NewItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody instantiates a new ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody and sets the default values.
func NewItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody()(*ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody) {
m := &ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,16 +32,7 @@ func CreateItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBodyFromDisc
}
// 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 *ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -91,23 +91,23 @@ func (m *ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody) GetField
}
// GetGroupId gets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody) GetGroupId()(*string) {
return m.GetBackingStore().Get("groupId");
return m.groupId
}
// GetId gets the id property value. The id property
func (m *ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody) GetId()(*string) {
return m.GetBackingStore().Get("id");
return m.id
}
// GetRenameAs gets the renameAs property value. The renameAs property
func (m *ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody) GetRenameAs()(*string) {
return m.GetBackingStore().Get("renameAs");
return m.renameAs
}
// GetSiteCollectionId gets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody) GetSiteCollectionId()(*string) {
return m.GetBackingStore().Get("siteCollectionId");
return m.siteCollectionId
}
// GetSiteId gets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody) GetSiteId()(*string) {
return m.GetBackingStore().Get("siteId");
return m.siteId
}
// Serialize serializes information the current object
func (m *ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -141,33 +141,35 @@ func (m *ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody) Serializ
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetGroupId sets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody) SetGroupId(value *string)() {
m.GetBackingStore().Set("groupId", value)
m.groupId = value
}
// SetId sets the id property value. The id property
func (m *ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody) SetId(value *string)() {
m.GetBackingStore().Set("id", value)
m.id = value
}
// SetRenameAs sets the renameAs property value. The renameAs property
func (m *ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody) SetRenameAs(value *string)() {
m.GetBackingStore().Set("renameAs", value)
m.renameAs = value
}
// SetSiteCollectionId sets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody) SetSiteCollectionId(value *string)() {
m.GetBackingStore().Set("siteCollectionId", value)
m.siteCollectionId = value
}
// SetSiteId sets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBody) SetSiteId(value *string)() {
m.GetBackingStore().Set("siteId", value)
m.siteId = value
}

View File

@ -7,15 +7,12 @@ import (
// ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBodyable
type ItemSitesItemOnenoteSectionsItemCopyToNotebookPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetGroupId()(*string)
GetId()(*string)
GetRenameAs()(*string)
GetSiteCollectionId()(*string)
GetSiteId()(*string)
SetBackingStore(value BackingStore)()
SetGroupId(value *string)()
SetId(value *string)()
SetRenameAs(value *string)()

View File

@ -6,14 +6,23 @@ import (
// ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody provides operations to call the copyToSectionGroup method.
type ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The groupId property
groupId *string
// The id property
id *string
// The renameAs property
renameAs *string
// The siteCollectionId property
siteCollectionId *string
// The siteId property
siteId *string
}
// NewItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody instantiates a new ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody and sets the default values.
func NewItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody()(*ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody) {
m := &ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,16 +32,7 @@ func CreateItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBodyFrom
}
// 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 *ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -91,23 +91,23 @@ func (m *ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody) GetF
}
// GetGroupId gets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody) GetGroupId()(*string) {
return m.GetBackingStore().Get("groupId");
return m.groupId
}
// GetId gets the id property value. The id property
func (m *ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody) GetId()(*string) {
return m.GetBackingStore().Get("id");
return m.id
}
// GetRenameAs gets the renameAs property value. The renameAs property
func (m *ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody) GetRenameAs()(*string) {
return m.GetBackingStore().Get("renameAs");
return m.renameAs
}
// GetSiteCollectionId gets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody) GetSiteCollectionId()(*string) {
return m.GetBackingStore().Get("siteCollectionId");
return m.siteCollectionId
}
// GetSiteId gets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody) GetSiteId()(*string) {
return m.GetBackingStore().Get("siteId");
return m.siteId
}
// Serialize serializes information the current object
func (m *ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -141,33 +141,35 @@ func (m *ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody) Seri
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetGroupId sets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody) SetGroupId(value *string)() {
m.GetBackingStore().Set("groupId", value)
m.groupId = value
}
// SetId sets the id property value. The id property
func (m *ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody) SetId(value *string)() {
m.GetBackingStore().Set("id", value)
m.id = value
}
// SetRenameAs sets the renameAs property value. The renameAs property
func (m *ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody) SetRenameAs(value *string)() {
m.GetBackingStore().Set("renameAs", value)
m.renameAs = value
}
// SetSiteCollectionId sets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody) SetSiteCollectionId(value *string)() {
m.GetBackingStore().Set("siteCollectionId", value)
m.siteCollectionId = value
}
// SetSiteId sets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBody) SetSiteId(value *string)() {
m.GetBackingStore().Set("siteId", value)
m.siteId = value
}

View File

@ -7,15 +7,12 @@ import (
// ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBodyable
type ItemSitesItemOnenoteSectionsItemCopyToSectionGroupPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetGroupId()(*string)
GetId()(*string)
GetRenameAs()(*string)
GetSiteCollectionId()(*string)
GetSiteId()(*string)
SetBackingStore(value BackingStore)()
SetGroupId(value *string)()
SetId(value *string)()
SetRenameAs(value *string)()

View File

@ -6,14 +6,21 @@ import (
// ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody provides operations to call the copyToSection method.
type ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The groupId property
groupId *string
// The id property
id *string
// The siteCollectionId property
siteCollectionId *string
// The siteId property
siteId *string
}
// NewItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody instantiates a new ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody and sets the default values.
func NewItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody()(*ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody) {
m := &ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,16 +30,7 @@ func CreateItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody
}
// 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 *ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -81,19 +79,19 @@ func (m *ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody)
}
// GetGroupId gets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody) GetGroupId()(*string) {
return m.GetBackingStore().Get("groupId");
return m.groupId
}
// GetId gets the id property value. The id property
func (m *ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody) GetId()(*string) {
return m.GetBackingStore().Get("id");
return m.id
}
// GetSiteCollectionId gets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody) GetSiteCollectionId()(*string) {
return m.GetBackingStore().Get("siteCollectionId");
return m.siteCollectionId
}
// GetSiteId gets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody) GetSiteId()(*string) {
return m.GetBackingStore().Get("siteId");
return m.siteId
}
// Serialize serializes information the current object
func (m *ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -121,29 +119,31 @@ func (m *ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody)
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetGroupId sets the groupId property value. The groupId property
func (m *ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody) SetGroupId(value *string)() {
m.GetBackingStore().Set("groupId", value)
m.groupId = value
}
// SetId sets the id property value. The id property
func (m *ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody) SetId(value *string)() {
m.GetBackingStore().Set("id", value)
m.id = value
}
// SetSiteCollectionId sets the siteCollectionId property value. The siteCollectionId property
func (m *ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody) SetSiteCollectionId(value *string)() {
m.GetBackingStore().Set("siteCollectionId", value)
m.siteCollectionId = value
}
// SetSiteId sets the siteId property value. The siteId property
func (m *ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBody) SetSiteId(value *string)() {
m.GetBackingStore().Set("siteId", value)
m.siteId = value
}

View File

@ -7,14 +7,11 @@ import (
// ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBodyable
type ItemSitesItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetGroupId()(*string)
GetId()(*string)
GetSiteCollectionId()(*string)
GetSiteId()(*string)
SetBackingStore(value BackingStore)()
SetGroupId(value *string)()
SetId(value *string)()
SetSiteCollectionId(value *string)()

View File

@ -7,14 +7,15 @@ import (
// ItemSitesItemOnenoteSectionsItemPagesItemOnenotePatchContentPostRequestBody provides operations to call the onenotePatchContent method.
type ItemSitesItemOnenoteSectionsItemPagesItemOnenotePatchContentPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The commands property
commands []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable
}
// NewItemSitesItemOnenoteSectionsItemPagesItemOnenotePatchContentPostRequestBody instantiates a new ItemSitesItemOnenoteSectionsItemPagesItemOnenotePatchContentPostRequestBody and sets the default values.
func NewItemSitesItemOnenoteSectionsItemPagesItemOnenotePatchContentPostRequestBody()(*ItemSitesItemOnenoteSectionsItemPagesItemOnenotePatchContentPostRequestBody) {
m := &ItemSitesItemOnenoteSectionsItemPagesItemOnenotePatchContentPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -24,20 +25,11 @@ func CreateItemSitesItemOnenoteSectionsItemPagesItemOnenotePatchContentPostReque
}
// 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 *ItemSitesItemOnenoteSectionsItemPagesItemOnenotePatchContentPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteSectionsItemPagesItemOnenotePatchContentPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetCommands gets the commands property value. The commands property
func (m *ItemSitesItemOnenoteSectionsItemPagesItemOnenotePatchContentPostRequestBody) GetCommands()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable) {
return m.GetBackingStore().Get("commands");
return m.commands
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemOnenoteSectionsItemPagesItemOnenotePatchContentPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -48,9 +40,9 @@ func (m *ItemSitesItemOnenoteSectionsItemPagesItemOnenotePatchContentPostRequest
return err
}
if val != nil {
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommand, len(val))
res := make([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable, len(val))
for i, v := range val {
res[i] = *(v.(*ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommand))
res[i] = v.(ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable)
}
m.SetCommands(res)
}
@ -63,25 +55,26 @@ func (m *ItemSitesItemOnenoteSectionsItemPagesItemOnenotePatchContentPostRequest
if m.GetCommands() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCommands()))
for i, v := range m.GetCommands() {
temp := v
cast[i] = i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable(&temp)
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err := writer.WriteCollectionOfObjectValues("commands", cast)
if err != nil {
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemOnenoteSectionsItemPagesItemOnenotePatchContentPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemOnenoteSectionsItemPagesItemOnenotePatchContentPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetCommands sets the commands property value. The commands property
func (m *ItemSitesItemOnenoteSectionsItemPagesItemOnenotePatchContentPostRequestBody) SetCommands(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable)() {
m.GetBackingStore().Set("commands", value)
m.commands = value
}

View File

@ -8,10 +8,7 @@ import (
// ItemSitesItemOnenoteSectionsItemPagesItemOnenotePatchContentPostRequestBodyable
type ItemSitesItemOnenoteSectionsItemPagesItemOnenotePatchContentPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
IBackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(BackingStore)
GetCommands()([]ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable)
SetBackingStore(value BackingStore)()
SetCommands(value []ic45d1687cb32013b93e5270fd0556a260c6a6c0c3808e299c1c39a4f617eb8f4.OnenotePatchContentCommandable)()
}

View File

@ -6,14 +6,21 @@ import (
// ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody provides operations to call the getWebPartsByPosition method.
type ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody struct {
// Stores model information.
backingStore BackingStore
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]interface{}
// The columnId property
columnId *float64
// The horizontalSectionId property
horizontalSectionId *float64
// The isInVerticalSection property
isInVerticalSection *bool
// The webPartIndex property
webPartIndex *float64
}
// NewItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody instantiates a new ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody and sets the default values.
func NewItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody()(*ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody) {
m := &ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody{
}
m._backingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
m.SetAdditionalData(make(map[string]interface{}));
return m
}
@ -23,20 +30,11 @@ func CreateItemSitesItemPagesItemGetWebPartsByPositionPostRequestBodyFromDiscrim
}
// 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 *ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody) GetAdditionalData()(map[string]interface{}) {
map[string]interface{} value = m._backingStore.Get("additionalData")
if value == nil {
value = make(map[string]interface{});
m.SetAdditionalData(value);
}
return value;
}
// GetBackingStore gets the backingStore property value. Stores model information.
func (m *ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody) GetBackingStore()(BackingStore) {
return m.backingStore
return m.additionalData
}
// GetColumnId gets the columnId property value. The columnId property
func (m *ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody) GetColumnId()(*float64) {
return m.GetBackingStore().Get("columnId");
return m.columnId
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
@ -85,15 +83,15 @@ func (m *ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody) GetFieldDes
}
// GetHorizontalSectionId gets the horizontalSectionId property value. The horizontalSectionId property
func (m *ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody) GetHorizontalSectionId()(*float64) {
return m.GetBackingStore().Get("horizontalSectionId");
return m.horizontalSectionId
}
// GetIsInVerticalSection gets the isInVerticalSection property value. The isInVerticalSection property
func (m *ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody) GetIsInVerticalSection()(*bool) {
return m.GetBackingStore().Get("isInVerticalSection");
return m.isInVerticalSection
}
// GetWebPartIndex gets the webPartIndex property value. The webPartIndex property
func (m *ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody) GetWebPartIndex()(*float64) {
return m.GetBackingStore().Get("webPartIndex");
return m.webPartIndex
}
// Serialize serializes information the current object
func (m *ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
@ -121,29 +119,31 @@ func (m *ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody) Serialize(w
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody) SetAdditionalData(value map[string]interface{})() {
m.GetBackingStore().Set("additionalData", value)
}
// SetBackingStore sets the backingStore property value. Stores model information.
func (m *ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody) SetBackingStore(value BackingStore)() {
m.GetBackingStore().Set("backingStore", value)
m.additionalData = value
}
// SetColumnId sets the columnId property value. The columnId property
func (m *ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody) SetColumnId(value *float64)() {
m.GetBackingStore().Set("columnId", value)
m.columnId = value
}
// SetHorizontalSectionId sets the horizontalSectionId property value. The horizontalSectionId property
func (m *ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody) SetHorizontalSectionId(value *float64)() {
m.GetBackingStore().Set("horizontalSectionId", value)
m.horizontalSectionId = value
}
// SetIsInVerticalSection sets the isInVerticalSection property value. The isInVerticalSection property
func (m *ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody) SetIsInVerticalSection(value *bool)() {
m.GetBackingStore().Set("isInVerticalSection", value)
m.isInVerticalSection = value
}
// SetWebPartIndex sets the webPartIndex property value. The webPartIndex property
func (m *ItemSitesItemPagesItemGetWebPartsByPositionPostRequestBody) SetWebPartIndex(value *float64)() {
m.GetBackingStore().Set("webPartIndex", value)
m.webPartIndex = value
}

Some files were not shown because too many files have changed in this diff Show More