diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c31b24bf1..f95a3626f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +## [0.21.0] - 2022-04-28 + +### Changed + +- Weekly generation + ## [0.20.0] - 2022-04-19 ### Changed diff --git a/graph_request_adapter.go b/graph_request_adapter.go index db7cc3a304..2c20bc83a0 100644 --- a/graph_request_adapter.go +++ b/graph_request_adapter.go @@ -10,7 +10,7 @@ import ( var clientOptions = core.GraphClientOptions{ GraphServiceVersion: "", //v1 doesn't include the service version in the telemetry header - GraphServiceLibraryVersion: "0.20.0", + GraphServiceLibraryVersion: "0.21.0", } // GetDefaultClientOptions returns the default client options used by the GraphRequestAdapterBase and the middleware. @@ -72,3 +72,4 @@ func NewGraphRequestAdapterWithParseNodeFactoryAndSerializationWriterFactoryAndH return result, nil } + diff --git a/models/action_state.go b/models/action_state.go index 510c897892..ec7e76d209 100644 --- a/models/action_state.go +++ b/models/action_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the drive singleton. type ActionState int const ( diff --git a/models/agreement_acceptance_state.go b/models/agreement_acceptance_state.go index 292a65f62b..3c81ffb72f 100644 --- a/models/agreement_acceptance_state.go +++ b/models/agreement_acceptance_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the collection of agreement entities. +// Provides operations to manage the collection of agreementAcceptance entities. type AgreementAcceptanceState int const ( diff --git a/models/authentication_method_state.go b/models/authentication_method_state.go index 88f8069d07..1634594f16 100644 --- a/models/authentication_method_state.go +++ b/models/authentication_method_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the authenticationMethodsPolicy singleton. +// Provides operations to manage the collection of authenticationMethodConfiguration entities. type AuthenticationMethodState int const ( diff --git a/models/call.go b/models/call.go index 8f1286e90e..74f1d7372e 100644 --- a/models/call.go +++ b/models/call.go @@ -13,7 +13,7 @@ type Call struct { callbackUri *string // A unique identifier for all the participant calls in a conference or a unique identifier for two participant calls in a P2P call. This needs to be copied over from Microsoft.Graph.Call.CallChainId. callChainId *string - // The callOptions property + // Contains the optional features for the call. callOptions CallOptionsable // The routing information on how the call was retargeted. Read-only. callRoutes []CallRouteable @@ -89,7 +89,7 @@ func (m *Call) GetCallChainId()(*string) { return m.callChainId } } -// GetCallOptions gets the callOptions property value. The callOptions property +// GetCallOptions gets the callOptions property value. Contains the optional features for the call. func (m *Call) GetCallOptions()(CallOptionsable) { if m == nil { return nil @@ -694,7 +694,7 @@ func (m *Call) SetCallChainId(value *string)() { m.callChainId = value } } -// SetCallOptions sets the callOptions property value. The callOptions property +// SetCallOptions sets the callOptions property value. Contains the optional features for the call. func (m *Call) SetCallOptions(value CallOptionsable)() { if m != nil { m.callOptions = value diff --git a/models/compliance_state.go b/models/compliance_state.go index 1b910b03c2..c99ded35a5 100644 --- a/models/compliance_state.go +++ b/models/compliance_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the drive singleton. type ComplianceState int const ( diff --git a/models/device_enrollment_type.go b/models/device_enrollment_type.go index 26be1c7383..745a3b9578 100644 --- a/models/device_enrollment_type.go +++ b/models/device_enrollment_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the drive singleton. type DeviceEnrollmentType int const ( diff --git a/models/device_management_exchange_access_state.go b/models/device_management_exchange_access_state.go index 1830430df7..622be6159c 100644 --- a/models/device_management_exchange_access_state.go +++ b/models/device_management_exchange_access_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the drive singleton. type DeviceManagementExchangeAccessState int const ( diff --git a/models/device_management_exchange_access_state_reason.go b/models/device_management_exchange_access_state_reason.go index c4364cdc8d..21ed0e6128 100644 --- a/models/device_management_exchange_access_state_reason.go +++ b/models/device_management_exchange_access_state_reason.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the drive singleton. type DeviceManagementExchangeAccessStateReason int const ( diff --git a/models/device_registration_state.go b/models/device_registration_state.go index 6a0965f866..8bd20602d3 100644 --- a/models/device_registration_state.go +++ b/models/device_registration_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the drive singleton. type DeviceRegistrationState int const ( diff --git a/models/directory_audit.go b/models/directory_audit.go index 495f97333d..38e62cb21a 100644 --- a/models/directory_audit.go +++ b/models/directory_audit.go @@ -22,7 +22,7 @@ type DirectoryAudit struct { initiatedBy AuditActivityInitiatorable // Indicates information on which service initiated the activity (For example: Self-service Password Management, Core Directory, B2C, Invited Users, Microsoft Identity Manager, Privileged Identity Management. loggedByService *string - // The operationType property + // Indicates the type of operation that was performed. The possible values include but are not limited to the following: Add, Assign, Update, Unassign, and Delete. operationType *string // Indicates the result of the activity. Possible values are: success, failure, timeout, unknownFutureValue. result *OperationResult @@ -221,7 +221,7 @@ func (m *DirectoryAudit) GetLoggedByService()(*string) { return m.loggedByService } } -// GetOperationType gets the operationType property value. The operationType property +// GetOperationType gets the operationType property value. Indicates the type of operation that was performed. The possible values include but are not limited to the following: Add, Assign, Update, Unassign, and Delete. func (m *DirectoryAudit) GetOperationType()(*string) { if m == nil { return nil @@ -378,7 +378,7 @@ func (m *DirectoryAudit) SetLoggedByService(value *string)() { m.loggedByService = value } } -// SetOperationType sets the operationType property value. The operationType property +// SetOperationType sets the operationType property value. Indicates the type of operation that was performed. The possible values include but are not limited to the following: Add, Assign, Update, Unassign, and Delete. func (m *DirectoryAudit) SetOperationType(value *string)() { if m != nil { m.operationType = value diff --git a/models/managed_device_owner_type.go b/models/managed_device_owner_type.go index 0076eb7a0b..900c671a29 100644 --- a/models/managed_device_owner_type.go +++ b/models/managed_device_owner_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the drive singleton. type ManagedDeviceOwnerType int const ( diff --git a/models/managed_device_partner_reported_health_state.go b/models/managed_device_partner_reported_health_state.go index 8e04615dda..2db5bd8838 100644 --- a/models/managed_device_partner_reported_health_state.go +++ b/models/managed_device_partner_reported_health_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the drive singleton. type ManagedDevicePartnerReportedHealthState int const ( diff --git a/models/management_agent_type.go b/models/management_agent_type.go index db75f786a6..cf00822b75 100644 --- a/models/management_agent_type.go +++ b/models/management_agent_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the drive singleton. type ManagementAgentType int const ( diff --git a/models/planner_category_descriptions.go b/models/planner_category_descriptions.go index 7c58617365..75eaa57fb7 100644 --- a/models/planner_category_descriptions.go +++ b/models/planner_category_descriptions.go @@ -10,8 +10,40 @@ type PlannerCategoryDescriptions struct { additionalData map[string]interface{} // The label associated with Category 1 category1 *string + // The label associated with Category 10 + category10 *string + // The label associated with Category 11 + category11 *string + // The label associated with Category 12 + category12 *string + // The label associated with Category 13 + category13 *string + // The label associated with Category 14 + category14 *string + // The label associated with Category 15 + category15 *string + // The label associated with Category 16 + category16 *string + // The label associated with Category 17 + category17 *string + // The label associated with Category 18 + category18 *string + // The label associated with Category 19 + category19 *string // The label associated with Category 2 category2 *string + // The label associated with Category 20 + category20 *string + // The label associated with Category 21 + category21 *string + // The label associated with Category 22 + category22 *string + // The label associated with Category 23 + category23 *string + // The label associated with Category 24 + category24 *string + // The label associated with Category 25 + category25 *string // The label associated with Category 3 category3 *string // The label associated with Category 4 @@ -20,6 +52,12 @@ type PlannerCategoryDescriptions struct { category5 *string // The label associated with Category 6 category6 *string + // The label associated with Category 7 + category7 *string + // The label associated with Category 8 + category8 *string + // The label associated with Category 9 + category9 *string } // NewPlannerCategoryDescriptions instantiates a new plannerCategoryDescriptions and sets the default values. func NewPlannerCategoryDescriptions()(*PlannerCategoryDescriptions) { @@ -48,6 +86,86 @@ func (m *PlannerCategoryDescriptions) GetCategory1()(*string) { return m.category1 } } +// GetCategory10 gets the category10 property value. The label associated with Category 10 +func (m *PlannerCategoryDescriptions) GetCategory10()(*string) { + if m == nil { + return nil + } else { + return m.category10 + } +} +// GetCategory11 gets the category11 property value. The label associated with Category 11 +func (m *PlannerCategoryDescriptions) GetCategory11()(*string) { + if m == nil { + return nil + } else { + return m.category11 + } +} +// GetCategory12 gets the category12 property value. The label associated with Category 12 +func (m *PlannerCategoryDescriptions) GetCategory12()(*string) { + if m == nil { + return nil + } else { + return m.category12 + } +} +// GetCategory13 gets the category13 property value. The label associated with Category 13 +func (m *PlannerCategoryDescriptions) GetCategory13()(*string) { + if m == nil { + return nil + } else { + return m.category13 + } +} +// GetCategory14 gets the category14 property value. The label associated with Category 14 +func (m *PlannerCategoryDescriptions) GetCategory14()(*string) { + if m == nil { + return nil + } else { + return m.category14 + } +} +// GetCategory15 gets the category15 property value. The label associated with Category 15 +func (m *PlannerCategoryDescriptions) GetCategory15()(*string) { + if m == nil { + return nil + } else { + return m.category15 + } +} +// GetCategory16 gets the category16 property value. The label associated with Category 16 +func (m *PlannerCategoryDescriptions) GetCategory16()(*string) { + if m == nil { + return nil + } else { + return m.category16 + } +} +// GetCategory17 gets the category17 property value. The label associated with Category 17 +func (m *PlannerCategoryDescriptions) GetCategory17()(*string) { + if m == nil { + return nil + } else { + return m.category17 + } +} +// GetCategory18 gets the category18 property value. The label associated with Category 18 +func (m *PlannerCategoryDescriptions) GetCategory18()(*string) { + if m == nil { + return nil + } else { + return m.category18 + } +} +// GetCategory19 gets the category19 property value. The label associated with Category 19 +func (m *PlannerCategoryDescriptions) GetCategory19()(*string) { + if m == nil { + return nil + } else { + return m.category19 + } +} // GetCategory2 gets the category2 property value. The label associated with Category 2 func (m *PlannerCategoryDescriptions) GetCategory2()(*string) { if m == nil { @@ -56,6 +174,54 @@ func (m *PlannerCategoryDescriptions) GetCategory2()(*string) { return m.category2 } } +// GetCategory20 gets the category20 property value. The label associated with Category 20 +func (m *PlannerCategoryDescriptions) GetCategory20()(*string) { + if m == nil { + return nil + } else { + return m.category20 + } +} +// GetCategory21 gets the category21 property value. The label associated with Category 21 +func (m *PlannerCategoryDescriptions) GetCategory21()(*string) { + if m == nil { + return nil + } else { + return m.category21 + } +} +// GetCategory22 gets the category22 property value. The label associated with Category 22 +func (m *PlannerCategoryDescriptions) GetCategory22()(*string) { + if m == nil { + return nil + } else { + return m.category22 + } +} +// GetCategory23 gets the category23 property value. The label associated with Category 23 +func (m *PlannerCategoryDescriptions) GetCategory23()(*string) { + if m == nil { + return nil + } else { + return m.category23 + } +} +// GetCategory24 gets the category24 property value. The label associated with Category 24 +func (m *PlannerCategoryDescriptions) GetCategory24()(*string) { + if m == nil { + return nil + } else { + return m.category24 + } +} +// GetCategory25 gets the category25 property value. The label associated with Category 25 +func (m *PlannerCategoryDescriptions) GetCategory25()(*string) { + if m == nil { + return nil + } else { + return m.category25 + } +} // GetCategory3 gets the category3 property value. The label associated with Category 3 func (m *PlannerCategoryDescriptions) GetCategory3()(*string) { if m == nil { @@ -88,6 +254,30 @@ func (m *PlannerCategoryDescriptions) GetCategory6()(*string) { return m.category6 } } +// GetCategory7 gets the category7 property value. The label associated with Category 7 +func (m *PlannerCategoryDescriptions) GetCategory7()(*string) { + if m == nil { + return nil + } else { + return m.category7 + } +} +// GetCategory8 gets the category8 property value. The label associated with Category 8 +func (m *PlannerCategoryDescriptions) GetCategory8()(*string) { + if m == nil { + return nil + } else { + return m.category8 + } +} +// GetCategory9 gets the category9 property value. The label associated with Category 9 +func (m *PlannerCategoryDescriptions) GetCategory9()(*string) { + if m == nil { + return nil + } else { + return m.category9 + } +} // GetFieldDeserializers the deserialization information for the current model func (m *PlannerCategoryDescriptions) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) @@ -101,6 +291,106 @@ func (m *PlannerCategoryDescriptions) GetFieldDeserializers()(map[string]func(i8 } return nil } + res["category10"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory10(val) + } + return nil + } + res["category11"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory11(val) + } + return nil + } + res["category12"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory12(val) + } + return nil + } + res["category13"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory13(val) + } + return nil + } + res["category14"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory14(val) + } + return nil + } + res["category15"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory15(val) + } + return nil + } + res["category16"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory16(val) + } + return nil + } + res["category17"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory17(val) + } + return nil + } + res["category18"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory18(val) + } + return nil + } + res["category19"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory19(val) + } + return nil + } res["category2"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -111,6 +401,66 @@ func (m *PlannerCategoryDescriptions) GetFieldDeserializers()(map[string]func(i8 } return nil } + res["category20"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory20(val) + } + return nil + } + res["category21"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory21(val) + } + return nil + } + res["category22"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory22(val) + } + return nil + } + res["category23"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory23(val) + } + return nil + } + res["category24"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory24(val) + } + return nil + } + res["category25"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory25(val) + } + return nil + } res["category3"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -151,6 +501,36 @@ func (m *PlannerCategoryDescriptions) GetFieldDeserializers()(map[string]func(i8 } return nil } + res["category7"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory7(val) + } + return nil + } + res["category8"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory8(val) + } + return nil + } + res["category9"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory9(val) + } + return nil + } return res } // Serialize serializes information the current object @@ -161,12 +541,108 @@ func (m *PlannerCategoryDescriptions) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err := writer.WriteStringValue("category10", m.GetCategory10()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("category11", m.GetCategory11()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("category12", m.GetCategory12()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("category13", m.GetCategory13()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("category14", m.GetCategory14()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("category15", m.GetCategory15()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("category16", m.GetCategory16()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("category17", m.GetCategory17()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("category18", m.GetCategory18()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("category19", m.GetCategory19()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("category2", m.GetCategory2()) if err != nil { return err } } + { + err := writer.WriteStringValue("category20", m.GetCategory20()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("category21", m.GetCategory21()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("category22", m.GetCategory22()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("category23", m.GetCategory23()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("category24", m.GetCategory24()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("category25", m.GetCategory25()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("category3", m.GetCategory3()) if err != nil { @@ -191,6 +667,24 @@ func (m *PlannerCategoryDescriptions) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err := writer.WriteStringValue("category7", m.GetCategory7()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("category8", m.GetCategory8()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("category9", m.GetCategory9()) + if err != nil { + return err + } + } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -211,12 +705,108 @@ func (m *PlannerCategoryDescriptions) SetCategory1(value *string)() { m.category1 = value } } +// SetCategory10 sets the category10 property value. The label associated with Category 10 +func (m *PlannerCategoryDescriptions) SetCategory10(value *string)() { + if m != nil { + m.category10 = value + } +} +// SetCategory11 sets the category11 property value. The label associated with Category 11 +func (m *PlannerCategoryDescriptions) SetCategory11(value *string)() { + if m != nil { + m.category11 = value + } +} +// SetCategory12 sets the category12 property value. The label associated with Category 12 +func (m *PlannerCategoryDescriptions) SetCategory12(value *string)() { + if m != nil { + m.category12 = value + } +} +// SetCategory13 sets the category13 property value. The label associated with Category 13 +func (m *PlannerCategoryDescriptions) SetCategory13(value *string)() { + if m != nil { + m.category13 = value + } +} +// SetCategory14 sets the category14 property value. The label associated with Category 14 +func (m *PlannerCategoryDescriptions) SetCategory14(value *string)() { + if m != nil { + m.category14 = value + } +} +// SetCategory15 sets the category15 property value. The label associated with Category 15 +func (m *PlannerCategoryDescriptions) SetCategory15(value *string)() { + if m != nil { + m.category15 = value + } +} +// SetCategory16 sets the category16 property value. The label associated with Category 16 +func (m *PlannerCategoryDescriptions) SetCategory16(value *string)() { + if m != nil { + m.category16 = value + } +} +// SetCategory17 sets the category17 property value. The label associated with Category 17 +func (m *PlannerCategoryDescriptions) SetCategory17(value *string)() { + if m != nil { + m.category17 = value + } +} +// SetCategory18 sets the category18 property value. The label associated with Category 18 +func (m *PlannerCategoryDescriptions) SetCategory18(value *string)() { + if m != nil { + m.category18 = value + } +} +// SetCategory19 sets the category19 property value. The label associated with Category 19 +func (m *PlannerCategoryDescriptions) SetCategory19(value *string)() { + if m != nil { + m.category19 = value + } +} // SetCategory2 sets the category2 property value. The label associated with Category 2 func (m *PlannerCategoryDescriptions) SetCategory2(value *string)() { if m != nil { m.category2 = value } } +// SetCategory20 sets the category20 property value. The label associated with Category 20 +func (m *PlannerCategoryDescriptions) SetCategory20(value *string)() { + if m != nil { + m.category20 = value + } +} +// SetCategory21 sets the category21 property value. The label associated with Category 21 +func (m *PlannerCategoryDescriptions) SetCategory21(value *string)() { + if m != nil { + m.category21 = value + } +} +// SetCategory22 sets the category22 property value. The label associated with Category 22 +func (m *PlannerCategoryDescriptions) SetCategory22(value *string)() { + if m != nil { + m.category22 = value + } +} +// SetCategory23 sets the category23 property value. The label associated with Category 23 +func (m *PlannerCategoryDescriptions) SetCategory23(value *string)() { + if m != nil { + m.category23 = value + } +} +// SetCategory24 sets the category24 property value. The label associated with Category 24 +func (m *PlannerCategoryDescriptions) SetCategory24(value *string)() { + if m != nil { + m.category24 = value + } +} +// SetCategory25 sets the category25 property value. The label associated with Category 25 +func (m *PlannerCategoryDescriptions) SetCategory25(value *string)() { + if m != nil { + m.category25 = value + } +} // SetCategory3 sets the category3 property value. The label associated with Category 3 func (m *PlannerCategoryDescriptions) SetCategory3(value *string)() { if m != nil { @@ -241,3 +831,21 @@ func (m *PlannerCategoryDescriptions) SetCategory6(value *string)() { m.category6 = value } } +// SetCategory7 sets the category7 property value. The label associated with Category 7 +func (m *PlannerCategoryDescriptions) SetCategory7(value *string)() { + if m != nil { + m.category7 = value + } +} +// SetCategory8 sets the category8 property value. The label associated with Category 8 +func (m *PlannerCategoryDescriptions) SetCategory8(value *string)() { + if m != nil { + m.category8 = value + } +} +// SetCategory9 sets the category9 property value. The label associated with Category 9 +func (m *PlannerCategoryDescriptions) SetCategory9(value *string)() { + if m != nil { + m.category9 = value + } +} diff --git a/models/planner_category_descriptionsable.go b/models/planner_category_descriptionsable.go index 5817de402e..58daa5c9c6 100644 --- a/models/planner_category_descriptionsable.go +++ b/models/planner_category_descriptionsable.go @@ -9,15 +9,53 @@ type PlannerCategoryDescriptionsable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCategory1()(*string) + GetCategory10()(*string) + GetCategory11()(*string) + GetCategory12()(*string) + GetCategory13()(*string) + GetCategory14()(*string) + GetCategory15()(*string) + GetCategory16()(*string) + GetCategory17()(*string) + GetCategory18()(*string) + GetCategory19()(*string) GetCategory2()(*string) + GetCategory20()(*string) + GetCategory21()(*string) + GetCategory22()(*string) + GetCategory23()(*string) + GetCategory24()(*string) + GetCategory25()(*string) GetCategory3()(*string) GetCategory4()(*string) GetCategory5()(*string) GetCategory6()(*string) + GetCategory7()(*string) + GetCategory8()(*string) + GetCategory9()(*string) SetCategory1(value *string)() + SetCategory10(value *string)() + SetCategory11(value *string)() + SetCategory12(value *string)() + SetCategory13(value *string)() + SetCategory14(value *string)() + SetCategory15(value *string)() + SetCategory16(value *string)() + SetCategory17(value *string)() + SetCategory18(value *string)() + SetCategory19(value *string)() SetCategory2(value *string)() + SetCategory20(value *string)() + SetCategory21(value *string)() + SetCategory22(value *string)() + SetCategory23(value *string)() + SetCategory24(value *string)() + SetCategory25(value *string)() SetCategory3(value *string)() SetCategory4(value *string)() SetCategory5(value *string)() SetCategory6(value *string)() + SetCategory7(value *string)() + SetCategory8(value *string)() + SetCategory9(value *string)() } diff --git a/models/planner_container_type.go b/models/planner_container_type.go new file mode 100644 index 0000000000..e696e24394 --- /dev/null +++ b/models/planner_container_type.go @@ -0,0 +1,38 @@ +package models +import ( + "strings" + "errors" +) +// Provides operations to manage the drive singleton. +type PlannerContainerType int + +const ( + GROUP_PLANNERCONTAINERTYPE PlannerContainerType = iota + UNKNOWNFUTUREVALUE_PLANNERCONTAINERTYPE + ROSTER_PLANNERCONTAINERTYPE +) + +func (i PlannerContainerType) String() string { + return []string{"GROUP", "UNKNOWNFUTUREVALUE", "ROSTER"}[i] +} +func ParsePlannerContainerType(v string) (interface{}, error) { + result := GROUP_PLANNERCONTAINERTYPE + switch strings.ToUpper(v) { + case "GROUP": + result = GROUP_PLANNERCONTAINERTYPE + case "UNKNOWNFUTUREVALUE": + result = UNKNOWNFUTUREVALUE_PLANNERCONTAINERTYPE + case "ROSTER": + result = ROSTER_PLANNERCONTAINERTYPE + default: + return 0, errors.New("Unknown PlannerContainerType value: " + v) + } + return &result, nil +} +func SerializePlannerContainerType(values []PlannerContainerType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} diff --git a/models/planner_plan.go b/models/planner_plan.go index 59ea8aa69d..d3bb2c55dc 100644 --- a/models/planner_plan.go +++ b/models/planner_plan.go @@ -10,6 +10,8 @@ type PlannerPlan struct { Entity // Read-only. Nullable. Collection of buckets in the plan. buckets []PlannerBucketable + // Identifies the container of the plan. After it is set, this property can’t be updated. Required. + container PlannerPlanContainerable // Read-only. The user who created the plan. createdBy IdentitySetable // Read-only. Date and time at which the plan is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z @@ -42,6 +44,14 @@ func (m *PlannerPlan) GetBuckets()([]PlannerBucketable) { return m.buckets } } +// GetContainer gets the container property value. Identifies the container of the plan. After it is set, this property can’t be updated. Required. +func (m *PlannerPlan) GetContainer()(PlannerPlanContainerable) { + if m == nil { + return nil + } else { + return m.container + } +} // GetCreatedBy gets the createdBy property value. Read-only. The user who created the plan. func (m *PlannerPlan) GetCreatedBy()(IdentitySetable) { if m == nil { @@ -83,6 +93,16 @@ func (m *PlannerPlan) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return nil } + res["container"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerPlanContainerFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetContainer(val.(PlannerPlanContainerable)) + } + return nil + } res["createdBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateIdentitySetFromDiscriminatorValue) if err != nil { @@ -189,6 +209,12 @@ func (m *PlannerPlan) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 return err } } + { + err = writer.WriteObjectValue("container", m.GetContainer()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("createdBy", m.GetCreatedBy()) if err != nil { @@ -237,6 +263,12 @@ func (m *PlannerPlan) SetBuckets(value []PlannerBucketable)() { m.buckets = value } } +// SetContainer sets the container property value. Identifies the container of the plan. After it is set, this property can’t be updated. Required. +func (m *PlannerPlan) SetContainer(value PlannerPlanContainerable)() { + if m != nil { + m.container = value + } +} // SetCreatedBy sets the createdBy property value. Read-only. The user who created the plan. func (m *PlannerPlan) SetCreatedBy(value IdentitySetable)() { if m != nil { diff --git a/models/planner_plan_container.go b/models/planner_plan_container.go new file mode 100644 index 0000000000..977beab299 --- /dev/null +++ b/models/planner_plan_container.go @@ -0,0 +1,148 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// PlannerPlanContainer +type PlannerPlanContainer struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]interface{} + // The identifier of the resource that contains the plan. + containerId *string + // The type of the resource that contains the plan. See the previous table for supported types. Possible values are: group, unknownFutureValue, roster. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: roster. + type_escaped *PlannerContainerType + // The full canonical URL of the container. + url *string +} +// NewPlannerPlanContainer instantiates a new plannerPlanContainer and sets the default values. +func NewPlannerPlanContainer()(*PlannerPlanContainer) { + m := &PlannerPlanContainer{ + } + m.SetAdditionalData(make(map[string]interface{})); + return m +} +// CreatePlannerPlanContainerFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreatePlannerPlanContainerFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewPlannerPlanContainer(), 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 *PlannerPlanContainer) GetAdditionalData()(map[string]interface{}) { + if m == nil { + return nil + } else { + return m.additionalData + } +} +// GetContainerId gets the containerId property value. The identifier of the resource that contains the plan. +func (m *PlannerPlanContainer) GetContainerId()(*string) { + if m == nil { + return nil + } else { + return m.containerId + } +} +// GetFieldDeserializers the deserialization information for the current model +func (m *PlannerPlanContainer) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["containerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetContainerId(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParsePlannerContainerType) + if err != nil { + return err + } + if val != nil { + m.SetType(val.(*PlannerContainerType)) + } + return nil + } + res["url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUrl(val) + } + return nil + } + return res +} +// GetType gets the type property value. The type of the resource that contains the plan. See the previous table for supported types. Possible values are: group, unknownFutureValue, roster. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: roster. +func (m *PlannerPlanContainer) GetType()(*PlannerContainerType) { + if m == nil { + return nil + } else { + return m.type_escaped + } +} +// GetUrl gets the url property value. The full canonical URL of the container. +func (m *PlannerPlanContainer) GetUrl()(*string) { + if m == nil { + return nil + } else { + return m.url + } +} +// Serialize serializes information the current object +func (m *PlannerPlanContainer) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("containerId", m.GetContainerId()) + if err != nil { + return err + } + } + if m.GetType() != nil { + cast := (*m.GetType()).String() + err := writer.WriteStringValue("type", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("url", m.GetUrl()) + 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 *PlannerPlanContainer) SetAdditionalData(value map[string]interface{})() { + if m != nil { + m.additionalData = value + } +} +// SetContainerId sets the containerId property value. The identifier of the resource that contains the plan. +func (m *PlannerPlanContainer) SetContainerId(value *string)() { + if m != nil { + m.containerId = value + } +} +// SetType sets the type property value. The type of the resource that contains the plan. See the previous table for supported types. Possible values are: group, unknownFutureValue, roster. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: roster. +func (m *PlannerPlanContainer) SetType(value *PlannerContainerType)() { + if m != nil { + m.type_escaped = value + } +} +// SetUrl sets the url property value. The full canonical URL of the container. +func (m *PlannerPlanContainer) SetUrl(value *string)() { + if m != nil { + m.url = value + } +} diff --git a/models/planner_plan_containerable.go b/models/planner_plan_containerable.go new file mode 100644 index 0000000000..6be7e12421 --- /dev/null +++ b/models/planner_plan_containerable.go @@ -0,0 +1,17 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// PlannerPlanContainerable +type PlannerPlanContainerable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetContainerId()(*string) + GetType()(*PlannerContainerType) + GetUrl()(*string) + SetContainerId(value *string)() + SetType(value *PlannerContainerType)() + SetUrl(value *string)() +} diff --git a/models/planner_planable.go b/models/planner_planable.go index 71d8a1259e..c3cad55992 100644 --- a/models/planner_planable.go +++ b/models/planner_planable.go @@ -10,6 +10,7 @@ type PlannerPlanable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBuckets()([]PlannerBucketable) + GetContainer()(PlannerPlanContainerable) GetCreatedBy()(IdentitySetable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDetails()(PlannerPlanDetailsable) @@ -17,6 +18,7 @@ type PlannerPlanable interface { GetTasks()([]PlannerTaskable) GetTitle()(*string) SetBuckets(value []PlannerBucketable)() + SetContainer(value PlannerPlanContainerable)() SetCreatedBy(value IdentitySetable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDetails(value PlannerPlanDetailsable)() diff --git a/models/planner_task.go b/models/planner_task.go index 7af8a4c6f0..d2d866338a 100644 --- a/models/planner_task.go +++ b/models/planner_task.go @@ -48,6 +48,8 @@ type PlannerTask struct { planId *string // This sets the type of preview that shows up on the task. The possible values are: automatic, noPreview, checklist, description, reference. previewType *PlannerPreviewType + // Priority of the task. Valid range of values is between 0 and 10 (inclusive), with increasing value being lower priority (0 has the highest priority and 10 has the lowest priority). Currently, Planner interprets values 0 and 1 as 'urgent', 2 and 3 and 4 as 'important', 5, 6, and 7 as 'medium', and 8, 9, and 10 as 'low'. Currently, Planner sets the value 1 for 'urgent', 3 for 'important', 5 for 'medium', and 9 for 'low'. + priority *int32 // Read-only. Nullable. Used to render the task correctly in the task board view when grouped by progress. progressTaskBoardFormat PlannerProgressTaskBoardTaskFormatable // Number of external references that exist on the task. @@ -391,6 +393,16 @@ func (m *PlannerTask) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return nil } + res["priority"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetPriority(val) + } + return nil + } res["progressTaskBoardFormat"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreatePlannerProgressTaskBoardTaskFormatFromDiscriminatorValue) if err != nil { @@ -473,6 +485,14 @@ func (m *PlannerTask) GetPreviewType()(*PlannerPreviewType) { return m.previewType } } +// GetPriority gets the priority property value. Priority of the task. Valid range of values is between 0 and 10 (inclusive), with increasing value being lower priority (0 has the highest priority and 10 has the lowest priority). Currently, Planner interprets values 0 and 1 as 'urgent', 2 and 3 and 4 as 'important', 5, 6, and 7 as 'medium', and 8, 9, and 10 as 'low'. Currently, Planner sets the value 1 for 'urgent', 3 for 'important', 5 for 'medium', and 9 for 'low'. +func (m *PlannerTask) GetPriority()(*int32) { + if m == nil { + return nil + } else { + return m.priority + } +} // GetProgressTaskBoardFormat gets the progressTaskBoardFormat property value. Read-only. Nullable. Used to render the task correctly in the task board view when grouped by progress. func (m *PlannerTask) GetProgressTaskBoardFormat()(PlannerProgressTaskBoardTaskFormatable) { if m == nil { @@ -632,6 +652,12 @@ func (m *PlannerTask) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 return err } } + { + err = writer.WriteInt32Value("priority", m.GetPriority()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("progressTaskBoardFormat", m.GetProgressTaskBoardFormat()) if err != nil { @@ -778,6 +804,12 @@ func (m *PlannerTask) SetPreviewType(value *PlannerPreviewType)() { m.previewType = value } } +// SetPriority sets the priority property value. Priority of the task. Valid range of values is between 0 and 10 (inclusive), with increasing value being lower priority (0 has the highest priority and 10 has the lowest priority). Currently, Planner interprets values 0 and 1 as 'urgent', 2 and 3 and 4 as 'important', 5, 6, and 7 as 'medium', and 8, 9, and 10 as 'low'. Currently, Planner sets the value 1 for 'urgent', 3 for 'important', 5 for 'medium', and 9 for 'low'. +func (m *PlannerTask) SetPriority(value *int32)() { + if m != nil { + m.priority = value + } +} // SetProgressTaskBoardFormat sets the progressTaskBoardFormat property value. Read-only. Nullable. Used to render the task correctly in the task board view when grouped by progress. func (m *PlannerTask) SetProgressTaskBoardFormat(value PlannerProgressTaskBoardTaskFormatable)() { if m != nil { diff --git a/models/planner_taskable.go b/models/planner_taskable.go index 7604664488..429eb57ab4 100644 --- a/models/planner_taskable.go +++ b/models/planner_taskable.go @@ -29,6 +29,7 @@ type PlannerTaskable interface { GetPercentComplete()(*int32) GetPlanId()(*string) GetPreviewType()(*PlannerPreviewType) + GetPriority()(*int32) GetProgressTaskBoardFormat()(PlannerProgressTaskBoardTaskFormatable) GetReferenceCount()(*int32) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) @@ -53,6 +54,7 @@ type PlannerTaskable interface { SetPercentComplete(value *int32)() SetPlanId(value *string)() SetPreviewType(value *PlannerPreviewType)() + SetPriority(value *int32)() SetProgressTaskBoardFormat(value PlannerProgressTaskBoardTaskFormatable)() SetReferenceCount(value *int32)() SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() diff --git a/models/policy_platform_type.go b/models/policy_platform_type.go index 0709744318..3b53692b23 100644 --- a/models/policy_platform_type.go +++ b/models/policy_platform_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the drive singleton. type PolicyPlatformType int const ( diff --git a/models/print_job_processing_state.go b/models/print_job_processing_state.go index 51ca4525d0..c78c8759a7 100644 --- a/models/print_job_processing_state.go +++ b/models/print_job_processing_state.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to call the getGroupArchivedPrintJobs method. +// Provides operations to manage the print singleton. type PrintJobProcessingState int const ( diff --git a/models/setting_source_type.go b/models/setting_source_type.go index 3097c60355..101f96850a 100644 --- a/models/setting_source_type.go +++ b/models/setting_source_type.go @@ -3,7 +3,7 @@ import ( "strings" "errors" ) -// Provides operations to manage the deviceManagement singleton. +// Provides operations to manage the drive singleton. type SettingSourceType int const ( diff --git a/models/teamwork_user_identity.go b/models/teamwork_user_identity.go index 85f2f87a02..c2419bec6e 100644 --- a/models/teamwork_user_identity.go +++ b/models/teamwork_user_identity.go @@ -7,7 +7,7 @@ import ( // TeamworkUserIdentity type TeamworkUserIdentity struct { Identity - // Type of user. Possible values are: aadUser, onPremiseAadUser, anonymousGuest, federatedUser, personalMicrosoftAccountUser, skypeUser, phoneUser, and unknownFutureValue. + // Type of user. Possible values are: aadUser, onPremiseAadUser, anonymousGuest, federatedUser, personalMicrosoftAccountUser, skypeUser, phoneUser, unknownFutureValue and emailUser. userIdentityType *TeamworkUserIdentityType } // NewTeamworkUserIdentity instantiates a new teamworkUserIdentity and sets the default values. @@ -36,7 +36,7 @@ func (m *TeamworkUserIdentity) GetFieldDeserializers()(map[string]func(i878a80d2 } return res } -// GetUserIdentityType gets the userIdentityType property value. Type of user. Possible values are: aadUser, onPremiseAadUser, anonymousGuest, federatedUser, personalMicrosoftAccountUser, skypeUser, phoneUser, and unknownFutureValue. +// GetUserIdentityType gets the userIdentityType property value. Type of user. Possible values are: aadUser, onPremiseAadUser, anonymousGuest, federatedUser, personalMicrosoftAccountUser, skypeUser, phoneUser, unknownFutureValue and emailUser. func (m *TeamworkUserIdentity) GetUserIdentityType()(*TeamworkUserIdentityType) { if m == nil { return nil @@ -59,7 +59,7 @@ func (m *TeamworkUserIdentity) Serialize(writer i878a80d2330e89d26896388a3f487ee } return nil } -// SetUserIdentityType sets the userIdentityType property value. Type of user. Possible values are: aadUser, onPremiseAadUser, anonymousGuest, federatedUser, personalMicrosoftAccountUser, skypeUser, phoneUser, and unknownFutureValue. +// SetUserIdentityType sets the userIdentityType property value. Type of user. Possible values are: aadUser, onPremiseAadUser, anonymousGuest, federatedUser, personalMicrosoftAccountUser, skypeUser, phoneUser, unknownFutureValue and emailUser. func (m *TeamworkUserIdentity) SetUserIdentityType(value *TeamworkUserIdentityType)() { if m != nil { m.userIdentityType = value diff --git a/models/teamwork_user_identity_type.go b/models/teamwork_user_identity_type.go index cc16e91302..41499e27dd 100644 --- a/models/teamwork_user_identity_type.go +++ b/models/teamwork_user_identity_type.go @@ -15,10 +15,11 @@ const ( SKYPEUSER_TEAMWORKUSERIDENTITYTYPE PHONEUSER_TEAMWORKUSERIDENTITYTYPE UNKNOWNFUTUREVALUE_TEAMWORKUSERIDENTITYTYPE + EMAILUSER_TEAMWORKUSERIDENTITYTYPE ) func (i TeamworkUserIdentityType) String() string { - return []string{"AADUSER", "ONPREMISEAADUSER", "ANONYMOUSGUEST", "FEDERATEDUSER", "PERSONALMICROSOFTACCOUNTUSER", "SKYPEUSER", "PHONEUSER", "UNKNOWNFUTUREVALUE"}[i] + return []string{"AADUSER", "ONPREMISEAADUSER", "ANONYMOUSGUEST", "FEDERATEDUSER", "PERSONALMICROSOFTACCOUNTUSER", "SKYPEUSER", "PHONEUSER", "UNKNOWNFUTUREVALUE", "EMAILUSER"}[i] } func ParseTeamworkUserIdentityType(v string) (interface{}, error) { result := AADUSER_TEAMWORKUSERIDENTITYTYPE @@ -39,6 +40,8 @@ func ParseTeamworkUserIdentityType(v string) (interface{}, error) { result = PHONEUSER_TEAMWORKUSERIDENTITYTYPE case "UNKNOWNFUTUREVALUE": result = UNKNOWNFUTUREVALUE_TEAMWORKUSERIDENTITYTYPE + case "EMAILUSER": + result = EMAILUSER_TEAMWORKUSERIDENTITYTYPE default: return 0, errors.New("Unknown TeamworkUserIdentityType value: " + v) } diff --git a/sites/item/site_item_request_builder.go b/sites/item/site_item_request_builder.go index d7921f3809..7b878104cb 100644 --- a/sites/item/site_item_request_builder.go +++ b/sites/item/site_item_request_builder.go @@ -41,15 +41,6 @@ type SiteItemRequestBuilder struct { // Url template to use to build the URL for the current request builder urlTemplate string } -// SiteItemRequestBuilderDeleteOptions options for Delete -type SiteItemRequestBuilderDeleteOptions struct { - // Request headers - Headers map[string]string - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Response handler to use in place of the default response handling provided by the core service - ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler -} // SiteItemRequestBuilderGetOptions options for Get type SiteItemRequestBuilderGetOptions struct { // Request headers @@ -132,23 +123,6 @@ func (m *SiteItemRequestBuilder) ContentTypesById(id string)(*if642ca98ef1cfea5e } return if642ca98ef1cfea5e51e56e879548fde41cf1297f3ce162d09a6224e659bc1f8.NewContentTypeItemRequestBuilderInternal(urlTplParams, m.requestAdapter); } -// CreateDeleteRequestInformation delete entity from sites -func (m *SiteItemRequestBuilder) CreateDeleteRequestInformation(options *SiteItemRequestBuilderDeleteOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() - requestInfo.UrlTemplate = m.urlTemplate - requestInfo.PathParameters = m.pathParameters - requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE - if options != nil && options.Headers != nil { - requestInfo.Headers = options.Headers - } - if options != nil && len(options.Options) != 0 { - err := requestInfo.AddRequestOptions(options.Options...) - if err != nil { - return nil, err - } - } - return requestInfo, nil -} // CreateGetRequestInformation get entity from sites by key func (m *SiteItemRequestBuilder) CreateGetRequestInformation(options *SiteItemRequestBuilderGetOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() @@ -187,22 +161,6 @@ func (m *SiteItemRequestBuilder) CreatePatchRequestInformation(options *SiteItem } return requestInfo, nil } -// Delete delete entity from sites -func (m *SiteItemRequestBuilder) Delete(options *SiteItemRequestBuilderDeleteOptions)(error) { - requestInfo, err := m.CreateDeleteRequestInformation(options); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - "5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.requestAdapter.SendNoContentAsync(requestInfo, nil, errorMapping) - if err != nil { - return err - } - return nil -} // Drive the drive property func (m *SiteItemRequestBuilder) Drive()(*i1f30e998cc7f16739a41575c86813834123cba8d5d18b460b177e4d1033ca60d.DriveRequestBuilder) { return i1f30e998cc7f16739a41575c86813834123cba8d5d18b460b177e4d1033ca60d.NewDriveRequestBuilderInternal(m.pathParameters, m.requestAdapter); diff --git a/sites/sites_request_builder.go b/sites/sites_request_builder.go index 96a7ae691a..b85e4ce4e3 100644 --- a/sites/sites_request_builder.go +++ b/sites/sites_request_builder.go @@ -48,17 +48,6 @@ type SitesRequestBuilderGetQueryParameters struct { // Show only the first n items Top *int32 `uriparametername:"%24top"` } -// SitesRequestBuilderPostOptions options for Post -type SitesRequestBuilderPostOptions struct { - // - Body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Siteable - // Request headers - Headers map[string]string - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Response handler to use in place of the default response handling provided by the core service - ResponseHandler i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ResponseHandler -} // Add the add property func (m *SitesRequestBuilder) Add()(*i04168ffe2353eecc18b03924033a8b3a497518b96de485de3c54646fd2088af1.AddRequestBuilder) { return i04168ffe2353eecc18b03924033a8b3a497518b96de485de3c54646fd2088af1.NewAddRequestBuilderInternal(m.pathParameters, m.requestAdapter); @@ -106,24 +95,6 @@ func (m *SitesRequestBuilder) CreateGetRequestInformation(options *SitesRequestB } return requestInfo, nil } -// CreatePostRequestInformation add new entity to sites -func (m *SitesRequestBuilder) CreatePostRequestInformation(options *SitesRequestBuilderPostOptions)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() - requestInfo.UrlTemplate = m.urlTemplate - requestInfo.PathParameters = m.pathParameters - requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST - requestInfo.SetContentFromParsable(m.requestAdapter, "application/json", options.Body) - if options != nil && options.Headers != nil { - requestInfo.Headers = options.Headers - } - if options != nil && len(options.Options) != 0 { - err := requestInfo.AddRequestOptions(options.Options...) - if err != nil { - return nil, err - } - } - return requestInfo, nil -} // Get get entities from sites func (m *SitesRequestBuilder) Get(options *SitesRequestBuilderGetOptions)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SiteCollectionResponseable, error) { requestInfo, err := m.CreateGetRequestInformation(options); @@ -140,22 +111,6 @@ func (m *SitesRequestBuilder) Get(options *SitesRequestBuilderGetOptions)(iadcd8 } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SiteCollectionResponseable), nil } -// Post add new entity to sites -func (m *SitesRequestBuilder) Post(options *SitesRequestBuilderPostOptions)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Siteable, error) { - requestInfo, err := m.CreatePostRequestInformation(options); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "4XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - "5XX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.requestAdapter.SendAsync(requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateSiteFromDiscriminatorValue, nil, errorMapping) - if err != nil { - return nil, err - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Siteable), nil -} // Remove the remove property func (m *SitesRequestBuilder) Remove()(*i36e45f2c65a6887462977eb125acfe848013e7ff15c056bbdef95a2654f52bba.RemoveRequestBuilder) { return i36e45f2c65a6887462977eb125acfe848013e7ff15c056bbdef95a2654f52bba.NewRemoveRequestBuilderInternal(m.pathParameters, m.requestAdapter);