-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update generated files with build 132033
- Loading branch information
Microsoft Graph DevX Tooling
authored and
Microsoft Graph DevX Tooling
committed
Jan 23, 2024
1 parent
b9f0b49
commit ce9589e
Showing
324 changed files
with
19,209 additions
and
497 deletions.
There are no files selected for viewing
123 changes: 123 additions & 0 deletions
123
applications/item_synchronization_secrets_put_request_body.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
package applications | ||
|
||
import ( | ||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" | ||
iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" | ||
ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" | ||
) | ||
|
||
// ItemSynchronizationSecretsPutRequestBody | ||
type ItemSynchronizationSecretsPutRequestBody struct { | ||
// Stores model information. | ||
backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore | ||
} | ||
// NewItemSynchronizationSecretsPutRequestBody instantiates a new ItemSynchronizationSecretsPutRequestBody and sets the default values. | ||
func NewItemSynchronizationSecretsPutRequestBody()(*ItemSynchronizationSecretsPutRequestBody) { | ||
m := &ItemSynchronizationSecretsPutRequestBody{ | ||
} | ||
m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); | ||
m.SetAdditionalData(make(map[string]any)) | ||
return m | ||
} | ||
// CreateItemSynchronizationSecretsPutRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value | ||
func CreateItemSynchronizationSecretsPutRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { | ||
return NewItemSynchronizationSecretsPutRequestBody(), nil | ||
} | ||
// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. | ||
func (m *ItemSynchronizationSecretsPutRequestBody) GetAdditionalData()(map[string]any) { | ||
val , err := m.backingStore.Get("additionalData") | ||
if err != nil { | ||
panic(err) | ||
} | ||
if val == nil { | ||
var value = make(map[string]any); | ||
m.SetAdditionalData(value); | ||
} | ||
return val.(map[string]any) | ||
} | ||
// GetBackingStore gets the BackingStore property value. Stores model information. | ||
func (m *ItemSynchronizationSecretsPutRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { | ||
return m.backingStore | ||
} | ||
// GetFieldDeserializers the deserialization information for the current model | ||
func (m *ItemSynchronizationSecretsPutRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { | ||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) | ||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { | ||
val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateSynchronizationSecretKeyStringValuePairFromDiscriminatorValue) | ||
if err != nil { | ||
return err | ||
} | ||
if val != nil { | ||
res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SynchronizationSecretKeyStringValuePairable, len(val)) | ||
for i, v := range val { | ||
if v != nil { | ||
res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SynchronizationSecretKeyStringValuePairable) | ||
} | ||
} | ||
m.SetValue(res) | ||
} | ||
return nil | ||
} | ||
return res | ||
} | ||
// GetValue gets the value property value. The value property | ||
func (m *ItemSynchronizationSecretsPutRequestBody) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SynchronizationSecretKeyStringValuePairable) { | ||
val, err := m.GetBackingStore().Get("value") | ||
if err != nil { | ||
panic(err) | ||
} | ||
if val != nil { | ||
return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SynchronizationSecretKeyStringValuePairable) | ||
} | ||
return nil | ||
} | ||
// Serialize serializes information the current object | ||
func (m *ItemSynchronizationSecretsPutRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { | ||
if m.GetValue() != nil { | ||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) | ||
for i, v := range m.GetValue() { | ||
if v != nil { | ||
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 *ItemSynchronizationSecretsPutRequestBody) SetAdditionalData(value map[string]any)() { | ||
err := m.GetBackingStore().Set("additionalData", value) | ||
if err != nil { | ||
panic(err) | ||
} | ||
} | ||
// SetBackingStore sets the BackingStore property value. Stores model information. | ||
func (m *ItemSynchronizationSecretsPutRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { | ||
m.backingStore = value | ||
} | ||
// SetValue sets the value property value. The value property | ||
func (m *ItemSynchronizationSecretsPutRequestBody) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SynchronizationSecretKeyStringValuePairable)() { | ||
err := m.GetBackingStore().Set("value", value) | ||
if err != nil { | ||
panic(err) | ||
} | ||
} | ||
// ItemSynchronizationSecretsPutRequestBodyable | ||
type ItemSynchronizationSecretsPutRequestBodyable interface { | ||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder | ||
ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel | ||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable | ||
GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) | ||
GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SynchronizationSecretKeyStringValuePairable) | ||
SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() | ||
SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SynchronizationSecretKeyStringValuePairable)() | ||
} |
123 changes: 123 additions & 0 deletions
123
applications/item_synchronization_secrets_put_response.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
package applications | ||
|
||
import ( | ||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" | ||
iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" | ||
ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" | ||
) | ||
|
||
// ItemSynchronizationSecretsPutResponse | ||
type ItemSynchronizationSecretsPutResponse struct { | ||
// Stores model information. | ||
backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore | ||
} | ||
// NewItemSynchronizationSecretsPutResponse instantiates a new ItemSynchronizationSecretsPutResponse and sets the default values. | ||
func NewItemSynchronizationSecretsPutResponse()(*ItemSynchronizationSecretsPutResponse) { | ||
m := &ItemSynchronizationSecretsPutResponse{ | ||
} | ||
m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); | ||
m.SetAdditionalData(make(map[string]any)) | ||
return m | ||
} | ||
// CreateItemSynchronizationSecretsPutResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value | ||
func CreateItemSynchronizationSecretsPutResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { | ||
return NewItemSynchronizationSecretsPutResponse(), nil | ||
} | ||
// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. | ||
func (m *ItemSynchronizationSecretsPutResponse) GetAdditionalData()(map[string]any) { | ||
val , err := m.backingStore.Get("additionalData") | ||
if err != nil { | ||
panic(err) | ||
} | ||
if val == nil { | ||
var value = make(map[string]any); | ||
m.SetAdditionalData(value); | ||
} | ||
return val.(map[string]any) | ||
} | ||
// GetBackingStore gets the BackingStore property value. Stores model information. | ||
func (m *ItemSynchronizationSecretsPutResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { | ||
return m.backingStore | ||
} | ||
// GetFieldDeserializers the deserialization information for the current model | ||
func (m *ItemSynchronizationSecretsPutResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { | ||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) | ||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { | ||
val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateSynchronizationSecretKeyStringValuePairFromDiscriminatorValue) | ||
if err != nil { | ||
return err | ||
} | ||
if val != nil { | ||
res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SynchronizationSecretKeyStringValuePairable, len(val)) | ||
for i, v := range val { | ||
if v != nil { | ||
res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SynchronizationSecretKeyStringValuePairable) | ||
} | ||
} | ||
m.SetValue(res) | ||
} | ||
return nil | ||
} | ||
return res | ||
} | ||
// GetValue gets the value property value. The value property | ||
func (m *ItemSynchronizationSecretsPutResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SynchronizationSecretKeyStringValuePairable) { | ||
val, err := m.GetBackingStore().Get("value") | ||
if err != nil { | ||
panic(err) | ||
} | ||
if val != nil { | ||
return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SynchronizationSecretKeyStringValuePairable) | ||
} | ||
return nil | ||
} | ||
// Serialize serializes information the current object | ||
func (m *ItemSynchronizationSecretsPutResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { | ||
if m.GetValue() != nil { | ||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) | ||
for i, v := range m.GetValue() { | ||
if v != nil { | ||
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 *ItemSynchronizationSecretsPutResponse) SetAdditionalData(value map[string]any)() { | ||
err := m.GetBackingStore().Set("additionalData", value) | ||
if err != nil { | ||
panic(err) | ||
} | ||
} | ||
// SetBackingStore sets the BackingStore property value. Stores model information. | ||
func (m *ItemSynchronizationSecretsPutResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { | ||
m.backingStore = value | ||
} | ||
// SetValue sets the value property value. The value property | ||
func (m *ItemSynchronizationSecretsPutResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SynchronizationSecretKeyStringValuePairable)() { | ||
err := m.GetBackingStore().Set("value", value) | ||
if err != nil { | ||
panic(err) | ||
} | ||
} | ||
// ItemSynchronizationSecretsPutResponseable | ||
type ItemSynchronizationSecretsPutResponseable interface { | ||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder | ||
ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel | ||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable | ||
GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) | ||
GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SynchronizationSecretKeyStringValuePairable) | ||
SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() | ||
SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SynchronizationSecretKeyStringValuePairable)() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.