From 97b41c73e11332b3eec0f0b89a7045143d1c8aee Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 3 Feb 2026 21:52:17 +0000 Subject: [PATCH] feat(generation): update request builders and models Update generated files with build 209142 --- ...bf803dbccbeca95106249d6b21a39f82ab828fe.go | 93 +++ ...aaaf14ac5ca1ac169df182759e7bbbbb1c73b3c.go | 129 ++++ ...ef18223b56ca4d180e4f52be3e8642afa4819f9.go | 30 + ..._id_with_type_with_name_request_builder.go | 128 ++++ admin/teams_policy_request_builder.go | 170 +++++ ..._user_assignments_count_request_builder.go | 83 +++ ...tration_assign_assign_post_request_body.go | 129 ++++ ...s_administration_assign_request_builder.go | 74 ++ ...administration_unassign_request_builder.go | 74 ++ ...policy_user_assignments_request_builder.go | 165 +++++ ...cy_user_assignment_item_request_builder.go | 160 +++++ admin/teams_request_builder.go | 11 +- kiota-dom-export.txt | 656 ++++++++++++++++-- kiota-lock.json | 4 +- models/ai_agent_info.go | 79 +++ models/ai_interaction_entity.go | 247 +++++++ models/ai_interaction_plugin.go | 199 +----- models/authentication.go | 49 ++ models/authentication_method.go | 40 ++ models/cloud_pc_domain_join_configuration.go | 4 +- ..._pc_on_premises_connection_health_check.go | 4 +- models/entity.go | 4 + models/external_authentication_method.go | 118 ++++ ...thentication_method_collection_response.go | 91 +++ models/fido2_authentication_method.go | 38 - models/identity_provider_base.go | 2 + ...oft_authenticator_authentication_method.go | 38 - models/oidc_address_inbound_claims.go | 301 ++++++++ models/oidc_client_authentication.go | 136 ++++ models/oidc_client_secret_authentication.go | 81 +++ models/oidc_identity_provider.go | 304 ++++++++ models/oidc_inbound_claim_mapping_override.go | 449 ++++++++++++ ...c_private_jwt_key_client_authentication.go | 44 ++ models/oidc_response_type.go | 57 ++ models/password_authentication_method.go | 38 - ...atform_credential_authentication_method.go | 38 - models/process_conversation_metadata.go | 98 +++ models/resource_access_detail.go | 414 +++++++++++ models/resource_access_status.go | 42 ++ models/resource_access_type.go | 60 ++ .../ediscovery_purge_data_operation.go | 49 ++ models/security/incident.go | 4 +- .../policy_identifier_detail.go | 117 ++++ .../teamsadministration/teams_admin_root.go | 41 +- .../teams_policy_assignment.go | 92 +++ .../teams_policy_user_assignment.go | 154 ++++ ...icy_user_assignment_collection_response.go | 92 +++ ...orary_access_pass_authentication_method.go | 37 - models/usage_rights.go | 9 +- ...ello_for_business_authentication_method.go | 38 - ...3d18c351da075e29582293e4c30aead391605d2.go | 23 +- ...n_method_configurations_request_builder.go | 6 +- ...286b924d1e05ee6db54493540d5fedfb5e76408.go | 163 +++++ ...ntication_methods_count_request_builder.go | 83 +++ ..._authentication_methods_request_builder.go | 158 +++++ users/item_authentication_request_builder.go | 5 + 56 files changed, 5458 insertions(+), 494 deletions(-) create mode 100644 admin/0571fb090ce7bb2897528d9cebf803dbccbeca95106249d6b21a39f82ab828fe.go create mode 100644 admin/164aed3bc89e8d8330720ba5eaaaf14ac5ca1ac169df182759e7bbbbb1c73b3c.go create mode 100644 admin/c189e09914d5d49efeae72fd3ef18223b56ca4d180e4f52be3e8642afa4819f9.go create mode 100644 admin/teams_policy_microsoft_graph_teams_administration_get_policy_id_with_type_with_name_request_builder.go create mode 100644 admin/teams_policy_request_builder.go create mode 100644 admin/teams_policy_user_assignments_count_request_builder.go create mode 100644 admin/teams_policy_user_assignments_microsoft_graph_teams_administration_assign_assign_post_request_body.go create mode 100644 admin/teams_policy_user_assignments_microsoft_graph_teams_administration_assign_request_builder.go create mode 100644 admin/teams_policy_user_assignments_microsoft_graph_teams_administration_unassign_request_builder.go create mode 100644 admin/teams_policy_user_assignments_request_builder.go create mode 100644 admin/teams_policy_user_assignments_teams_policy_user_assignment_item_request_builder.go create mode 100644 models/ai_agent_info.go create mode 100644 models/ai_interaction_entity.go create mode 100644 models/external_authentication_method.go create mode 100644 models/external_authentication_method_collection_response.go create mode 100644 models/oidc_address_inbound_claims.go create mode 100644 models/oidc_client_authentication.go create mode 100644 models/oidc_client_secret_authentication.go create mode 100644 models/oidc_identity_provider.go create mode 100644 models/oidc_inbound_claim_mapping_override.go create mode 100644 models/oidc_private_jwt_key_client_authentication.go create mode 100644 models/oidc_response_type.go create mode 100644 models/resource_access_detail.go create mode 100644 models/resource_access_status.go create mode 100644 models/resource_access_type.go create mode 100644 models/teamsadministration/policy_identifier_detail.go create mode 100644 models/teamsadministration/teams_policy_assignment.go create mode 100644 models/teamsadministration/teams_policy_user_assignment.go create mode 100644 models/teamsadministration/teams_policy_user_assignment_collection_response.go create mode 100644 users/9060a1b0ba7002b5abed6f47d286b924d1e05ee6db54493540d5fedfb5e76408.go create mode 100644 users/item_authentication_external_authentication_methods_count_request_builder.go create mode 100644 users/item_authentication_external_authentication_methods_request_builder.go diff --git a/admin/0571fb090ce7bb2897528d9cebf803dbccbeca95106249d6b21a39f82ab828fe.go b/admin/0571fb090ce7bb2897528d9cebf803dbccbeca95106249d6b21a39f82ab828fe.go new file mode 100644 index 00000000000..4b08df16742 --- /dev/null +++ b/admin/0571fb090ce7bb2897528d9cebf803dbccbeca95106249d6b21a39f82ab828fe.go @@ -0,0 +1,93 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package admin + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84 "github.com/microsoftgraph/msgraph-sdk-go/models/teamsadministration" +) + +type TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse struct { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse +} +// NewTeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse instantiates a new TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse and sets the default values. +func NewTeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse()(*TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse) { + m := &TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse{ + BaseCollectionPaginationCountResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateTeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.CreatePolicyIdentifierDetailFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.PolicyIdentifierDetailable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.PolicyIdentifierDetailable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []PolicyIdentifierDetailable when successful +func (m *TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse) GetValue()([]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.PolicyIdentifierDetailable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.PolicyIdentifierDetailable) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + 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 + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse) SetValue(value []i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.PolicyIdentifierDetailable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponseable interface { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.PolicyIdentifierDetailable) + SetValue(value []i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.PolicyIdentifierDetailable)() +} diff --git a/admin/164aed3bc89e8d8330720ba5eaaaf14ac5ca1ac169df182759e7bbbbb1c73b3c.go b/admin/164aed3bc89e8d8330720ba5eaaaf14ac5ca1ac169df182759e7bbbbb1c73b3c.go new file mode 100644 index 00000000000..a9abdbab499 --- /dev/null +++ b/admin/164aed3bc89e8d8330720ba5eaaaf14ac5ca1ac169df182759e7bbbbb1c73b3c.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package admin + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" + i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84 "github.com/microsoftgraph/msgraph-sdk-go/models/teamsadministration" +) + +type TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody instantiates a new TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody and sets the default values. +func NewTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody()(*TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody) { + m := &TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody(), 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. +// returns a map[string]any when successful +func (m *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody) 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. +// returns a BackingStore when successful +func (m *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody) 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(i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.CreateTeamsPolicyUserAssignmentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []TeamsPolicyUserAssignmentable when successful +func (m *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody) GetValue()([]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody) 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 *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody) 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 *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValue sets the value property value. The value property +func (m *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody) SetValue(value []i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValue()([]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValue(value []i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable)() +} diff --git a/admin/c189e09914d5d49efeae72fd3ef18223b56ca4d180e4f52be3e8642afa4819f9.go b/admin/c189e09914d5d49efeae72fd3ef18223b56ca4d180e4f52be3e8642afa4819f9.go new file mode 100644 index 00000000000..2ff50b3788b --- /dev/null +++ b/admin/c189e09914d5d49efeae72fd3ef18223b56ca4d180e4f52be3e8642afa4819f9.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package admin + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponseable instead. +type TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameResponse struct { + TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse +} +// NewTeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameResponse instantiates a new TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameResponse and sets the default values. +func NewTeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameResponse()(*TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameResponse) { + m := &TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameResponse{ + TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse: *NewTeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse(), + } + return m +} +// CreateTeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameResponse(), nil +} +// Deprecated: This class is obsolete. Use TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponseable instead. +type TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponseable +} diff --git a/admin/teams_policy_microsoft_graph_teams_administration_get_policy_id_with_type_with_name_request_builder.go b/admin/teams_policy_microsoft_graph_teams_administration_get_policy_id_with_type_with_name_request_builder.go new file mode 100644 index 00000000000..21220974977 --- /dev/null +++ b/admin/teams_policy_microsoft_graph_teams_administration_get_policy_id_with_type_with_name_request_builder.go @@ -0,0 +1,128 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder provides operations to call the getPolicyId method. +type TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters get the policy ID for a given policy name and policy type within Teams administration. +type TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters +} +// NewTeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderInternal instantiates a new TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder and sets the default values. +func NewTeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, name *string, typeEscaped *string)(*TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder) { + m := &TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/teams/policy/microsoft.graph.teamsAdministration.getPolicyId(type='{type}',name='{name}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + if name != nil { + m.BaseRequestBuilder.PathParameters["name"] = *name + } + if typeEscaped != nil { + m.BaseRequestBuilder.PathParameters["typeEscaped"] = *typeEscaped + } + return m +} +// NewTeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder instantiates a new TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder and sets the default values. +func NewTeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get get the policy ID for a given policy name and policy type within Teams administration. +// Deprecated: This method is obsolete. Use GetAsGetPolicyIdWithTypeWithNameGetResponse instead. +// returns a TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/teamsadministration-teamspolicyassignment-getpolicyid?view=graph-rest-1.0 +func (m *TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetRequestConfiguration)(TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateTeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameResponseable), nil +} +// GetAsGetPolicyIdWithTypeWithNameGetResponse get the policy ID for a given policy name and policy type within Teams administration. +// returns a TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/teamsadministration-teamspolicyassignment-getpolicyid?view=graph-rest-1.0 +func (m *TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder) GetAsGetPolicyIdWithTypeWithNameGetResponse(ctx context.Context, requestConfiguration *TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetRequestConfiguration)(TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateTeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponseable), nil +} +// ToGetRequestInformation get the policy ID for a given policy name and policy type within Teams administration. +// returns a *RequestInformation when successful +func (m *TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder when successful +func (m *TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder) WithUrl(rawUrl string)(*TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder) { + return NewTeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/teams_policy_request_builder.go b/admin/teams_policy_request_builder.go new file mode 100644 index 00000000000..66750aede2e --- /dev/null +++ b/admin/teams_policy_request_builder.go @@ -0,0 +1,170 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84 "github.com/microsoftgraph/msgraph-sdk-go/models/teamsadministration" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// TeamsPolicyRequestBuilder provides operations to manage the policy property of the microsoft.graph.teamsAdministration.teamsAdminRoot entity. +type TeamsPolicyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamsPolicyRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamsPolicyRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// TeamsPolicyRequestBuilderGetQueryParameters represents a navigation property to the Teams policy assignment object. +type TeamsPolicyRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// TeamsPolicyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamsPolicyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *TeamsPolicyRequestBuilderGetQueryParameters +} +// TeamsPolicyRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamsPolicyRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamsPolicyRequestBuilderInternal instantiates a new TeamsPolicyRequestBuilder and sets the default values. +func NewTeamsPolicyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamsPolicyRequestBuilder) { + m := &TeamsPolicyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/teams/policy{?%24expand,%24select}", pathParameters), + } + return m +} +// NewTeamsPolicyRequestBuilder instantiates a new TeamsPolicyRequestBuilder and sets the default values. +func NewTeamsPolicyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamsPolicyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamsPolicyRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property policy for admin +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamsPolicyRequestBuilder) Delete(ctx context.Context, requestConfiguration *TeamsPolicyRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get represents a navigation property to the Teams policy assignment object. +// returns a TeamsPolicyAssignmentable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamsPolicyRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamsPolicyRequestBuilderGetRequestConfiguration)(i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyAssignmentable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.CreateTeamsPolicyAssignmentFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyAssignmentable), nil +} +// MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName provides operations to call the getPolicyId method. +// returns a *TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder when successful +func (m *TeamsPolicyRequestBuilder) MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName(name *string, typeEscaped *string)(*TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder) { + return NewTeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, name, typeEscaped) +} +// Patch update the navigation property policy in admin +// returns a TeamsPolicyAssignmentable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamsPolicyRequestBuilder) Patch(ctx context.Context, body i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyAssignmentable, requestConfiguration *TeamsPolicyRequestBuilderPatchRequestConfiguration)(i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyAssignmentable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.CreateTeamsPolicyAssignmentFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyAssignmentable), nil +} +// ToDeleteRequestInformation delete navigation property policy for admin +// returns a *RequestInformation when successful +func (m *TeamsPolicyRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *TeamsPolicyRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation represents a navigation property to the Teams policy assignment object. +// returns a *RequestInformation when successful +func (m *TeamsPolicyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamsPolicyRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property policy in admin +// returns a *RequestInformation when successful +func (m *TeamsPolicyRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyAssignmentable, requestConfiguration *TeamsPolicyRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// UserAssignments provides operations to manage the userAssignments property of the microsoft.graph.teamsAdministration.teamsPolicyAssignment entity. +// returns a *TeamsPolicyUserAssignmentsRequestBuilder when successful +func (m *TeamsPolicyRequestBuilder) UserAssignments()(*TeamsPolicyUserAssignmentsRequestBuilder) { + return NewTeamsPolicyUserAssignmentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamsPolicyRequestBuilder when successful +func (m *TeamsPolicyRequestBuilder) WithUrl(rawUrl string)(*TeamsPolicyRequestBuilder) { + return NewTeamsPolicyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/teams_policy_user_assignments_count_request_builder.go b/admin/teams_policy_user_assignments_count_request_builder.go new file mode 100644 index 00000000000..8447c04e21e --- /dev/null +++ b/admin/teams_policy_user_assignments_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// TeamsPolicyUserAssignmentsCountRequestBuilder provides operations to count the resources in the collection. +type TeamsPolicyUserAssignmentsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamsPolicyUserAssignmentsCountRequestBuilderGetQueryParameters get the number of the resource +type TeamsPolicyUserAssignmentsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// TeamsPolicyUserAssignmentsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamsPolicyUserAssignmentsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *TeamsPolicyUserAssignmentsCountRequestBuilderGetQueryParameters +} +// NewTeamsPolicyUserAssignmentsCountRequestBuilderInternal instantiates a new TeamsPolicyUserAssignmentsCountRequestBuilder and sets the default values. +func NewTeamsPolicyUserAssignmentsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamsPolicyUserAssignmentsCountRequestBuilder) { + m := &TeamsPolicyUserAssignmentsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewTeamsPolicyUserAssignmentsCountRequestBuilder instantiates a new TeamsPolicyUserAssignmentsCountRequestBuilder and sets the default values. +func NewTeamsPolicyUserAssignmentsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamsPolicyUserAssignmentsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamsPolicyUserAssignmentsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamsPolicyUserAssignmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamsPolicyUserAssignmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *TeamsPolicyUserAssignmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamsPolicyUserAssignmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamsPolicyUserAssignmentsCountRequestBuilder when successful +func (m *TeamsPolicyUserAssignmentsCountRequestBuilder) WithUrl(rawUrl string)(*TeamsPolicyUserAssignmentsCountRequestBuilder) { + return NewTeamsPolicyUserAssignmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/teams_policy_user_assignments_microsoft_graph_teams_administration_assign_assign_post_request_body.go b/admin/teams_policy_user_assignments_microsoft_graph_teams_administration_assign_assign_post_request_body.go new file mode 100644 index 00000000000..9c76a0994ab --- /dev/null +++ b/admin/teams_policy_user_assignments_microsoft_graph_teams_administration_assign_assign_post_request_body.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package admin + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" + i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84 "github.com/microsoftgraph/msgraph-sdk-go/models/teamsadministration" +) + +type TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody instantiates a new TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody and sets the default values. +func NewTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody()(*TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody) { + m := &TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody(), 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. +// returns a map[string]any when successful +func (m *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody) 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. +// returns a BackingStore when successful +func (m *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody) 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(i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.CreateTeamsPolicyUserAssignmentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []TeamsPolicyUserAssignmentable when successful +func (m *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody) GetValue()([]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody) 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 *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody) 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 *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValue sets the value property value. The value property +func (m *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody) SetValue(value []i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValue()([]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValue(value []i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable)() +} diff --git a/admin/teams_policy_user_assignments_microsoft_graph_teams_administration_assign_request_builder.go b/admin/teams_policy_user_assignments_microsoft_graph_teams_administration_assign_request_builder.go new file mode 100644 index 00000000000..2789faa702d --- /dev/null +++ b/admin/teams_policy_user_assignments_microsoft_graph_teams_administration_assign_request_builder.go @@ -0,0 +1,74 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder provides operations to call the assign method. +type TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilderInternal instantiates a new TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder and sets the default values. +func NewTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder) { + m := &TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments/microsoft.graph.teamsAdministration.assign", pathParameters), + } + return m +} +// NewTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder instantiates a new TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder and sets the default values. +func NewTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilderInternal(urlParams, requestAdapter) +} +// Post assign a Teams policy to a user using the user ID, policy type, and policy ID. +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/teamsadministration-teamspolicyuserassignment-assign?view=graph-rest-1.0 +func (m *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder) Post(ctx context.Context, body TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBodyable, requestConfiguration *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation assign a Teams policy to a user using the user ID, policy type, and policy ID. +// returns a *RequestInformation when successful +func (m *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder) ToPostRequestInformation(ctx context.Context, body TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBodyable, requestConfiguration *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder when successful +func (m *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder) WithUrl(rawUrl string)(*TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder) { + return NewTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/teams_policy_user_assignments_microsoft_graph_teams_administration_unassign_request_builder.go b/admin/teams_policy_user_assignments_microsoft_graph_teams_administration_unassign_request_builder.go new file mode 100644 index 00000000000..ce03bd3154d --- /dev/null +++ b/admin/teams_policy_user_assignments_microsoft_graph_teams_administration_unassign_request_builder.go @@ -0,0 +1,74 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder provides operations to call the unassign method. +type TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilderInternal instantiates a new TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder and sets the default values. +func NewTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder) { + m := &TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments/microsoft.graph.teamsAdministration.unassign", pathParameters), + } + return m +} +// NewTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder instantiates a new TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder and sets the default values. +func NewTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilderInternal(urlParams, requestAdapter) +} +// Post unassign a Teams policy from a user using the user ID and policy type. +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/teamsadministration-teamspolicyuserassignment-unassign?view=graph-rest-1.0 +func (m *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder) Post(ctx context.Context, body TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBodyable, requestConfiguration *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation unassign a Teams policy from a user using the user ID and policy type. +// returns a *RequestInformation when successful +func (m *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder) ToPostRequestInformation(ctx context.Context, body TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBodyable, requestConfiguration *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder when successful +func (m *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder) WithUrl(rawUrl string)(*TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder) { + return NewTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/teams_policy_user_assignments_request_builder.go b/admin/teams_policy_user_assignments_request_builder.go new file mode 100644 index 00000000000..bf16c17dacc --- /dev/null +++ b/admin/teams_policy_user_assignments_request_builder.go @@ -0,0 +1,165 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84 "github.com/microsoftgraph/msgraph-sdk-go/models/teamsadministration" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// TeamsPolicyUserAssignmentsRequestBuilder provides operations to manage the userAssignments property of the microsoft.graph.teamsAdministration.teamsPolicyAssignment entity. +type TeamsPolicyUserAssignmentsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamsPolicyUserAssignmentsRequestBuilderGetQueryParameters the collection of user policy assignments. +type TeamsPolicyUserAssignmentsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// TeamsPolicyUserAssignmentsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamsPolicyUserAssignmentsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *TeamsPolicyUserAssignmentsRequestBuilderGetQueryParameters +} +// TeamsPolicyUserAssignmentsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamsPolicyUserAssignmentsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByTeamsPolicyUserAssignmentId provides operations to manage the userAssignments property of the microsoft.graph.teamsAdministration.teamsPolicyAssignment entity. +// returns a *TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder when successful +func (m *TeamsPolicyUserAssignmentsRequestBuilder) ByTeamsPolicyUserAssignmentId(teamsPolicyUserAssignmentId string)(*TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if teamsPolicyUserAssignmentId != "" { + urlTplParams["teamsPolicyUserAssignment%2Did"] = teamsPolicyUserAssignmentId + } + return NewTeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewTeamsPolicyUserAssignmentsRequestBuilderInternal instantiates a new TeamsPolicyUserAssignmentsRequestBuilder and sets the default values. +func NewTeamsPolicyUserAssignmentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamsPolicyUserAssignmentsRequestBuilder) { + m := &TeamsPolicyUserAssignmentsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewTeamsPolicyUserAssignmentsRequestBuilder instantiates a new TeamsPolicyUserAssignmentsRequestBuilder and sets the default values. +func NewTeamsPolicyUserAssignmentsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamsPolicyUserAssignmentsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamsPolicyUserAssignmentsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *TeamsPolicyUserAssignmentsCountRequestBuilder when successful +func (m *TeamsPolicyUserAssignmentsRequestBuilder) Count()(*TeamsPolicyUserAssignmentsCountRequestBuilder) { + return NewTeamsPolicyUserAssignmentsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the collection of user policy assignments. +// returns a TeamsPolicyUserAssignmentCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamsPolicyUserAssignmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamsPolicyUserAssignmentsRequestBuilderGetRequestConfiguration)(i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.CreateTeamsPolicyUserAssignmentCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentCollectionResponseable), nil +} +// MicrosoftGraphTeamsAdministrationAssign provides operations to call the assign method. +// returns a *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder when successful +func (m *TeamsPolicyUserAssignmentsRequestBuilder) MicrosoftGraphTeamsAdministrationAssign()(*TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder) { + return NewTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// MicrosoftGraphTeamsAdministrationUnassign provides operations to call the unassign method. +// returns a *TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder when successful +func (m *TeamsPolicyUserAssignmentsRequestBuilder) MicrosoftGraphTeamsAdministrationUnassign()(*TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder) { + return NewTeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Post create new navigation property to userAssignments for admin +// returns a TeamsPolicyUserAssignmentable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamsPolicyUserAssignmentsRequestBuilder) Post(ctx context.Context, body i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable, requestConfiguration *TeamsPolicyUserAssignmentsRequestBuilderPostRequestConfiguration)(i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.CreateTeamsPolicyUserAssignmentFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable), nil +} +// ToGetRequestInformation the collection of user policy assignments. +// returns a *RequestInformation when successful +func (m *TeamsPolicyUserAssignmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamsPolicyUserAssignmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to userAssignments for admin +// returns a *RequestInformation when successful +func (m *TeamsPolicyUserAssignmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable, requestConfiguration *TeamsPolicyUserAssignmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamsPolicyUserAssignmentsRequestBuilder when successful +func (m *TeamsPolicyUserAssignmentsRequestBuilder) WithUrl(rawUrl string)(*TeamsPolicyUserAssignmentsRequestBuilder) { + return NewTeamsPolicyUserAssignmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/teams_policy_user_assignments_teams_policy_user_assignment_item_request_builder.go b/admin/teams_policy_user_assignments_teams_policy_user_assignment_item_request_builder.go new file mode 100644 index 00000000000..48ae85d2a21 --- /dev/null +++ b/admin/teams_policy_user_assignments_teams_policy_user_assignment_item_request_builder.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84 "github.com/microsoftgraph/msgraph-sdk-go/models/teamsadministration" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder provides operations to manage the userAssignments property of the microsoft.graph.teamsAdministration.teamsPolicyAssignment entity. +type TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderGetQueryParameters the collection of user policy assignments. +type TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderGetQueryParameters +} +// TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderInternal instantiates a new TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder and sets the default values. +func NewTeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder) { + m := &TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments/{teamsPolicyUserAssignment%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewTeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder instantiates a new TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder and sets the default values. +func NewTeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property userAssignments for admin +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the collection of user policy assignments. +// returns a TeamsPolicyUserAssignmentable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderGetRequestConfiguration)(i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.CreateTeamsPolicyUserAssignmentFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable), nil +} +// Patch update the navigation property userAssignments in admin +// returns a TeamsPolicyUserAssignmentable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder) Patch(ctx context.Context, body i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable, requestConfiguration *TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderPatchRequestConfiguration)(i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.CreateTeamsPolicyUserAssignmentFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable), nil +} +// ToDeleteRequestInformation delete navigation property userAssignments for admin +// returns a *RequestInformation when successful +func (m *TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation the collection of user policy assignments. +// returns a *RequestInformation when successful +func (m *TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property userAssignments in admin +// returns a *RequestInformation when successful +func (m *TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable, requestConfiguration *TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder when successful +func (m *TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder) WithUrl(rawUrl string)(*TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder) { + return NewTeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/teams_request_builder.go b/admin/teams_request_builder.go index f4c36b94c3c..ede5c2a2cc5 100644 --- a/admin/teams_request_builder.go +++ b/admin/teams_request_builder.go @@ -21,7 +21,7 @@ type TeamsRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// TeamsRequestBuilderGetQueryParameters represents a collection of user configurations. +// TeamsRequestBuilderGetQueryParameters a container for Teams administration functionalities, such as user configurations and policy assignments. type TeamsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -73,7 +73,7 @@ func (m *TeamsRequestBuilder) Delete(ctx context.Context, requestConfiguration * } return nil } -// Get represents a collection of user configurations. +// Get a container for Teams administration functionalities, such as user configurations and policy assignments. // returns a TeamsAdminRootable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *TeamsRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamsRequestBuilderGetRequestConfiguration)(i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsAdminRootable, error) { @@ -113,6 +113,11 @@ func (m *TeamsRequestBuilder) Patch(ctx context.Context, body i22ad7c1b3905b3ca3 } return res.(i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsAdminRootable), nil } +// Policy provides operations to manage the policy property of the microsoft.graph.teamsAdministration.teamsAdminRoot entity. +// returns a *TeamsPolicyRequestBuilder when successful +func (m *TeamsRequestBuilder) Policy()(*TeamsPolicyRequestBuilder) { + return NewTeamsPolicyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToDeleteRequestInformation delete navigation property teams for admin // returns a *RequestInformation when successful func (m *TeamsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *TeamsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -124,7 +129,7 @@ func (m *TeamsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, re requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation represents a collection of user configurations. +// ToGetRequestInformation a container for Teams administration functionalities, such as user configurations and policy assignments. // returns a *RequestInformation when successful func (m *TeamsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/kiota-dom-export.txt b/kiota-dom-export.txt index 46e58adc3bd..e33dcbdf76d 100644 --- a/kiota-dom-export.txt +++ b/kiota-dom-export.txt @@ -1219,6 +1219,183 @@ github.com/microsoftgraph/msgraph-sdk-go/.admin.SharepointSettingsRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.admin.SharepointSettingsRequestBuilder::|public|ToPatchRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SharepointSettingsable; ctx:context.Context; requestConfiguration?:*SharepointSettingsRequestBuilderPatchRequestConfiguration):*RequestInformation github.com/microsoftgraph/msgraph-sdk-go/.admin.SharepointSettingsRequestBuilder::|public|urlTemplate:string github.com/microsoftgraph/msgraph-sdk-go/.admin.SharepointSettingsRequestBuilder::|public|WithUrl(rawUrl:string):*SharepointSettingsRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse-->*iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse::|public|GetValue():[]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.PolicyIdentifierDetailable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse::|public|SetValue(value:[]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.PolicyIdentifierDetailable):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponseable::|public|GetValue():[]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.PolicyIdentifierDetailable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponseable::|public|SetValue(value:[]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.PolicyIdentifierDetailable):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponseable~~>iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameResponse-->*TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponse +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameResponse::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameResponse::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameResponseable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable; TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponseable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters::|public|Count:*bool +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters::|public|Expand:[]string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters::|public|Filter:*string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters::|public|Orderby:[]string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters::|public|Search:*string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters::|public|Select:[]string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters::|public|Skip:*int32 +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters::|public|Top:*int32 +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetRequestConfiguration::|public|queryParameters:*TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter; name?:*string; typeEscaped?:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetRequestConfiguration):TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameResponseable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|GetAsGetPolicyIdWithTypeWithNameGetResponse(ctx:context.Context; requestConfiguration?:*TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetRequestConfiguration):TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameGetPolicyIdWithTypeWithNameGetResponseable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|WithUrl(rawUrl:string):*TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder.TeamsPolicyRequestBuilderDeleteRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder.TeamsPolicyRequestBuilderDeleteRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder.TeamsPolicyRequestBuilderGetQueryParameters::|public|Expand:[]string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder.TeamsPolicyRequestBuilderGetQueryParameters::|public|Select:[]string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder.TeamsPolicyRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder.TeamsPolicyRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder.TeamsPolicyRequestBuilderGetRequestConfiguration::|public|queryParameters:*TeamsPolicyRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder.TeamsPolicyRequestBuilderPatchRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder.TeamsPolicyRequestBuilderPatchRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder::|public|Delete(ctx:context.Context; requestConfiguration?:*TeamsPolicyRequestBuilderDeleteRequestConfiguration):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*TeamsPolicyRequestBuilderGetRequestConfiguration):i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyAssignmentable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder::|public|microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName(name:*string; typeEscaped:*string):*TeamsPolicyMicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder::|public|Patch(body:i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyAssignmentable; ctx:context.Context; requestConfiguration?:*TeamsPolicyRequestBuilderPatchRequestConfiguration):i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyAssignmentable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder::|public|ToDeleteRequestInformation(ctx:context.Context; requestConfiguration?:*TeamsPolicyRequestBuilderDeleteRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*TeamsPolicyRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder::|public|ToPatchRequestInformation(body:i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyAssignmentable; ctx:context.Context; requestConfiguration?:*TeamsPolicyRequestBuilderPatchRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder::|public|userAssignments():*TeamsPolicyUserAssignmentsRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyRequestBuilder::|public|WithUrl(rawUrl:string):*TeamsPolicyRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsCountRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsCountRequestBuilder.TeamsPolicyUserAssignmentsCountRequestBuilderGetQueryParameters::|public|Filter:*string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsCountRequestBuilder.TeamsPolicyUserAssignmentsCountRequestBuilderGetQueryParameters::|public|Search:*string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsCountRequestBuilder.TeamsPolicyUserAssignmentsCountRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsCountRequestBuilder.TeamsPolicyUserAssignmentsCountRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsCountRequestBuilder.TeamsPolicyUserAssignmentsCountRequestBuilderGetRequestConfiguration::|public|queryParameters:*TeamsPolicyUserAssignmentsCountRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsCountRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsCountRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsCountRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*TeamsPolicyUserAssignmentsCountRequestBuilderGetRequestConfiguration):*int32 +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsCountRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsCountRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsCountRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*TeamsPolicyUserAssignmentsCountRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsCountRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsCountRequestBuilder::|public|WithUrl(rawUrl:string):*TeamsPolicyUserAssignmentsCountRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody::|public|GetValue():[]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody::|public|SetValue(value:[]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBodyable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBodyable::|public|GetValue():[]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBodyable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBodyable::|public|SetValue(value:[]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBodyable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBody~~>TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBodyable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder::|public|Post(body:TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBodyable; ctx:context.Context; requestConfiguration?:*TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilderPostRequestConfiguration):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder::|public|ToPostRequestInformation(body:TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignAssignPostRequestBodyable; ctx:context.Context; requestConfiguration?:*TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder::|public|WithUrl(rawUrl:string):*TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder::|public|Post(body:TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBodyable; ctx:context.Context; requestConfiguration?:*TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilderPostRequestConfiguration):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder::|public|ToPostRequestInformation(body:TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBodyable; ctx:context.Context; requestConfiguration?:*TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder::|public|WithUrl(rawUrl:string):*TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody::|public|GetValue():[]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody::|public|SetValue(value:[]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBodyable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBodyable::|public|GetValue():[]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBodyable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBodyable::|public|SetValue(value:[]i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBodyable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBody~~>TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignUnassignPostRequestBodyable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder.TeamsPolicyUserAssignmentsRequestBuilderGetQueryParameters::|public|Count:*bool +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder.TeamsPolicyUserAssignmentsRequestBuilderGetQueryParameters::|public|Expand:[]string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder.TeamsPolicyUserAssignmentsRequestBuilderGetQueryParameters::|public|Filter:*string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder.TeamsPolicyUserAssignmentsRequestBuilderGetQueryParameters::|public|Orderby:[]string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder.TeamsPolicyUserAssignmentsRequestBuilderGetQueryParameters::|public|Search:*string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder.TeamsPolicyUserAssignmentsRequestBuilderGetQueryParameters::|public|Select:[]string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder.TeamsPolicyUserAssignmentsRequestBuilderGetQueryParameters::|public|Skip:*int32 +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder.TeamsPolicyUserAssignmentsRequestBuilderGetQueryParameters::|public|Top:*int32 +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder.TeamsPolicyUserAssignmentsRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder.TeamsPolicyUserAssignmentsRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder.TeamsPolicyUserAssignmentsRequestBuilderGetRequestConfiguration::|public|queryParameters:*TeamsPolicyUserAssignmentsRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder.TeamsPolicyUserAssignmentsRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder.TeamsPolicyUserAssignmentsRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder::|public|ByTeamsPolicyUserAssignmentId(teamsPolicyUserAssignmentId:string):*TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder::|public|Count():*TeamsPolicyUserAssignmentsCountRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*TeamsPolicyUserAssignmentsRequestBuilderGetRequestConfiguration):i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentCollectionResponseable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder::|public|microsoftGraphTeamsAdministrationAssign():*TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationAssignRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder::|public|microsoftGraphTeamsAdministrationUnassign():*TeamsPolicyUserAssignmentsMicrosoftGraphTeamsAdministrationUnassignRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder::|public|Post(body:i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable; ctx:context.Context; requestConfiguration?:*TeamsPolicyUserAssignmentsRequestBuilderPostRequestConfiguration):i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*TeamsPolicyUserAssignmentsRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder::|public|ToPostRequestInformation(body:i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable; ctx:context.Context; requestConfiguration?:*TeamsPolicyUserAssignmentsRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsRequestBuilder::|public|WithUrl(rawUrl:string):*TeamsPolicyUserAssignmentsRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderDeleteRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderDeleteRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderGetQueryParameters::|public|Expand:[]string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderGetQueryParameters::|public|Select:[]string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderGetRequestConfiguration::|public|queryParameters:*TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderPatchRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderPatchRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder::|public|Delete(ctx:context.Context; requestConfiguration?:*TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderDeleteRequestConfiguration):void +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderGetRequestConfiguration):i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder::|public|Patch(body:i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable; ctx:context.Context; requestConfiguration?:*TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderPatchRequestConfiguration):i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder::|public|ToDeleteRequestInformation(ctx:context.Context; requestConfiguration?:*TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderDeleteRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder::|public|ToPatchRequestInformation(body:i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsPolicyUserAssignmentable; ctx:context.Context; requestConfiguration?:*TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilderPatchRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder::|public|WithUrl(rawUrl:string):*TeamsPolicyUserAssignmentsTeamsPolicyUserAssignmentItemRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsRequestBuilder.TeamsRequestBuilderDeleteRequestConfiguration::|public|headers:*RequestHeaders github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsRequestBuilder.TeamsRequestBuilderDeleteRequestConfiguration::|public|options:[]RequestOption @@ -1235,6 +1412,7 @@ github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsRequestBuilder::|public|Del github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*TeamsRequestBuilderGetRequestConfiguration):i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsAdminRootable github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsRequestBuilder::|public|Patch(body:i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsAdminRootable; ctx:context.Context; requestConfiguration?:*TeamsRequestBuilderPatchRequestConfiguration):i22ad7c1b3905b3ca3489583547f6edfaef2f77bdd9a38e24b2fdb52e37702f84.TeamsAdminRootable github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsRequestBuilder::|public|policy():*TeamsPolicyRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsRequestBuilder::|public|requestAdapter:RequestAdapter github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsRequestBuilder::|public|ToDeleteRequestInformation(ctx:context.Context; requestConfiguration?:*TeamsRequestBuilderDeleteRequestConfiguration):*RequestInformation github.com/microsoftgraph/msgraph-sdk-go/.admin.TeamsRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*TeamsRequestBuilderGetRequestConfiguration):*RequestInformation @@ -122011,6 +122189,17 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.agreementFileVersionCollectionR github.com/microsoftgraph/msgraph-sdk-go/.models.agreementFileVersionCollectionResponseable::|public|GetValue():[]AgreementFileVersionable github.com/microsoftgraph/msgraph-sdk-go/.models.agreementFileVersionCollectionResponseable::|public|SetValue(value:[]AgreementFileVersionable):void github.com/microsoftgraph/msgraph-sdk-go/.models.agreementFileVersionCollectionResponseable~~>BaseCollectionPaginationCountResponseable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.aiAgentInfo-->*AiInteractionEntity +github.com/microsoftgraph/msgraph-sdk-go/.models.aiAgentInfo::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.aiAgentInfo::|public|GetBlueprintId():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.aiAgentInfo::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.aiAgentInfo::|public|OdataType:*string +github.com/microsoftgraph/msgraph-sdk-go/.models.aiAgentInfo::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.aiAgentInfo::|public|SetBlueprintId(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.aiAgentInfo::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.aiAgentInfoable::|public|GetBlueprintId():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.aiAgentInfoable::|public|SetBlueprintId(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.aiAgentInfoable~~>AiInteractionEntityable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteraction-->*Entity github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteraction::|public|constructor():void github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteraction::|public|GetAppClass():*string @@ -122138,6 +122327,34 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionContextable::|publ github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionContextable::|public|SetOdataType(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionContextable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionContext~~>AiInteractionContextable +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntity::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntity::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntity::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntity::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntity::|public|GetIdentifier():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntity::|public|GetName():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntity::|public|GetOdataType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntity::|public|GetVersion():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntity::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntity::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntity::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntity::|public|SetIdentifier(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntity::|public|SetName(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntity::|public|SetOdataType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntity::|public|SetVersion(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntity::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntityable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntityable::|public|GetIdentifier():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntityable::|public|GetName():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntityable::|public|GetOdataType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntityable::|public|GetVersion():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntityable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntityable::|public|SetIdentifier(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntityable::|public|SetName(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntityable::|public|SetOdataType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntityable::|public|SetVersion(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntityable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionEntity~~>AiInteractionEntityable github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionHistory-->*Entity github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionHistory::|public|constructor():void github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionHistory::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) @@ -122216,34 +122433,13 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionMentionedIdentityS github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionMentionedIdentitySetable::|public|SetTag(value:TeamworkTagIdentityable):void github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionMentionedIdentitySetable~~>IdentitySetable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionMention~~>AiInteractionMentionable +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPlugin-->*AiInteractionEntity github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPlugin::|public|constructor():void -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPlugin::|public|GetAdditionalData():map[string]any -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPlugin::|public|GetBackingStore():BackingStore github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPlugin::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPlugin::|public|GetIdentifier():*string -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPlugin::|public|GetName():*string -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPlugin::|public|GetOdataType():*string -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPlugin::|public|GetVersion():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPlugin::|public|OdataType:*string github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPlugin::|public|Serialize(writer:SerializationWriter):void -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPlugin::|public|SetAdditionalData(value:map[string]any):void -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPlugin::|public|SetBackingStore(value:BackingStore):void -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPlugin::|public|SetIdentifier(value:*string):void -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPlugin::|public|SetName(value:*string):void -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPlugin::|public|SetOdataType(value:*string):void -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPlugin::|public|SetVersion(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPlugin::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPluginable::|public|GetBackingStore():BackingStore -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPluginable::|public|GetIdentifier():*string -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPluginable::|public|GetName():*string -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPluginable::|public|GetOdataType():*string -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPluginable::|public|GetVersion():*string -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPluginable::|public|SetBackingStore(value:BackingStore):void -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPluginable::|public|SetIdentifier(value:*string):void -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPluginable::|public|SetName(value:*string):void -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPluginable::|public|SetOdataType(value:*string):void -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPluginable::|public|SetVersion(value:*string):void -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPluginable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPlugin~~>AiInteractionPluginable +github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionPluginable~~>AiInteractionEntityable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionType::0000-userPrompt github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionType::0001-aiResponse github.com/microsoftgraph/msgraph-sdk-go/.models.aiInteractionType::0002-unknownFutureValue @@ -126195,6 +126391,7 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.authContextable~~>*i878a80d2330 github.com/microsoftgraph/msgraph-sdk-go/.models.authentication-->*Entity github.com/microsoftgraph/msgraph-sdk-go/.models.authentication::|public|constructor():void github.com/microsoftgraph/msgraph-sdk-go/.models.authentication::|public|GetEmailMethods():[]EmailAuthenticationMethodable +github.com/microsoftgraph/msgraph-sdk-go/.models.authentication::|public|GetExternalAuthenticationMethods():[]ExternalAuthenticationMethodable github.com/microsoftgraph/msgraph-sdk-go/.models.authentication::|public|GetFido2Methods():[]Fido2AuthenticationMethodable github.com/microsoftgraph/msgraph-sdk-go/.models.authentication::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) github.com/microsoftgraph/msgraph-sdk-go/.models.authentication::|public|GetMethods():[]AuthenticationMethodable @@ -126209,6 +126406,7 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.authentication::|public|GetWind github.com/microsoftgraph/msgraph-sdk-go/.models.authentication::|public|OdataType:*string github.com/microsoftgraph/msgraph-sdk-go/.models.authentication::|public|Serialize(writer:SerializationWriter):void github.com/microsoftgraph/msgraph-sdk-go/.models.authentication::|public|SetEmailMethods(value:[]EmailAuthenticationMethodable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.authentication::|public|SetExternalAuthenticationMethods(value:[]ExternalAuthenticationMethodable):void github.com/microsoftgraph/msgraph-sdk-go/.models.authentication::|public|SetFido2Methods(value:[]Fido2AuthenticationMethodable):void github.com/microsoftgraph/msgraph-sdk-go/.models.authentication::|public|SetMethods(value:[]AuthenticationMethodable):void github.com/microsoftgraph/msgraph-sdk-go/.models.authentication::|public|SetMicrosoftAuthenticatorMethods(value:[]MicrosoftAuthenticatorAuthenticationMethodable):void @@ -126221,6 +126419,7 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.authentication::|public|SetTemp github.com/microsoftgraph/msgraph-sdk-go/.models.authentication::|public|SetWindowsHelloForBusinessMethods(value:[]WindowsHelloForBusinessAuthenticationMethodable):void github.com/microsoftgraph/msgraph-sdk-go/.models.authentication::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationable::|public|GetEmailMethods():[]EmailAuthenticationMethodable +github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationable::|public|GetExternalAuthenticationMethods():[]ExternalAuthenticationMethodable github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationable::|public|GetFido2Methods():[]Fido2AuthenticationMethodable github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationable::|public|GetMethods():[]AuthenticationMethodable github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationable::|public|GetMicrosoftAuthenticatorMethods():[]MicrosoftAuthenticatorAuthenticationMethodable @@ -126232,6 +126431,7 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationable::|public|Get github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationable::|public|GetTemporaryAccessPassMethods():[]TemporaryAccessPassAuthenticationMethodable github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationable::|public|GetWindowsHelloForBusinessMethods():[]WindowsHelloForBusinessAuthenticationMethodable github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationable::|public|SetEmailMethods(value:[]EmailAuthenticationMethodable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationable::|public|SetExternalAuthenticationMethods(value:[]ExternalAuthenticationMethodable):void github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationable::|public|SetFido2Methods(value:[]Fido2AuthenticationMethodable):void github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationable::|public|SetMethods(value:[]AuthenticationMethodable):void github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationable::|public|SetMicrosoftAuthenticatorMethods(value:[]MicrosoftAuthenticatorAuthenticationMethodable):void @@ -126647,10 +126847,14 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationFlowsPolicyable~~ github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationFlow~~>AuthenticationFlowable github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationMethod-->*Entity github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationMethod::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationMethod::|public|GetCreatedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationMethod::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationMethod::|public|OdataType:*string github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationMethod::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationMethod::|public|SetCreatedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationMethod::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationMethodable::|public|GetCreatedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationMethodable::|public|SetCreatedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationMethodable~~>Entityable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationMethodCollectionResponse-->*BaseCollectionPaginationCountResponse github.com/microsoftgraph/msgraph-sdk-go/.models.authenticationMethodCollectionResponse::|public|constructor():void @@ -145573,6 +145777,31 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.extensionSchemaProperty~~>Exten github.com/microsoftgraph/msgraph-sdk-go/.models.externalAudienceScope::0000-none github.com/microsoftgraph/msgraph-sdk-go/.models.externalAudienceScope::0001-contactsOnly github.com/microsoftgraph/msgraph-sdk-go/.models.externalAudienceScope::0002-all +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethod-->*AuthenticationMethod +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethod::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethod::|public|GetConfigurationId():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethod::|public|GetDisplayName():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethod::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethod::|public|OdataType:*string +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethod::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethod::|public|SetConfigurationId(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethod::|public|SetDisplayName(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethod::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethodable::|public|GetConfigurationId():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethodable::|public|GetDisplayName():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethodable::|public|SetConfigurationId(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethodable::|public|SetDisplayName(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethodable~~>AuthenticationMethodable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethodCollectionResponse-->*BaseCollectionPaginationCountResponse +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethodCollectionResponse::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethodCollectionResponse::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethodCollectionResponse::|public|GetValue():[]ExternalAuthenticationMethodable +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethodCollectionResponse::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethodCollectionResponse::|public|SetValue(value:[]ExternalAuthenticationMethodable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethodCollectionResponse::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethodCollectionResponseable::|public|GetValue():[]ExternalAuthenticationMethodable +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethodCollectionResponseable::|public|SetValue(value:[]ExternalAuthenticationMethodable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.externalAuthenticationMethodCollectionResponseable~~>BaseCollectionPaginationCountResponseable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.externalconnectors.accessType::0000-grant github.com/microsoftgraph/msgraph-sdk-go/.models.externalconnectors.accessType::0001-deny github.com/microsoftgraph/msgraph-sdk-go/.models.externalconnectors.accessType::0002-unknownFutureValue @@ -146417,7 +146646,6 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethod::|pub github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethod::|public|GetAaGuid():*string github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethod::|public|GetAttestationCertificates():[]string github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethod::|public|GetAttestationLevel():*AttestationLevel -github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethod::|public|GetCreatedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethod::|public|GetDisplayName():*string github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethod::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethod::|public|GetModel():*string @@ -146426,20 +146654,17 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethod::|pub github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethod::|public|SetAaGuid(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethod::|public|SetAttestationCertificates(value:[]string):void github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethod::|public|SetAttestationLevel(value:*AttestationLevel):void -github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethod::|public|SetCreatedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethod::|public|SetDisplayName(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethod::|public|SetModel(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethod::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethodable::|public|GetAaGuid():*string github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethodable::|public|GetAttestationCertificates():[]string github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethodable::|public|GetAttestationLevel():*AttestationLevel -github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethodable::|public|GetCreatedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethodable::|public|GetDisplayName():*string github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethodable::|public|GetModel():*string github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethodable::|public|SetAaGuid(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethodable::|public|SetAttestationCertificates(value:[]string):void github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethodable::|public|SetAttestationLevel(value:*AttestationLevel):void -github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethodable::|public|SetCreatedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethodable::|public|SetDisplayName(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethodable::|public|SetModel(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.fido2AuthenticationMethodable~~>AuthenticationMethodable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable @@ -157344,7 +157569,6 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAccountUserConversatio github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAccountUserConversationMemberable~~>ConversationMemberable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethod-->*AuthenticationMethod github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethod::|public|constructor():void -github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethod::|public|GetCreatedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethod::|public|GetDevice():Deviceable github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethod::|public|GetDeviceTag():*string github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethod::|public|GetDisplayName():*string @@ -157352,18 +157576,15 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthentic github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethod::|public|GetPhoneAppVersion():*string github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethod::|public|OdataType:*string github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethod::|public|Serialize(writer:SerializationWriter):void -github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethod::|public|SetCreatedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethod::|public|SetDevice(value:Deviceable):void github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethod::|public|SetDeviceTag(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethod::|public|SetDisplayName(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethod::|public|SetPhoneAppVersion(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethod::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable -github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethodable::|public|GetCreatedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethodable::|public|GetDevice():Deviceable github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethodable::|public|GetDeviceTag():*string github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethodable::|public|GetDisplayName():*string github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethodable::|public|GetPhoneAppVersion():*string -github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethodable::|public|SetCreatedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethodable::|public|SetDevice(value:Deviceable):void github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethodable::|public|SetDeviceTag(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.microsoftAuthenticatorAuthenticationMethodable::|public|SetDisplayName(value:*string):void @@ -159102,6 +159323,167 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.officeGraphInsightsable::|publi github.com/microsoftgraph/msgraph-sdk-go/.models.officeGraphInsightsable::|public|SetTrending(value:[]Trendingable):void github.com/microsoftgraph/msgraph-sdk-go/.models.officeGraphInsightsable::|public|SetUsed(value:[]UsedInsightable):void github.com/microsoftgraph/msgraph-sdk-go/.models.officeGraphInsightsable~~>Entityable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims::|public|GetCountry():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims::|public|GetLocality():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims::|public|GetOdataType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims::|public|GetPostalCode():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims::|public|GetRegion():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims::|public|GetStreetAddress():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims::|public|SetCountry(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims::|public|SetLocality(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims::|public|SetOdataType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims::|public|SetPostalCode(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims::|public|SetRegion(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims::|public|SetStreetAddress(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaimsable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaimsable::|public|GetCountry():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaimsable::|public|GetLocality():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaimsable::|public|GetOdataType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaimsable::|public|GetPostalCode():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaimsable::|public|GetRegion():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaimsable::|public|GetStreetAddress():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaimsable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaimsable::|public|SetCountry(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaimsable::|public|SetLocality(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaimsable::|public|SetOdataType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaimsable::|public|SetPostalCode(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaimsable::|public|SetRegion(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaimsable::|public|SetStreetAddress(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaimsable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcAddressInboundClaims~~>OidcAddressInboundClaimsable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientAuthentication::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientAuthentication::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientAuthentication::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientAuthentication::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientAuthentication::|public|GetOdataType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientAuthentication::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientAuthentication::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientAuthentication::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientAuthentication::|public|SetOdataType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientAuthentication::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientAuthenticationable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientAuthenticationable::|public|GetOdataType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientAuthenticationable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientAuthenticationable::|public|SetOdataType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientAuthenticationable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientAuthentication~~>OidcClientAuthenticationable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientSecretAuthentication-->*OidcClientAuthentication +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientSecretAuthentication::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientSecretAuthentication::|public|GetClientSecret():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientSecretAuthentication::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientSecretAuthentication::|public|OdataType:*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientSecretAuthentication::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientSecretAuthentication::|public|SetClientSecret(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientSecretAuthentication::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientSecretAuthenticationable::|public|GetClientSecret():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientSecretAuthenticationable::|public|SetClientSecret(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcClientSecretAuthenticationable~~>OidcClientAuthenticationable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProvider-->*IdentityProviderBase +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProvider::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProvider::|public|GetClientAuthentication():OidcClientAuthenticationable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProvider::|public|GetClientId():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProvider::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProvider::|public|GetInboundClaimMapping():OidcInboundClaimMappingOverrideable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProvider::|public|GetIssuer():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProvider::|public|GetResponseType():*OidcResponseType +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProvider::|public|GetScope():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProvider::|public|GetWellKnownEndpoint():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProvider::|public|OdataType:*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProvider::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProvider::|public|SetClientAuthentication(value:OidcClientAuthenticationable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProvider::|public|SetClientId(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProvider::|public|SetInboundClaimMapping(value:OidcInboundClaimMappingOverrideable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProvider::|public|SetIssuer(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProvider::|public|SetResponseType(value:*OidcResponseType):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProvider::|public|SetScope(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProvider::|public|SetWellKnownEndpoint(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProvider::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProviderable::|public|GetClientAuthentication():OidcClientAuthenticationable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProviderable::|public|GetClientId():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProviderable::|public|GetInboundClaimMapping():OidcInboundClaimMappingOverrideable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProviderable::|public|GetIssuer():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProviderable::|public|GetResponseType():*OidcResponseType +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProviderable::|public|GetScope():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProviderable::|public|GetWellKnownEndpoint():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProviderable::|public|SetClientAuthentication(value:OidcClientAuthenticationable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProviderable::|public|SetClientId(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProviderable::|public|SetInboundClaimMapping(value:OidcInboundClaimMappingOverrideable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProviderable::|public|SetIssuer(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProviderable::|public|SetResponseType(value:*OidcResponseType):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProviderable::|public|SetScope(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProviderable::|public|SetWellKnownEndpoint(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcIdentityProviderable~~>IdentityProviderBaseable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|GetAddress():OidcAddressInboundClaimsable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|GetEmail():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|GetEmailVerified():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|GetFamilyName():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|GetGivenName():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|GetName():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|GetOdataType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|GetPhoneNumber():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|GetPhoneNumberVerified():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|GetSub():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|SetAddress(value:OidcAddressInboundClaimsable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|SetEmail(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|SetEmailVerified(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|SetFamilyName(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|SetGivenName(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|SetName(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|SetOdataType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|SetPhoneNumber(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|SetPhoneNumberVerified(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|public|SetSub(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|GetAddress():OidcAddressInboundClaimsable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|GetEmail():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|GetEmailVerified():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|GetFamilyName():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|GetGivenName():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|GetName():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|GetOdataType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|GetPhoneNumber():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|GetPhoneNumberVerified():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|GetSub():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|SetAddress(value:OidcAddressInboundClaimsable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|SetEmail(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|SetEmailVerified(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|SetFamilyName(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|SetGivenName(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|SetName(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|SetOdataType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|SetPhoneNumber(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|SetPhoneNumberVerified(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable::|public|SetSub(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverrideable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcInboundClaimMappingOverride~~>OidcInboundClaimMappingOverrideable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcPrivateJwtKeyClientAuthentication-->*OidcClientAuthentication +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcPrivateJwtKeyClientAuthentication::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcPrivateJwtKeyClientAuthentication::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcPrivateJwtKeyClientAuthentication::|public|OdataType:*string +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcPrivateJwtKeyClientAuthentication::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcPrivateJwtKeyClientAuthentication::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcPrivateJwtKeyClientAuthenticationable~~>OidcClientAuthenticationable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcResponseType::0000-code +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcResponseType::0001-id_token +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcResponseType::0002-token +github.com/microsoftgraph/msgraph-sdk-go/.models.oidcResponseType::0003-unknownFutureValue github.com/microsoftgraph/msgraph-sdk-go/.models.omaSetting::|public|constructor():void github.com/microsoftgraph/msgraph-sdk-go/.models.omaSetting::|public|GetAdditionalData():map[string]any github.com/microsoftgraph/msgraph-sdk-go/.models.omaSetting::|public|GetBackingStore():BackingStore @@ -161959,17 +162341,13 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.partnerTenantType::0005-valueAd github.com/microsoftgraph/msgraph-sdk-go/.models.partnerTenantType::0006-unknownFutureValue github.com/microsoftgraph/msgraph-sdk-go/.models.passwordAuthenticationMethod-->*AuthenticationMethod github.com/microsoftgraph/msgraph-sdk-go/.models.passwordAuthenticationMethod::|public|constructor():void -github.com/microsoftgraph/msgraph-sdk-go/.models.passwordAuthenticationMethod::|public|GetCreatedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.passwordAuthenticationMethod::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) github.com/microsoftgraph/msgraph-sdk-go/.models.passwordAuthenticationMethod::|public|GetPassword():*string github.com/microsoftgraph/msgraph-sdk-go/.models.passwordAuthenticationMethod::|public|OdataType:*string github.com/microsoftgraph/msgraph-sdk-go/.models.passwordAuthenticationMethod::|public|Serialize(writer:SerializationWriter):void -github.com/microsoftgraph/msgraph-sdk-go/.models.passwordAuthenticationMethod::|public|SetCreatedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.passwordAuthenticationMethod::|public|SetPassword(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.passwordAuthenticationMethod::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable -github.com/microsoftgraph/msgraph-sdk-go/.models.passwordAuthenticationMethodable::|public|GetCreatedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.passwordAuthenticationMethodable::|public|GetPassword():*string -github.com/microsoftgraph/msgraph-sdk-go/.models.passwordAuthenticationMethodable::|public|SetCreatedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.passwordAuthenticationMethodable::|public|SetPassword(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.passwordAuthenticationMethodable~~>AuthenticationMethodable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.passwordAuthenticationMethodCollectionResponse-->*BaseCollectionPaginationCountResponse @@ -163709,7 +164087,6 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.plannerUserIdsable~~>*i878a80d2 github.com/microsoftgraph/msgraph-sdk-go/.models.plannerUserIds~~>PlannerUserIdsable github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethod-->*AuthenticationMethod github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethod::|public|constructor():void -github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethod::|public|GetCreatedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethod::|public|GetDevice():Deviceable github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethod::|public|GetDisplayName():*string github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethod::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) @@ -163717,18 +164094,15 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticatio github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethod::|public|GetPlatform():*AuthenticationMethodPlatform github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethod::|public|OdataType:*string github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethod::|public|Serialize(writer:SerializationWriter):void -github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethod::|public|SetCreatedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethod::|public|SetDevice(value:Deviceable):void github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethod::|public|SetDisplayName(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethod::|public|SetKeyStrength(value:*AuthenticationMethodKeyStrength):void github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethod::|public|SetPlatform(value:*AuthenticationMethodPlatform):void github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethod::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable -github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethodable::|public|GetCreatedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethodable::|public|GetDevice():Deviceable github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethodable::|public|GetDisplayName():*string github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethodable::|public|GetKeyStrength():*AuthenticationMethodKeyStrength github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethodable::|public|GetPlatform():*AuthenticationMethodPlatform -github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethodable::|public|SetCreatedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethodable::|public|SetDevice(value:Deviceable):void github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethodable::|public|SetDisplayName(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.platformCredentialAuthenticationMethodable::|public|SetKeyStrength(value:*AuthenticationMethodKeyStrength):void @@ -167051,19 +167425,27 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.processContentResponse~~>Proces github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadata-->*ProcessContentMetadataBase github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadata::|public|constructor():void github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadata::|public|GetAccessedResources():[]string +github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadata::|public|GetAccessedResourcesV2():[]ResourceAccessDetailable +github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadata::|public|GetAgents():[]AiAgentInfoable github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadata::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadata::|public|GetParentMessageId():*string github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadata::|public|GetPlugins():[]AiInteractionPluginable github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadata::|public|OdataType:*string github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadata::|public|Serialize(writer:SerializationWriter):void github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadata::|public|SetAccessedResources(value:[]string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadata::|public|SetAccessedResourcesV2(value:[]ResourceAccessDetailable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadata::|public|SetAgents(value:[]AiAgentInfoable):void github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadata::|public|SetParentMessageId(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadata::|public|SetPlugins(value:[]AiInteractionPluginable):void github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadata::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadataable::|public|GetAccessedResources():[]string +github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadataable::|public|GetAccessedResourcesV2():[]ResourceAccessDetailable +github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadataable::|public|GetAgents():[]AiAgentInfoable github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadataable::|public|GetParentMessageId():*string github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadataable::|public|GetPlugins():[]AiInteractionPluginable github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadataable::|public|SetAccessedResources(value:[]string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadataable::|public|SetAccessedResourcesV2(value:[]ResourceAccessDetailable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadataable::|public|SetAgents(value:[]AiAgentInfoable):void github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadataable::|public|SetParentMessageId(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadataable::|public|SetPlugins(value:[]AiInteractionPluginable):void github.com/microsoftgraph/msgraph-sdk-go/.models.processConversationMetadataable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable; ProcessContentMetadataBaseable @@ -169500,6 +169882,63 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessable::|public|Set github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessable::|public|SetOdataType(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessable::|public|SetTypeEscaped(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|GetAccessType():*ResourceAccessType +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|GetIdentifier():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|GetIsCrossPromptInjectionDetected():*bool +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|GetLabelId():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|GetName():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|GetOdataType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|GetStatus():*ResourceAccessStatus +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|GetStorageId():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|GetUrl():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|SetAccessType(value:*ResourceAccessType):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|SetIdentifier(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|SetIsCrossPromptInjectionDetected(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|SetLabelId(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|SetName(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|SetOdataType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|SetStatus(value:*ResourceAccessStatus):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|SetStorageId(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|public|SetUrl(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable::|public|GetAccessType():*ResourceAccessType +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable::|public|GetIdentifier():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable::|public|GetIsCrossPromptInjectionDetected():*bool +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable::|public|GetLabelId():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable::|public|GetName():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable::|public|GetOdataType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable::|public|GetStatus():*ResourceAccessStatus +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable::|public|GetStorageId():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable::|public|GetUrl():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable::|public|SetAccessType(value:*ResourceAccessType):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable::|public|SetIdentifier(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable::|public|SetIsCrossPromptInjectionDetected(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable::|public|SetLabelId(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable::|public|SetName(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable::|public|SetOdataType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable::|public|SetStatus(value:*ResourceAccessStatus):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable::|public|SetStorageId(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable::|public|SetUrl(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetailable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessDetail~~>ResourceAccessDetailable +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessStatus::0000-none +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessStatus::0001-failure +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessStatus::0002-success +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessStatus::0003-unknownFutureValue +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessType::0000-none +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessType::0001-read +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessType::0002-write +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessType::0003-create +github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccessType::0004-unknownFutureValue github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAccess~~>ResourceAccessable github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAction::|public|constructor():void github.com/microsoftgraph/msgraph-sdk-go/.models.resourceAction::|public|GetAdditionalData():map[string]any @@ -174228,9 +174667,13 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.security.ediscoveryNoncustodial github.com/microsoftgraph/msgraph-sdk-go/.models.security.ediscoveryPurgeDataOperation-->*CaseOperation github.com/microsoftgraph/msgraph-sdk-go/.models.security.ediscoveryPurgeDataOperation::|public|constructor():void github.com/microsoftgraph/msgraph-sdk-go/.models.security.ediscoveryPurgeDataOperation::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.security.ediscoveryPurgeDataOperation::|public|GetReportFileMetadata():[]ReportFileMetadataable github.com/microsoftgraph/msgraph-sdk-go/.models.security.ediscoveryPurgeDataOperation::|public|OdataType:*string github.com/microsoftgraph/msgraph-sdk-go/.models.security.ediscoveryPurgeDataOperation::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.security.ediscoveryPurgeDataOperation::|public|SetReportFileMetadata(value:[]ReportFileMetadataable):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.ediscoveryPurgeDataOperation::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.security.ediscoveryPurgeDataOperationable::|public|GetReportFileMetadata():[]ReportFileMetadataable +github.com/microsoftgraph/msgraph-sdk-go/.models.security.ediscoveryPurgeDataOperationable::|public|SetReportFileMetadata(value:[]ReportFileMetadataable):void github.com/microsoftgraph/msgraph-sdk-go/.models.security.ediscoveryPurgeDataOperationable~~>CaseOperationable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.security.ediscoveryReviewSet-->*DataSet github.com/microsoftgraph/msgraph-sdk-go/.models.security.ediscoveryReviewSet::|public|constructor():void @@ -184738,17 +185181,76 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.policyAssig github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.policyAssignmentable::|public|SetPolicyId(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.policyAssignmentable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.policyAssignment~~>PolicyAssignmentable +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.policyIdentifierDetail-->*iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entity +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.policyIdentifierDetail::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.policyIdentifierDetail::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.policyIdentifierDetail::|public|GetName():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.policyIdentifierDetail::|public|GetPolicyId():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.policyIdentifierDetail::|public|OdataType:*string +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.policyIdentifierDetail::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.policyIdentifierDetail::|public|SetName(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.policyIdentifierDetail::|public|SetPolicyId(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.policyIdentifierDetail::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.policyIdentifierDetailable::|public|GetName():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.policyIdentifierDetailable::|public|GetPolicyId():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.policyIdentifierDetailable::|public|SetName(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.policyIdentifierDetailable::|public|SetPolicyId(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.policyIdentifierDetailable~~>iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entityable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsAdminRoot-->*iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entity github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsAdminRoot::|public|constructor():void github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsAdminRoot::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsAdminRoot::|public|GetPolicy():TeamsPolicyAssignmentable github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsAdminRoot::|public|GetUserConfigurations():[]TeamsUserConfigurationable github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsAdminRoot::|public|OdataType:*string github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsAdminRoot::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsAdminRoot::|public|SetPolicy(value:TeamsPolicyAssignmentable):void github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsAdminRoot::|public|SetUserConfigurations(value:[]TeamsUserConfigurationable):void github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsAdminRoot::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsAdminRootable::|public|GetPolicy():TeamsPolicyAssignmentable github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsAdminRootable::|public|GetUserConfigurations():[]TeamsUserConfigurationable +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsAdminRootable::|public|SetPolicy(value:TeamsPolicyAssignmentable):void github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsAdminRootable::|public|SetUserConfigurations(value:[]TeamsUserConfigurationable):void github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsAdminRootable~~>iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entityable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyAssignment-->*iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entity +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyAssignment::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyAssignment::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyAssignment::|public|GetUserAssignments():[]TeamsPolicyUserAssignmentable +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyAssignment::|public|OdataType:*string +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyAssignment::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyAssignment::|public|SetUserAssignments(value:[]TeamsPolicyUserAssignmentable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyAssignment::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyAssignmentable::|public|GetUserAssignments():[]TeamsPolicyUserAssignmentable +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyAssignmentable::|public|SetUserAssignments(value:[]TeamsPolicyUserAssignmentable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyAssignmentable~~>iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entityable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignment-->*iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entity +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignment::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignment::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignment::|public|GetPolicyId():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignment::|public|GetPolicyType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignment::|public|GetUserId():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignment::|public|OdataType:*string +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignment::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignment::|public|SetPolicyId(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignment::|public|SetPolicyType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignment::|public|SetUserId(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignment::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignmentable::|public|GetPolicyId():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignmentable::|public|GetPolicyType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignmentable::|public|GetUserId():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignmentable::|public|SetPolicyId(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignmentable::|public|SetPolicyType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignmentable::|public|SetUserId(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignmentable~~>iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entityable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignmentCollectionResponse-->*iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignmentCollectionResponse::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignmentCollectionResponse::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignmentCollectionResponse::|public|GetValue():[]TeamsPolicyUserAssignmentable +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignmentCollectionResponse::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignmentCollectionResponse::|public|SetValue(value:[]TeamsPolicyUserAssignmentable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignmentCollectionResponse::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignmentCollectionResponseable::|public|GetValue():[]TeamsPolicyUserAssignmentable +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignmentCollectionResponseable::|public|SetValue(value:[]TeamsPolicyUserAssignmentable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsPolicyUserAssignmentCollectionResponseable~~>iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsUserConfiguration-->*iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entity github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsUserConfiguration::|public|constructor():void github.com/microsoftgraph/msgraph-sdk-go/.models.teamsadministration.teamsUserConfiguration::|public|GetAccountType():*AccountType @@ -185757,7 +186259,6 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.templateScenarios::0005-emergin github.com/microsoftgraph/msgraph-sdk-go/.models.templateScenarios::0006-unknownFutureValue github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethod-->*AuthenticationMethod github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethod::|public|constructor():void -github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethod::|public|GetCreatedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethod::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethod::|public|GetIsUsable():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethod::|public|GetIsUsableOnce():*bool @@ -185767,7 +186268,6 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticati github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethod::|public|GetTemporaryAccessPass():*string github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethod::|public|OdataType:*string github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethod::|public|Serialize(writer:SerializationWriter):void -github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethod::|public|SetCreatedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethod::|public|SetIsUsable(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethod::|public|SetIsUsableOnce(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethod::|public|SetLifetimeInMinutes(value:*int32):void @@ -185775,14 +186275,12 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticati github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethod::|public|SetStartDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethod::|public|SetTemporaryAccessPass(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethod::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable -github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethodable::|public|GetCreatedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethodable::|public|GetIsUsable():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethodable::|public|GetIsUsableOnce():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethodable::|public|GetLifetimeInMinutes():*int32 github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethodable::|public|GetMethodUsabilityReason():*string github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethodable::|public|GetStartDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethodable::|public|GetTemporaryAccessPass():*string -github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethodable::|public|SetCreatedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethodable::|public|SetIsUsable(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethodable::|public|SetIsUsableOnce(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.temporaryAccessPassAuthenticationMethodable::|public|SetLifetimeInMinutes(value:*int32):void @@ -188860,7 +189358,8 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.usageRights::0016-userDefinedPr github.com/microsoftgraph/msgraph-sdk-go/.models.usageRights::0017-encryptedProtectionTypeNotSupportedException github.com/microsoftgraph/msgraph-sdk-go/.models.usageRights::0018-purviewClaimsChallengeNotSupportedException github.com/microsoftgraph/msgraph-sdk-go/.models.usageRights::0019-exception -github.com/microsoftgraph/msgraph-sdk-go/.models.usageRights::0020-unknownFutureValue +github.com/microsoftgraph/msgraph-sdk-go/.models.usageRights::0020-labelNotFoundException +github.com/microsoftgraph/msgraph-sdk-go/.models.usageRights::0021-unknownFutureValue github.com/microsoftgraph/msgraph-sdk-go/.models.usageRightsIncluded-->*Entity github.com/microsoftgraph/msgraph-sdk-go/.models.usageRightsIncluded::|public|constructor():void github.com/microsoftgraph/msgraph-sdk-go/.models.usageRightsIncluded::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) @@ -195599,23 +196098,19 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.windowsFirewallNetworkProfileab github.com/microsoftgraph/msgraph-sdk-go/.models.windowsFirewallNetworkProfile~~>WindowsFirewallNetworkProfileable github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethod-->*AuthenticationMethod github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethod::|public|constructor():void -github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethod::|public|GetCreatedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethod::|public|GetDevice():Deviceable github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethod::|public|GetDisplayName():*string github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethod::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethod::|public|GetKeyStrength():*AuthenticationMethodKeyStrength github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethod::|public|OdataType:*string github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethod::|public|Serialize(writer:SerializationWriter):void -github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethod::|public|SetCreatedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethod::|public|SetDevice(value:Deviceable):void github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethod::|public|SetDisplayName(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethod::|public|SetKeyStrength(value:*AuthenticationMethodKeyStrength):void github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethod::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable -github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethodable::|public|GetCreatedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethodable::|public|GetDevice():Deviceable github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethodable::|public|GetDisplayName():*string github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethodable::|public|GetKeyStrength():*AuthenticationMethodKeyStrength -github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethodable::|public|SetCreatedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethodable::|public|SetDevice(value:Deviceable):void github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethodable::|public|SetDisplayName(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.windowsHelloForBusinessAuthenticationMethodable::|public|SetKeyStrength(value:*AuthenticationMethodKeyStrength):void @@ -252398,6 +252893,68 @@ github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationEmailMethodsRe github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationEmailMethodsRequestBuilder::|public|ToPostRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.EmailAuthenticationMethodable; ctx:context.Context; requestConfiguration?:*ItemAuthenticationEmailMethodsRequestBuilderPostRequestConfiguration):*RequestInformation github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationEmailMethodsRequestBuilder::|public|urlTemplate:string github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationEmailMethodsRequestBuilder::|public|WithUrl(rawUrl:string):*ItemAuthenticationEmailMethodsRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilderGetQueryParameters::|public|Filter:*string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilderGetQueryParameters::|public|Search:*string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilderGetRequestConfiguration):*int32 +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder::|public|WithUrl(rawUrl:string):*ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderGetQueryParameters::|public|Expand:[]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderGetQueryParameters::|public|Select:[]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderPatchRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderPatchRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder::|public|Delete(ctx:context.Context; requestConfiguration?:*ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderGetRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExternalAuthenticationMethodable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder::|public|Patch(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExternalAuthenticationMethodable; ctx:context.Context; requestConfiguration?:*ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderPatchRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExternalAuthenticationMethodable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder::|public|ToDeleteRequestInformation(ctx:context.Context; requestConfiguration?:*ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder::|public|ToPatchRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExternalAuthenticationMethodable; ctx:context.Context; requestConfiguration?:*ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderPatchRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder::|public|WithUrl(rawUrl:string):*ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Count:*bool +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Expand:[]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Filter:*string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Orderby:[]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Search:*string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Select:[]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Skip:*int32 +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Top:*int32 +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder.ItemAuthenticationExternalAuthenticationMethodsRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder::|public|ByExternalAuthenticationMethodId(externalAuthenticationMethodId:string):*ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder::|public|Count():*ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExternalAuthenticationMethodCollectionResponseable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder::|public|Post(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExternalAuthenticationMethodable; ctx:context.Context; requestConfiguration?:*ItemAuthenticationExternalAuthenticationMethodsRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExternalAuthenticationMethodable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder::|public|ToPostRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExternalAuthenticationMethodable; ctx:context.Context; requestConfiguration?:*ItemAuthenticationExternalAuthenticationMethodsRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationExternalAuthenticationMethodsRequestBuilder::|public|WithUrl(rawUrl:string):*ItemAuthenticationExternalAuthenticationMethodsRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationFido2MethodsCountRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationFido2MethodsCountRequestBuilder.ItemAuthenticationFido2MethodsCountRequestBuilderGetQueryParameters::|public|Filter:*string github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationFido2MethodsCountRequestBuilder.ItemAuthenticationFido2MethodsCountRequestBuilderGetQueryParameters::|public|Search:*string @@ -252892,6 +253449,7 @@ github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationRequestBuilder::|public|Delete(ctx:context.Context; requestConfiguration?:*ItemAuthenticationRequestBuilderDeleteRequestConfiguration):void github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationRequestBuilder::|public|emailMethods():*ItemAuthenticationEmailMethodsRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationRequestBuilder::|public|externalAuthenticationMethods():*ItemAuthenticationExternalAuthenticationMethodsRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationRequestBuilder::|public|fido2Methods():*ItemAuthenticationFido2MethodsRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemAuthenticationRequestBuilderGetRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Authenticationable github.com/microsoftgraph/msgraph-sdk-go/.users.ItemAuthenticationRequestBuilder::|public|methods():*ItemAuthenticationMethodsRequestBuilder diff --git a/kiota-lock.json b/kiota-lock.json index 688ad4772df..35300afb32b 100644 --- a/kiota-lock.json +++ b/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "B02CED4D519DAD7AEE3434A50C96EA210737F35497DEDEB8E7604CCBC9B0E4C9C9387FBD5AA8BDCD61AF3F723790969091A25F0BB6E7AF2D2ED117718910B5FC", + "descriptionHash": "EE655C46667963A6B56284D80428908D898ADF7596E1B9840E2353EEE838BF5BDD1519D02373734226B3D8607AA86D05BD7FA51B4D709F95127054A6D86E6D4D", "descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.30.0", + "kiotaVersion": "1.31.0", "clientClassName": "GraphBaseServiceClient", "typeAccessModifier": "Public", "clientNamespaceName": "github.com/microsoftgraph/msgraph-sdk-go/", diff --git a/models/ai_agent_info.go b/models/ai_agent_info.go new file mode 100644 index 00000000000..0117c6d1366 --- /dev/null +++ b/models/ai_agent_info.go @@ -0,0 +1,79 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type AiAgentInfo struct { + AiInteractionEntity +} +// NewAiAgentInfo instantiates a new AiAgentInfo and sets the default values. +func NewAiAgentInfo()(*AiAgentInfo) { + m := &AiAgentInfo{ + AiInteractionEntity: *NewAiInteractionEntity(), + } + return m +} +// CreateAiAgentInfoFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAiAgentInfoFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAiAgentInfo(), nil +} +// GetBlueprintId gets the blueprintId property value. The blueprintId property +// returns a *string when successful +func (m *AiAgentInfo) GetBlueprintId()(*string) { + val, err := m.GetBackingStore().Get("blueprintId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AiAgentInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AiInteractionEntity.GetFieldDeserializers() + res["blueprintId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetBlueprintId(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *AiAgentInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AiInteractionEntity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("blueprintId", m.GetBlueprintId()) + if err != nil { + return err + } + } + return nil +} +// SetBlueprintId sets the blueprintId property value. The blueprintId property +func (m *AiAgentInfo) SetBlueprintId(value *string)() { + err := m.GetBackingStore().Set("blueprintId", value) + if err != nil { + panic(err) + } +} +type AiAgentInfoable interface { + AiInteractionEntityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBlueprintId()(*string) + SetBlueprintId(value *string)() +} diff --git a/models/ai_interaction_entity.go b/models/ai_interaction_entity.go new file mode 100644 index 00000000000..0b777a394df --- /dev/null +++ b/models/ai_interaction_entity.go @@ -0,0 +1,247 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type AiInteractionEntity struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewAiInteractionEntity instantiates a new AiInteractionEntity and sets the default values. +func NewAiInteractionEntity()(*AiInteractionEntity) { + m := &AiInteractionEntity{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateAiInteractionEntityFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAiInteractionEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.aiAgentInfo": + return NewAiAgentInfo(), nil + case "#microsoft.graph.aiInteractionPlugin": + return NewAiInteractionPlugin(), nil + } + } + } + } + return NewAiInteractionEntity(), 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. +// returns a map[string]any when successful +func (m *AiInteractionEntity) 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. +// returns a BackingStore when successful +func (m *AiInteractionEntity) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AiInteractionEntity) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["identifier"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetIdentifier(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["version"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetVersion(val) + } + return nil + } + return res +} +// GetIdentifier gets the identifier property value. The identifier property +// returns a *string when successful +func (m *AiInteractionEntity) GetIdentifier()(*string) { + val, err := m.GetBackingStore().Get("identifier") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetName gets the name property value. The name property +// returns a *string when successful +func (m *AiInteractionEntity) GetName()(*string) { + val, err := m.GetBackingStore().Get("name") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *AiInteractionEntity) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetVersion gets the version property value. The version property +// returns a *string when successful +func (m *AiInteractionEntity) GetVersion()(*string) { + val, err := m.GetBackingStore().Get("version") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *AiInteractionEntity) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("identifier", m.GetIdentifier()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("version", m.GetVersion()) + 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 *AiInteractionEntity) 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 *AiInteractionEntity) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIdentifier sets the identifier property value. The identifier property +func (m *AiInteractionEntity) SetIdentifier(value *string)() { + err := m.GetBackingStore().Set("identifier", value) + if err != nil { + panic(err) + } +} +// SetName sets the name property value. The name property +func (m *AiInteractionEntity) SetName(value *string)() { + err := m.GetBackingStore().Set("name", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AiInteractionEntity) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetVersion sets the version property value. The version property +func (m *AiInteractionEntity) SetVersion(value *string)() { + err := m.GetBackingStore().Set("version", value) + if err != nil { + panic(err) + } +} +type AiInteractionEntityable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIdentifier()(*string) + GetName()(*string) + GetOdataType()(*string) + GetVersion()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIdentifier(value *string)() + SetName(value *string)() + SetOdataType(value *string)() + SetVersion(value *string)() +} diff --git a/models/ai_interaction_plugin.go b/models/ai_interaction_plugin.go index 15f1f6d38c3..0a0643b5d82 100644 --- a/models/ai_interaction_plugin.go +++ b/models/ai_interaction_plugin.go @@ -5,19 +5,16 @@ package models import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) type AiInteractionPlugin struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore + AiInteractionEntity } // NewAiInteractionPlugin instantiates a new AiInteractionPlugin and sets the default values. func NewAiInteractionPlugin()(*AiInteractionPlugin) { m := &AiInteractionPlugin{ + AiInteractionEntity: *NewAiInteractionEntity(), } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) return m } // CreateAiInteractionPluginFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value @@ -25,203 +22,21 @@ func NewAiInteractionPlugin()(*AiInteractionPlugin) { func CreateAiInteractionPluginFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewAiInteractionPlugin(), 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. -// returns a map[string]any when successful -func (m *AiInteractionPlugin) 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. -// returns a BackingStore when successful -func (m *AiInteractionPlugin) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *AiInteractionPlugin) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["identifier"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetIdentifier(val) - } - return nil - } - res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetName(val) - } - return nil - } - res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetOdataType(val) - } - return nil - } - res["version"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetVersion(val) - } - return nil - } + res := m.AiInteractionEntity.GetFieldDeserializers() return res } -// GetIdentifier gets the identifier property value. The unique identifier of the plugin. -// returns a *string when successful -func (m *AiInteractionPlugin) GetIdentifier()(*string) { - val, err := m.GetBackingStore().Get("identifier") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetName gets the name property value. The display name of the plugin. -// returns a *string when successful -func (m *AiInteractionPlugin) GetName()(*string) { - val, err := m.GetBackingStore().Get("name") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetOdataType gets the @odata.type property value. The OdataType property -// returns a *string when successful -func (m *AiInteractionPlugin) GetOdataType()(*string) { - val, err := m.GetBackingStore().Get("odataType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetVersion gets the version property value. The version of the plugin used. -// returns a *string when successful -func (m *AiInteractionPlugin) GetVersion()(*string) { - val, err := m.GetBackingStore().Get("version") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} // Serialize serializes information the current object func (m *AiInteractionPlugin) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("identifier", m.GetIdentifier()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("name", m.GetName()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("@odata.type", m.GetOdataType()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("version", m.GetVersion()) - 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 *AiInteractionPlugin) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) + err := m.AiInteractionEntity.Serialize(writer) if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *AiInteractionPlugin) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetIdentifier sets the identifier property value. The unique identifier of the plugin. -func (m *AiInteractionPlugin) SetIdentifier(value *string)() { - err := m.GetBackingStore().Set("identifier", value) - if err != nil { - panic(err) - } -} -// SetName sets the name property value. The display name of the plugin. -func (m *AiInteractionPlugin) SetName(value *string)() { - err := m.GetBackingStore().Set("name", value) - if err != nil { - panic(err) - } -} -// SetOdataType sets the @odata.type property value. The OdataType property -func (m *AiInteractionPlugin) SetOdataType(value *string)() { - err := m.GetBackingStore().Set("odataType", value) - if err != nil { - panic(err) - } -} -// SetVersion sets the version property value. The version of the plugin used. -func (m *AiInteractionPlugin) SetVersion(value *string)() { - err := m.GetBackingStore().Set("version", value) - if err != nil { - panic(err) + return err } + return nil } type AiInteractionPluginable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + AiInteractionEntityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetIdentifier()(*string) - GetName()(*string) - GetOdataType()(*string) - GetVersion()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetIdentifier(value *string)() - SetName(value *string)() - SetOdataType(value *string)() - SetVersion(value *string)() } diff --git a/models/authentication.go b/models/authentication.go index aa4c6664e02..3e9cca45850 100644 --- a/models/authentication.go +++ b/models/authentication.go @@ -34,6 +34,18 @@ func (m *Authentication) GetEmailMethods()([]EmailAuthenticationMethodable) { } return nil } +// GetExternalAuthenticationMethods gets the externalAuthenticationMethods property value. Represents the external authentication methods registered to a user for authentication using an external identity provider. +// returns a []ExternalAuthenticationMethodable when successful +func (m *Authentication) GetExternalAuthenticationMethods()([]ExternalAuthenticationMethodable) { + val, err := m.GetBackingStore().Get("externalAuthenticationMethods") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ExternalAuthenticationMethodable) + } + return nil +} // GetFido2Methods gets the fido2Methods property value. Represents the FIDO2 security keys registered to a user for authentication. // returns a []Fido2AuthenticationMethodable when successful func (m *Authentication) GetFido2Methods()([]Fido2AuthenticationMethodable) { @@ -66,6 +78,22 @@ func (m *Authentication) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } return nil } + res["externalAuthenticationMethods"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateExternalAuthenticationMethodFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ExternalAuthenticationMethodable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ExternalAuthenticationMethodable) + } + } + m.SetExternalAuthenticationMethods(res) + } + return nil + } res["fido2Methods"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateFido2AuthenticationMethodFromDiscriminatorValue) if err != nil { @@ -354,6 +382,18 @@ func (m *Authentication) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a return err } } + if m.GetExternalAuthenticationMethods() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetExternalAuthenticationMethods())) + for i, v := range m.GetExternalAuthenticationMethods() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("externalAuthenticationMethods", cast) + if err != nil { + return err + } + } if m.GetFido2Methods() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetFido2Methods())) for i, v := range m.GetFido2Methods() { @@ -483,6 +523,13 @@ func (m *Authentication) SetEmailMethods(value []EmailAuthenticationMethodable)( panic(err) } } +// SetExternalAuthenticationMethods sets the externalAuthenticationMethods property value. Represents the external authentication methods registered to a user for authentication using an external identity provider. +func (m *Authentication) SetExternalAuthenticationMethods(value []ExternalAuthenticationMethodable)() { + err := m.GetBackingStore().Set("externalAuthenticationMethods", value) + if err != nil { + panic(err) + } +} // SetFido2Methods sets the fido2Methods property value. Represents the FIDO2 security keys registered to a user for authentication. func (m *Authentication) SetFido2Methods(value []Fido2AuthenticationMethodable)() { err := m.GetBackingStore().Set("fido2Methods", value) @@ -557,6 +604,7 @@ type Authenticationable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetEmailMethods()([]EmailAuthenticationMethodable) + GetExternalAuthenticationMethods()([]ExternalAuthenticationMethodable) GetFido2Methods()([]Fido2AuthenticationMethodable) GetMethods()([]AuthenticationMethodable) GetMicrosoftAuthenticatorMethods()([]MicrosoftAuthenticatorAuthenticationMethodable) @@ -568,6 +616,7 @@ type Authenticationable interface { GetTemporaryAccessPassMethods()([]TemporaryAccessPassAuthenticationMethodable) GetWindowsHelloForBusinessMethods()([]WindowsHelloForBusinessAuthenticationMethodable) SetEmailMethods(value []EmailAuthenticationMethodable)() + SetExternalAuthenticationMethods(value []ExternalAuthenticationMethodable)() SetFido2Methods(value []Fido2AuthenticationMethodable)() SetMethods(value []AuthenticationMethodable)() SetMicrosoftAuthenticatorMethods(value []MicrosoftAuthenticatorAuthenticationMethodable)() diff --git a/models/authentication_method.go b/models/authentication_method.go index 57b58d21e54..ac7253ff5e7 100644 --- a/models/authentication_method.go +++ b/models/authentication_method.go @@ -4,6 +4,7 @@ package models import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) @@ -34,6 +35,8 @@ func CreateAuthenticationMethodFromDiscriminatorValue(parseNode i878a80d2330e89d switch *mappingValue { case "#microsoft.graph.emailAuthenticationMethod": return NewEmailAuthenticationMethod(), nil + case "#microsoft.graph.externalAuthenticationMethod": + return NewExternalAuthenticationMethod(), nil case "#microsoft.graph.fido2AuthenticationMethod": return NewFido2AuthenticationMethod(), nil case "#microsoft.graph.microsoftAuthenticatorAuthenticationMethod": @@ -56,10 +59,32 @@ func CreateAuthenticationMethodFromDiscriminatorValue(parseNode i878a80d2330e89d } return NewAuthenticationMethod(), nil } +// GetCreatedDateTime gets the createdDateTime property value. Represents the date and time when an entity was created. Read-only. +// returns a *Time when successful +func (m *AuthenticationMethod) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *AuthenticationMethod) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() + res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedDateTime(val) + } + return nil + } return res } // Serialize serializes information the current object @@ -68,9 +93,24 @@ func (m *AuthenticationMethod) Serialize(writer i878a80d2330e89d26896388a3f487ee if err != nil { return err } + { + err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + if err != nil { + return err + } + } return nil } +// SetCreatedDateTime sets the createdDateTime property value. Represents the date and time when an entity was created. Read-only. +func (m *AuthenticationMethod) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} type AuthenticationMethodable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() } diff --git a/models/cloud_pc_domain_join_configuration.go b/models/cloud_pc_domain_join_configuration.go index 38fa17e16d9..430a909cdae 100644 --- a/models/cloud_pc_domain_join_configuration.go +++ b/models/cloud_pc_domain_join_configuration.go @@ -135,7 +135,7 @@ func (m *CloudPcDomainJoinConfiguration) GetOnPremisesConnectionId()(*string) { } return nil } -// GetRegionGroup gets the regionGroup property value. The logical geographic group this region belongs to. Multiple regions can belong to one region group. A customer can select a regionGroup when they provision a Cloud PC, and the Cloud PC is put in one of the regions in the group based on resource status. For example, the Europe region group contains the Northern Europe and Western Europe regions. The possible values are: default, australia, canada, usCentral, usEast, usWest, france, germany, europeUnion, unitedKingdom, japan, asia, india, southAmerica, euap, usGovernment, usGovernmentDOD, unknownFutureValue, norway, switzerland, southKorea. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: norway, switzerland, southKorea. Read-only. +// GetRegionGroup gets the regionGroup property value. The logical geographic group this region belongs to. Multiple regions can belong to one region group. A customer can select a regionGroup when they provision a Cloud PC, and the Cloud PC is put in one of the regions in the group based on resource status. For example, the Europe region group contains the Northern Europe and Western Europe regions. Read-only. // returns a *CloudPcRegionGroup when successful func (m *CloudPcDomainJoinConfiguration) GetRegionGroup()(*CloudPcRegionGroup) { val, err := m.GetBackingStore().Get("regionGroup") @@ -233,7 +233,7 @@ func (m *CloudPcDomainJoinConfiguration) SetOnPremisesConnectionId(value *string panic(err) } } -// SetRegionGroup sets the regionGroup property value. The logical geographic group this region belongs to. Multiple regions can belong to one region group. A customer can select a regionGroup when they provision a Cloud PC, and the Cloud PC is put in one of the regions in the group based on resource status. For example, the Europe region group contains the Northern Europe and Western Europe regions. The possible values are: default, australia, canada, usCentral, usEast, usWest, france, germany, europeUnion, unitedKingdom, japan, asia, india, southAmerica, euap, usGovernment, usGovernmentDOD, unknownFutureValue, norway, switzerland, southKorea. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: norway, switzerland, southKorea. Read-only. +// SetRegionGroup sets the regionGroup property value. The logical geographic group this region belongs to. Multiple regions can belong to one region group. A customer can select a regionGroup when they provision a Cloud PC, and the Cloud PC is put in one of the regions in the group based on resource status. For example, the Europe region group contains the Northern Europe and Western Europe regions. Read-only. func (m *CloudPcDomainJoinConfiguration) SetRegionGroup(value *CloudPcRegionGroup)() { err := m.GetBackingStore().Set("regionGroup", value) if err != nil { diff --git a/models/cloud_pc_on_premises_connection_health_check.go b/models/cloud_pc_on_premises_connection_health_check.go index b6cd3dfe6c9..0462d314d9a 100644 --- a/models/cloud_pc_on_premises_connection_health_check.go +++ b/models/cloud_pc_on_premises_connection_health_check.go @@ -92,7 +92,7 @@ func (m *CloudPcOnPremisesConnectionHealthCheck) GetEndDateTime()(*i336074805fc8 } return nil } -// GetErrorType gets the errorType property value. The type of error that occurred during this health check. The possible values are: endpointConnectivityCheckCloudPcUrlNotAllowListed, endpointConnectivityCheckWVDUrlNotAllowListed, etc. (The all possible values can refer to cloudPcOnPremisesConnectionHealthCheckErrorType) Read-Only. +// GetErrorType gets the errorType property value. The type of error that occurred during this health check. Read-only. // returns a *CloudPcOnPremisesConnectionHealthCheckErrorType when successful func (m *CloudPcOnPremisesConnectionHealthCheck) GetErrorType()(*CloudPcOnPremisesConnectionHealthCheckErrorType) { val, err := m.GetBackingStore().Get("errorType") @@ -353,7 +353,7 @@ func (m *CloudPcOnPremisesConnectionHealthCheck) SetEndDateTime(value *i33607480 panic(err) } } -// SetErrorType sets the errorType property value. The type of error that occurred during this health check. The possible values are: endpointConnectivityCheckCloudPcUrlNotAllowListed, endpointConnectivityCheckWVDUrlNotAllowListed, etc. (The all possible values can refer to cloudPcOnPremisesConnectionHealthCheckErrorType) Read-Only. +// SetErrorType sets the errorType property value. The type of error that occurred during this health check. Read-only. func (m *CloudPcOnPremisesConnectionHealthCheck) SetErrorType(value *CloudPcOnPremisesConnectionHealthCheckErrorType)() { err := m.GetBackingStore().Set("errorType", value) if err != nil { diff --git a/models/entity.go b/models/entity.go index aa4919afa27..8b59bb24c6a 100644 --- a/models/entity.go +++ b/models/entity.go @@ -687,6 +687,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewExtension(), nil case "#microsoft.graph.extensionProperty": return NewExtensionProperty(), nil + case "#microsoft.graph.externalAuthenticationMethod": + return NewExternalAuthenticationMethod(), nil case "#microsoft.graph.externalDomainName": return NewExternalDomainName(), nil case "#microsoft.graph.externalUsersSelfServiceSignUpEventsFlow": @@ -1019,6 +1021,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewOfferShiftRequest(), nil case "#microsoft.graph.officeGraphInsights": return NewOfficeGraphInsights(), nil + case "#microsoft.graph.oidcIdentityProvider": + return NewOidcIdentityProvider(), nil case "#microsoft.graph.onAttributeCollectionListener": return NewOnAttributeCollectionListener(), nil case "#microsoft.graph.onAttributeCollectionStartCustomExtension": diff --git a/models/external_authentication_method.go b/models/external_authentication_method.go new file mode 100644 index 00000000000..c9a4efd6e19 --- /dev/null +++ b/models/external_authentication_method.go @@ -0,0 +1,118 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ExternalAuthenticationMethod struct { + AuthenticationMethod +} +// NewExternalAuthenticationMethod instantiates a new ExternalAuthenticationMethod and sets the default values. +func NewExternalAuthenticationMethod()(*ExternalAuthenticationMethod) { + m := &ExternalAuthenticationMethod{ + AuthenticationMethod: *NewAuthenticationMethod(), + } + odataTypeValue := "#microsoft.graph.externalAuthenticationMethod" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateExternalAuthenticationMethodFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateExternalAuthenticationMethodFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewExternalAuthenticationMethod(), nil +} +// GetConfigurationId gets the configurationId property value. A unique identifier used to manage the external auth method within Microsoft Entra ID. +// returns a *string when successful +func (m *ExternalAuthenticationMethod) GetConfigurationId()(*string) { + val, err := m.GetBackingStore().Get("configurationId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDisplayName gets the displayName property value. Custom name given to the registered external authentication method. +// returns a *string when successful +func (m *ExternalAuthenticationMethod) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ExternalAuthenticationMethod) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuthenticationMethod.GetFieldDeserializers() + res["configurationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConfigurationId(val) + } + return nil + } + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ExternalAuthenticationMethod) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuthenticationMethod.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("configurationId", m.GetConfigurationId()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + return nil +} +// SetConfigurationId sets the configurationId property value. A unique identifier used to manage the external auth method within Microsoft Entra ID. +func (m *ExternalAuthenticationMethod) SetConfigurationId(value *string)() { + err := m.GetBackingStore().Set("configurationId", value) + if err != nil { + panic(err) + } +} +// SetDisplayName sets the displayName property value. Custom name given to the registered external authentication method. +func (m *ExternalAuthenticationMethod) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +type ExternalAuthenticationMethodable interface { + AuthenticationMethodable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetConfigurationId()(*string) + GetDisplayName()(*string) + SetConfigurationId(value *string)() + SetDisplayName(value *string)() +} diff --git a/models/external_authentication_method_collection_response.go b/models/external_authentication_method_collection_response.go new file mode 100644 index 00000000000..1cdcd6c93fc --- /dev/null +++ b/models/external_authentication_method_collection_response.go @@ -0,0 +1,91 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ExternalAuthenticationMethodCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewExternalAuthenticationMethodCollectionResponse instantiates a new ExternalAuthenticationMethodCollectionResponse and sets the default values. +func NewExternalAuthenticationMethodCollectionResponse()(*ExternalAuthenticationMethodCollectionResponse) { + m := &ExternalAuthenticationMethodCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateExternalAuthenticationMethodCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateExternalAuthenticationMethodCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewExternalAuthenticationMethodCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ExternalAuthenticationMethodCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateExternalAuthenticationMethodFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ExternalAuthenticationMethodable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ExternalAuthenticationMethodable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ExternalAuthenticationMethodable when successful +func (m *ExternalAuthenticationMethodCollectionResponse) GetValue()([]ExternalAuthenticationMethodable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ExternalAuthenticationMethodable) + } + return nil +} +// Serialize serializes information the current object +func (m *ExternalAuthenticationMethodCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + 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 + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ExternalAuthenticationMethodCollectionResponse) SetValue(value []ExternalAuthenticationMethodable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ExternalAuthenticationMethodCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ExternalAuthenticationMethodable) + SetValue(value []ExternalAuthenticationMethodable)() +} diff --git a/models/fido2_authentication_method.go b/models/fido2_authentication_method.go index aef9a0c597f..a2e7dc9cc48 100644 --- a/models/fido2_authentication_method.go +++ b/models/fido2_authentication_method.go @@ -4,7 +4,6 @@ package models import ( - i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) @@ -61,18 +60,6 @@ func (m *Fido2AuthenticationMethod) GetAttestationLevel()(*AttestationLevel) { } return nil } -// GetCreatedDateTime gets the createdDateTime property value. The timestamp when this key was registered to the user. -// returns a *Time when successful -func (m *Fido2AuthenticationMethod) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { - val, err := m.GetBackingStore().Get("createdDateTime") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - } - return nil -} // GetDisplayName gets the displayName property value. The display name of the key as given by the user. // returns a *string when successful func (m *Fido2AuthenticationMethod) GetDisplayName()(*string) { @@ -125,16 +112,6 @@ func (m *Fido2AuthenticationMethod) GetFieldDeserializers()(map[string]func(i878 } return nil } - res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetTimeValue() - if err != nil { - return err - } - if val != nil { - m.SetCreatedDateTime(val) - } - return nil - } res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -194,12 +171,6 @@ func (m *Fido2AuthenticationMethod) Serialize(writer i878a80d2330e89d26896388a3f return err } } - { - err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) - if err != nil { - return err - } - } { err = writer.WriteStringValue("displayName", m.GetDisplayName()) if err != nil { @@ -235,13 +206,6 @@ func (m *Fido2AuthenticationMethod) SetAttestationLevel(value *AttestationLevel) panic(err) } } -// SetCreatedDateTime sets the createdDateTime property value. The timestamp when this key was registered to the user. -func (m *Fido2AuthenticationMethod) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { - err := m.GetBackingStore().Set("createdDateTime", value) - if err != nil { - panic(err) - } -} // SetDisplayName sets the displayName property value. The display name of the key as given by the user. func (m *Fido2AuthenticationMethod) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) @@ -262,13 +226,11 @@ type Fido2AuthenticationMethodable interface { GetAaGuid()(*string) GetAttestationCertificates()([]string) GetAttestationLevel()(*AttestationLevel) - GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDisplayName()(*string) GetModel()(*string) SetAaGuid(value *string)() SetAttestationCertificates(value []string)() SetAttestationLevel(value *AttestationLevel)() - SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDisplayName(value *string)() SetModel(value *string)() } diff --git a/models/identity_provider_base.go b/models/identity_provider_base.go index 24634759f8a..9bb3ea8fd6d 100644 --- a/models/identity_provider_base.go +++ b/models/identity_provider_base.go @@ -38,6 +38,8 @@ func CreateIdentityProviderBaseFromDiscriminatorValue(parseNode i878a80d2330e89d return NewBuiltInIdentityProvider(), nil case "#microsoft.graph.internalDomainFederation": return NewInternalDomainFederation(), nil + case "#microsoft.graph.oidcIdentityProvider": + return NewOidcIdentityProvider(), nil case "#microsoft.graph.samlOrWsFedExternalDomainFederation": return NewSamlOrWsFedExternalDomainFederation(), nil case "#microsoft.graph.samlOrWsFedProvider": diff --git a/models/microsoft_authenticator_authentication_method.go b/models/microsoft_authenticator_authentication_method.go index fbc66c177f6..d790df66beb 100644 --- a/models/microsoft_authenticator_authentication_method.go +++ b/models/microsoft_authenticator_authentication_method.go @@ -4,7 +4,6 @@ package models import ( - i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) @@ -25,18 +24,6 @@ func NewMicrosoftAuthenticatorAuthenticationMethod()(*MicrosoftAuthenticatorAuth func CreateMicrosoftAuthenticatorAuthenticationMethodFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewMicrosoftAuthenticatorAuthenticationMethod(), nil } -// GetCreatedDateTime gets the createdDateTime property value. The date and time that this app was registered. This property is null if the device isn't registered for passwordless Phone Sign-In. -// returns a *Time when successful -func (m *MicrosoftAuthenticatorAuthenticationMethod) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { - val, err := m.GetBackingStore().Get("createdDateTime") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - } - return nil -} // GetDevice gets the device property value. The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. // returns a Deviceable when successful func (m *MicrosoftAuthenticatorAuthenticationMethod) GetDevice()(Deviceable) { @@ -77,16 +64,6 @@ func (m *MicrosoftAuthenticatorAuthenticationMethod) GetDisplayName()(*string) { // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *MicrosoftAuthenticatorAuthenticationMethod) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AuthenticationMethod.GetFieldDeserializers() - res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetTimeValue() - if err != nil { - return err - } - if val != nil { - m.SetCreatedDateTime(val) - } - return nil - } res["device"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateDeviceFromDiscriminatorValue) if err != nil { @@ -147,12 +124,6 @@ func (m *MicrosoftAuthenticatorAuthenticationMethod) Serialize(writer i878a80d23 if err != nil { return err } - { - err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) - if err != nil { - return err - } - } { err = writer.WriteObjectValue("device", m.GetDevice()) if err != nil { @@ -179,13 +150,6 @@ func (m *MicrosoftAuthenticatorAuthenticationMethod) Serialize(writer i878a80d23 } return nil } -// SetCreatedDateTime sets the createdDateTime property value. The date and time that this app was registered. This property is null if the device isn't registered for passwordless Phone Sign-In. -func (m *MicrosoftAuthenticatorAuthenticationMethod) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { - err := m.GetBackingStore().Set("createdDateTime", value) - if err != nil { - panic(err) - } -} // SetDevice sets the device property value. The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. func (m *MicrosoftAuthenticatorAuthenticationMethod) SetDevice(value Deviceable)() { err := m.GetBackingStore().Set("device", value) @@ -217,12 +181,10 @@ func (m *MicrosoftAuthenticatorAuthenticationMethod) SetPhoneAppVersion(value *s type MicrosoftAuthenticatorAuthenticationMethodable interface { AuthenticationMethodable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDevice()(Deviceable) GetDeviceTag()(*string) GetDisplayName()(*string) GetPhoneAppVersion()(*string) - SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDevice(value Deviceable)() SetDeviceTag(value *string)() SetDisplayName(value *string)() diff --git a/models/oidc_address_inbound_claims.go b/models/oidc_address_inbound_claims.go new file mode 100644 index 00000000000..23ff4d70115 --- /dev/null +++ b/models/oidc_address_inbound_claims.go @@ -0,0 +1,301 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type OidcAddressInboundClaims struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewOidcAddressInboundClaims instantiates a new OidcAddressInboundClaims and sets the default values. +func NewOidcAddressInboundClaims()(*OidcAddressInboundClaims) { + m := &OidcAddressInboundClaims{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateOidcAddressInboundClaimsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateOidcAddressInboundClaimsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOidcAddressInboundClaims(), 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. +// returns a map[string]any when successful +func (m *OidcAddressInboundClaims) 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. +// returns a BackingStore when successful +func (m *OidcAddressInboundClaims) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetCountry gets the country property value. The country property +// returns a *string when successful +func (m *OidcAddressInboundClaims) GetCountry()(*string) { + val, err := m.GetBackingStore().Get("country") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *OidcAddressInboundClaims) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["country"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCountry(val) + } + return nil + } + res["locality"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLocality(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["postal_code"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPostalCode(val) + } + return nil + } + res["region"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRegion(val) + } + return nil + } + res["street_address"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStreetAddress(val) + } + return nil + } + return res +} +// GetLocality gets the locality property value. The locality property +// returns a *string when successful +func (m *OidcAddressInboundClaims) GetLocality()(*string) { + val, err := m.GetBackingStore().Get("locality") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *OidcAddressInboundClaims) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPostalCode gets the postal_code property value. The postal_code property +// returns a *string when successful +func (m *OidcAddressInboundClaims) GetPostalCode()(*string) { + val, err := m.GetBackingStore().Get("postal_code") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRegion gets the region property value. The region property +// returns a *string when successful +func (m *OidcAddressInboundClaims) GetRegion()(*string) { + val, err := m.GetBackingStore().Get("region") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetStreetAddress gets the street_address property value. The street_address property +// returns a *string when successful +func (m *OidcAddressInboundClaims) GetStreetAddress()(*string) { + val, err := m.GetBackingStore().Get("street_address") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *OidcAddressInboundClaims) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("country", m.GetCountry()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("locality", m.GetLocality()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("postal_code", m.GetPostalCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("region", m.GetRegion()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("street_address", m.GetStreetAddress()) + 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 *OidcAddressInboundClaims) 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 *OidcAddressInboundClaims) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetCountry sets the country property value. The country property +func (m *OidcAddressInboundClaims) SetCountry(value *string)() { + err := m.GetBackingStore().Set("country", value) + if err != nil { + panic(err) + } +} +// SetLocality sets the locality property value. The locality property +func (m *OidcAddressInboundClaims) SetLocality(value *string)() { + err := m.GetBackingStore().Set("locality", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *OidcAddressInboundClaims) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetPostalCode sets the postal_code property value. The postal_code property +func (m *OidcAddressInboundClaims) SetPostalCode(value *string)() { + err := m.GetBackingStore().Set("postal_code", value) + if err != nil { + panic(err) + } +} +// SetRegion sets the region property value. The region property +func (m *OidcAddressInboundClaims) SetRegion(value *string)() { + err := m.GetBackingStore().Set("region", value) + if err != nil { + panic(err) + } +} +// SetStreetAddress sets the street_address property value. The street_address property +func (m *OidcAddressInboundClaims) SetStreetAddress(value *string)() { + err := m.GetBackingStore().Set("street_address", value) + if err != nil { + panic(err) + } +} +type OidcAddressInboundClaimsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetCountry()(*string) + GetLocality()(*string) + GetOdataType()(*string) + GetPostalCode()(*string) + GetRegion()(*string) + GetStreetAddress()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetCountry(value *string)() + SetLocality(value *string)() + SetOdataType(value *string)() + SetPostalCode(value *string)() + SetRegion(value *string)() + SetStreetAddress(value *string)() +} diff --git a/models/oidc_client_authentication.go b/models/oidc_client_authentication.go new file mode 100644 index 00000000000..b22b39d06fd --- /dev/null +++ b/models/oidc_client_authentication.go @@ -0,0 +1,136 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type OidcClientAuthentication struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewOidcClientAuthentication instantiates a new OidcClientAuthentication and sets the default values. +func NewOidcClientAuthentication()(*OidcClientAuthentication) { + m := &OidcClientAuthentication{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateOidcClientAuthenticationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateOidcClientAuthenticationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.oidcClientSecretAuthentication": + return NewOidcClientSecretAuthentication(), nil + case "#microsoft.graph.oidcPrivateJwtKeyClientAuthentication": + return NewOidcPrivateJwtKeyClientAuthentication(), nil + } + } + } + } + return NewOidcClientAuthentication(), 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. +// returns a map[string]any when successful +func (m *OidcClientAuthentication) 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. +// returns a BackingStore when successful +func (m *OidcClientAuthentication) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *OidcClientAuthentication) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *OidcClientAuthentication) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *OidcClientAuthentication) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + 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 *OidcClientAuthentication) 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 *OidcClientAuthentication) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *OidcClientAuthentication) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type OidcClientAuthenticationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() +} diff --git a/models/oidc_client_secret_authentication.go b/models/oidc_client_secret_authentication.go new file mode 100644 index 00000000000..5b58040a58a --- /dev/null +++ b/models/oidc_client_secret_authentication.go @@ -0,0 +1,81 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type OidcClientSecretAuthentication struct { + OidcClientAuthentication +} +// NewOidcClientSecretAuthentication instantiates a new OidcClientSecretAuthentication and sets the default values. +func NewOidcClientSecretAuthentication()(*OidcClientSecretAuthentication) { + m := &OidcClientSecretAuthentication{ + OidcClientAuthentication: *NewOidcClientAuthentication(), + } + odataTypeValue := "#microsoft.graph.oidcClientSecretAuthentication" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateOidcClientSecretAuthenticationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateOidcClientSecretAuthenticationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOidcClientSecretAuthentication(), nil +} +// GetClientSecret gets the clientSecret property value. The clientSecret property +// returns a *string when successful +func (m *OidcClientSecretAuthentication) GetClientSecret()(*string) { + val, err := m.GetBackingStore().Get("clientSecret") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *OidcClientSecretAuthentication) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.OidcClientAuthentication.GetFieldDeserializers() + res["clientSecret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientSecret(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *OidcClientSecretAuthentication) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.OidcClientAuthentication.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("clientSecret", m.GetClientSecret()) + if err != nil { + return err + } + } + return nil +} +// SetClientSecret sets the clientSecret property value. The clientSecret property +func (m *OidcClientSecretAuthentication) SetClientSecret(value *string)() { + err := m.GetBackingStore().Set("clientSecret", value) + if err != nil { + panic(err) + } +} +type OidcClientSecretAuthenticationable interface { + OidcClientAuthenticationable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetClientSecret()(*string) + SetClientSecret(value *string)() +} diff --git a/models/oidc_identity_provider.go b/models/oidc_identity_provider.go new file mode 100644 index 00000000000..8df4c8ffea5 --- /dev/null +++ b/models/oidc_identity_provider.go @@ -0,0 +1,304 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type OidcIdentityProvider struct { + IdentityProviderBase +} +// NewOidcIdentityProvider instantiates a new OidcIdentityProvider and sets the default values. +func NewOidcIdentityProvider()(*OidcIdentityProvider) { + m := &OidcIdentityProvider{ + IdentityProviderBase: *NewIdentityProviderBase(), + } + odataTypeValue := "#microsoft.graph.oidcIdentityProvider" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateOidcIdentityProviderFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateOidcIdentityProviderFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOidcIdentityProvider(), nil +} +// GetClientAuthentication gets the clientAuthentication property value. The clientAuthentication property +// returns a OidcClientAuthenticationable when successful +func (m *OidcIdentityProvider) GetClientAuthentication()(OidcClientAuthenticationable) { + val, err := m.GetBackingStore().Get("clientAuthentication") + if err != nil { + panic(err) + } + if val != nil { + return val.(OidcClientAuthenticationable) + } + return nil +} +// GetClientId gets the clientId property value. The clientId property +// returns a *string when successful +func (m *OidcIdentityProvider) GetClientId()(*string) { + val, err := m.GetBackingStore().Get("clientId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *OidcIdentityProvider) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.IdentityProviderBase.GetFieldDeserializers() + res["clientAuthentication"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateOidcClientAuthenticationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetClientAuthentication(val.(OidcClientAuthenticationable)) + } + return nil + } + res["clientId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientId(val) + } + return nil + } + res["inboundClaimMapping"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateOidcInboundClaimMappingOverrideFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetInboundClaimMapping(val.(OidcInboundClaimMappingOverrideable)) + } + return nil + } + res["issuer"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetIssuer(val) + } + return nil + } + res["responseType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseOidcResponseType) + if err != nil { + return err + } + if val != nil { + m.SetResponseType(val.(*OidcResponseType)) + } + return nil + } + res["scope"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetScope(val) + } + return nil + } + res["wellKnownEndpoint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetWellKnownEndpoint(val) + } + return nil + } + return res +} +// GetInboundClaimMapping gets the inboundClaimMapping property value. The inboundClaimMapping property +// returns a OidcInboundClaimMappingOverrideable when successful +func (m *OidcIdentityProvider) GetInboundClaimMapping()(OidcInboundClaimMappingOverrideable) { + val, err := m.GetBackingStore().Get("inboundClaimMapping") + if err != nil { + panic(err) + } + if val != nil { + return val.(OidcInboundClaimMappingOverrideable) + } + return nil +} +// GetIssuer gets the issuer property value. The issuer property +// returns a *string when successful +func (m *OidcIdentityProvider) GetIssuer()(*string) { + val, err := m.GetBackingStore().Get("issuer") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetResponseType gets the responseType property value. The responseType property +// returns a *OidcResponseType when successful +func (m *OidcIdentityProvider) GetResponseType()(*OidcResponseType) { + val, err := m.GetBackingStore().Get("responseType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*OidcResponseType) + } + return nil +} +// GetScope gets the scope property value. The scope property +// returns a *string when successful +func (m *OidcIdentityProvider) GetScope()(*string) { + val, err := m.GetBackingStore().Get("scope") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetWellKnownEndpoint gets the wellKnownEndpoint property value. The wellKnownEndpoint property +// returns a *string when successful +func (m *OidcIdentityProvider) GetWellKnownEndpoint()(*string) { + val, err := m.GetBackingStore().Get("wellKnownEndpoint") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *OidcIdentityProvider) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.IdentityProviderBase.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("clientAuthentication", m.GetClientAuthentication()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("clientId", m.GetClientId()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("inboundClaimMapping", m.GetInboundClaimMapping()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("issuer", m.GetIssuer()) + if err != nil { + return err + } + } + if m.GetResponseType() != nil { + cast := (*m.GetResponseType()).String() + err = writer.WriteStringValue("responseType", &cast) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("scope", m.GetScope()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("wellKnownEndpoint", m.GetWellKnownEndpoint()) + if err != nil { + return err + } + } + return nil +} +// SetClientAuthentication sets the clientAuthentication property value. The clientAuthentication property +func (m *OidcIdentityProvider) SetClientAuthentication(value OidcClientAuthenticationable)() { + err := m.GetBackingStore().Set("clientAuthentication", value) + if err != nil { + panic(err) + } +} +// SetClientId sets the clientId property value. The clientId property +func (m *OidcIdentityProvider) SetClientId(value *string)() { + err := m.GetBackingStore().Set("clientId", value) + if err != nil { + panic(err) + } +} +// SetInboundClaimMapping sets the inboundClaimMapping property value. The inboundClaimMapping property +func (m *OidcIdentityProvider) SetInboundClaimMapping(value OidcInboundClaimMappingOverrideable)() { + err := m.GetBackingStore().Set("inboundClaimMapping", value) + if err != nil { + panic(err) + } +} +// SetIssuer sets the issuer property value. The issuer property +func (m *OidcIdentityProvider) SetIssuer(value *string)() { + err := m.GetBackingStore().Set("issuer", value) + if err != nil { + panic(err) + } +} +// SetResponseType sets the responseType property value. The responseType property +func (m *OidcIdentityProvider) SetResponseType(value *OidcResponseType)() { + err := m.GetBackingStore().Set("responseType", value) + if err != nil { + panic(err) + } +} +// SetScope sets the scope property value. The scope property +func (m *OidcIdentityProvider) SetScope(value *string)() { + err := m.GetBackingStore().Set("scope", value) + if err != nil { + panic(err) + } +} +// SetWellKnownEndpoint sets the wellKnownEndpoint property value. The wellKnownEndpoint property +func (m *OidcIdentityProvider) SetWellKnownEndpoint(value *string)() { + err := m.GetBackingStore().Set("wellKnownEndpoint", value) + if err != nil { + panic(err) + } +} +type OidcIdentityProviderable interface { + IdentityProviderBaseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetClientAuthentication()(OidcClientAuthenticationable) + GetClientId()(*string) + GetInboundClaimMapping()(OidcInboundClaimMappingOverrideable) + GetIssuer()(*string) + GetResponseType()(*OidcResponseType) + GetScope()(*string) + GetWellKnownEndpoint()(*string) + SetClientAuthentication(value OidcClientAuthenticationable)() + SetClientId(value *string)() + SetInboundClaimMapping(value OidcInboundClaimMappingOverrideable)() + SetIssuer(value *string)() + SetResponseType(value *OidcResponseType)() + SetScope(value *string)() + SetWellKnownEndpoint(value *string)() +} diff --git a/models/oidc_inbound_claim_mapping_override.go b/models/oidc_inbound_claim_mapping_override.go new file mode 100644 index 00000000000..c4faae42f0e --- /dev/null +++ b/models/oidc_inbound_claim_mapping_override.go @@ -0,0 +1,449 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type OidcInboundClaimMappingOverride struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewOidcInboundClaimMappingOverride instantiates a new OidcInboundClaimMappingOverride and sets the default values. +func NewOidcInboundClaimMappingOverride()(*OidcInboundClaimMappingOverride) { + m := &OidcInboundClaimMappingOverride{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateOidcInboundClaimMappingOverrideFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateOidcInboundClaimMappingOverrideFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOidcInboundClaimMappingOverride(), 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. +// returns a map[string]any when successful +func (m *OidcInboundClaimMappingOverride) 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) +} +// GetAddress gets the address property value. The address property +// returns a OidcAddressInboundClaimsable when successful +func (m *OidcInboundClaimMappingOverride) GetAddress()(OidcAddressInboundClaimsable) { + val, err := m.GetBackingStore().Get("address") + if err != nil { + panic(err) + } + if val != nil { + return val.(OidcAddressInboundClaimsable) + } + return nil +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *OidcInboundClaimMappingOverride) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetEmail gets the email property value. The email property +// returns a *string when successful +func (m *OidcInboundClaimMappingOverride) GetEmail()(*string) { + val, err := m.GetBackingStore().Get("email") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetEmailVerified gets the email_verified property value. The email_verified property +// returns a *string when successful +func (m *OidcInboundClaimMappingOverride) GetEmailVerified()(*string) { + val, err := m.GetBackingStore().Get("email_verified") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFamilyName gets the family_name property value. The family_name property +// returns a *string when successful +func (m *OidcInboundClaimMappingOverride) GetFamilyName()(*string) { + val, err := m.GetBackingStore().Get("family_name") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *OidcInboundClaimMappingOverride) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["address"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateOidcAddressInboundClaimsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAddress(val.(OidcAddressInboundClaimsable)) + } + return nil + } + res["email"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetEmail(val) + } + return nil + } + res["email_verified"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetEmailVerified(val) + } + return nil + } + res["family_name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFamilyName(val) + } + return nil + } + res["given_name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetGivenName(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["phone_number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPhoneNumber(val) + } + return nil + } + res["phone_number_verified"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPhoneNumberVerified(val) + } + return nil + } + res["sub"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSub(val) + } + return nil + } + return res +} +// GetGivenName gets the given_name property value. The given_name property +// returns a *string when successful +func (m *OidcInboundClaimMappingOverride) GetGivenName()(*string) { + val, err := m.GetBackingStore().Get("given_name") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetName gets the name property value. The name property +// returns a *string when successful +func (m *OidcInboundClaimMappingOverride) GetName()(*string) { + val, err := m.GetBackingStore().Get("name") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *OidcInboundClaimMappingOverride) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPhoneNumber gets the phone_number property value. The phone_number property +// returns a *string when successful +func (m *OidcInboundClaimMappingOverride) GetPhoneNumber()(*string) { + val, err := m.GetBackingStore().Get("phone_number") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPhoneNumberVerified gets the phone_number_verified property value. The phone_number_verified property +// returns a *string when successful +func (m *OidcInboundClaimMappingOverride) GetPhoneNumberVerified()(*string) { + val, err := m.GetBackingStore().Get("phone_number_verified") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSub gets the sub property value. The sub property +// returns a *string when successful +func (m *OidcInboundClaimMappingOverride) GetSub()(*string) { + val, err := m.GetBackingStore().Get("sub") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *OidcInboundClaimMappingOverride) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("address", m.GetAddress()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("email", m.GetEmail()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("email_verified", m.GetEmailVerified()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("family_name", m.GetFamilyName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("given_name", m.GetGivenName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("phone_number", m.GetPhoneNumber()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("phone_number_verified", m.GetPhoneNumberVerified()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sub", m.GetSub()) + 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 *OidcInboundClaimMappingOverride) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetAddress sets the address property value. The address property +func (m *OidcInboundClaimMappingOverride) SetAddress(value OidcAddressInboundClaimsable)() { + err := m.GetBackingStore().Set("address", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *OidcInboundClaimMappingOverride) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetEmail sets the email property value. The email property +func (m *OidcInboundClaimMappingOverride) SetEmail(value *string)() { + err := m.GetBackingStore().Set("email", value) + if err != nil { + panic(err) + } +} +// SetEmailVerified sets the email_verified property value. The email_verified property +func (m *OidcInboundClaimMappingOverride) SetEmailVerified(value *string)() { + err := m.GetBackingStore().Set("email_verified", value) + if err != nil { + panic(err) + } +} +// SetFamilyName sets the family_name property value. The family_name property +func (m *OidcInboundClaimMappingOverride) SetFamilyName(value *string)() { + err := m.GetBackingStore().Set("family_name", value) + if err != nil { + panic(err) + } +} +// SetGivenName sets the given_name property value. The given_name property +func (m *OidcInboundClaimMappingOverride) SetGivenName(value *string)() { + err := m.GetBackingStore().Set("given_name", value) + if err != nil { + panic(err) + } +} +// SetName sets the name property value. The name property +func (m *OidcInboundClaimMappingOverride) SetName(value *string)() { + err := m.GetBackingStore().Set("name", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *OidcInboundClaimMappingOverride) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetPhoneNumber sets the phone_number property value. The phone_number property +func (m *OidcInboundClaimMappingOverride) SetPhoneNumber(value *string)() { + err := m.GetBackingStore().Set("phone_number", value) + if err != nil { + panic(err) + } +} +// SetPhoneNumberVerified sets the phone_number_verified property value. The phone_number_verified property +func (m *OidcInboundClaimMappingOverride) SetPhoneNumberVerified(value *string)() { + err := m.GetBackingStore().Set("phone_number_verified", value) + if err != nil { + panic(err) + } +} +// SetSub sets the sub property value. The sub property +func (m *OidcInboundClaimMappingOverride) SetSub(value *string)() { + err := m.GetBackingStore().Set("sub", value) + if err != nil { + panic(err) + } +} +type OidcInboundClaimMappingOverrideable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAddress()(OidcAddressInboundClaimsable) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetEmail()(*string) + GetEmailVerified()(*string) + GetFamilyName()(*string) + GetGivenName()(*string) + GetName()(*string) + GetOdataType()(*string) + GetPhoneNumber()(*string) + GetPhoneNumberVerified()(*string) + GetSub()(*string) + SetAddress(value OidcAddressInboundClaimsable)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetEmail(value *string)() + SetEmailVerified(value *string)() + SetFamilyName(value *string)() + SetGivenName(value *string)() + SetName(value *string)() + SetOdataType(value *string)() + SetPhoneNumber(value *string)() + SetPhoneNumberVerified(value *string)() + SetSub(value *string)() +} diff --git a/models/oidc_private_jwt_key_client_authentication.go b/models/oidc_private_jwt_key_client_authentication.go new file mode 100644 index 00000000000..c36feae4529 --- /dev/null +++ b/models/oidc_private_jwt_key_client_authentication.go @@ -0,0 +1,44 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type OidcPrivateJwtKeyClientAuthentication struct { + OidcClientAuthentication +} +// NewOidcPrivateJwtKeyClientAuthentication instantiates a new OidcPrivateJwtKeyClientAuthentication and sets the default values. +func NewOidcPrivateJwtKeyClientAuthentication()(*OidcPrivateJwtKeyClientAuthentication) { + m := &OidcPrivateJwtKeyClientAuthentication{ + OidcClientAuthentication: *NewOidcClientAuthentication(), + } + odataTypeValue := "#microsoft.graph.oidcPrivateJwtKeyClientAuthentication" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateOidcPrivateJwtKeyClientAuthenticationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateOidcPrivateJwtKeyClientAuthenticationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOidcPrivateJwtKeyClientAuthentication(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *OidcPrivateJwtKeyClientAuthentication) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.OidcClientAuthentication.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *OidcPrivateJwtKeyClientAuthentication) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.OidcClientAuthentication.Serialize(writer) + if err != nil { + return err + } + return nil +} +type OidcPrivateJwtKeyClientAuthenticationable interface { + OidcClientAuthenticationable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/oidc_response_type.go b/models/oidc_response_type.go new file mode 100644 index 00000000000..7de317ec980 --- /dev/null +++ b/models/oidc_response_type.go @@ -0,0 +1,57 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models +import ( + "math" + "strings" +) +type OidcResponseType int + +const ( + CODE_OIDCRESPONSETYPE = 1 + ID_TOKEN_OIDCRESPONSETYPE = 2 + TOKEN_OIDCRESPONSETYPE = 4 + UNKNOWNFUTUREVALUE_OIDCRESPONSETYPE = 8 +) + +func (i OidcResponseType) String() string { + var values []string + options := []string{"code", "id_token", "token", "unknownFutureValue"} + for p := 0; p < 4; p++ { + mantis := OidcResponseType(int(math.Pow(2, float64(p)))) + if i&mantis == mantis { + values = append(values, options[p]) + } + } + return strings.Join(values, ",") +} +func ParseOidcResponseType(v string) (any, error) { + var result OidcResponseType + values := strings.Split(v, ",") + for _, str := range values { + switch str { + case "code": + result |= CODE_OIDCRESPONSETYPE + case "id_token": + result |= ID_TOKEN_OIDCRESPONSETYPE + case "token": + result |= TOKEN_OIDCRESPONSETYPE + case "unknownFutureValue": + result |= UNKNOWNFUTUREVALUE_OIDCRESPONSETYPE + default: + return nil, nil + } + } + return &result, nil +} +func SerializeOidcResponseType(values []OidcResponseType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i OidcResponseType) isMultiValue() bool { + return true +} diff --git a/models/password_authentication_method.go b/models/password_authentication_method.go index d38e747361e..2ceef8f9fa1 100644 --- a/models/password_authentication_method.go +++ b/models/password_authentication_method.go @@ -4,7 +4,6 @@ package models import ( - i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) @@ -25,32 +24,10 @@ func NewPasswordAuthenticationMethod()(*PasswordAuthenticationMethod) { func CreatePasswordAuthenticationMethodFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewPasswordAuthenticationMethod(), nil } -// GetCreatedDateTime gets the createdDateTime property value. The date and time when this password was last updated. This property is currently not populated. Read-only. 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. -// returns a *Time when successful -func (m *PasswordAuthenticationMethod) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { - val, err := m.GetBackingStore().Get("createdDateTime") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - } - return nil -} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *PasswordAuthenticationMethod) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AuthenticationMethod.GetFieldDeserializers() - res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetTimeValue() - if err != nil { - return err - } - if val != nil { - m.SetCreatedDateTime(val) - } - return nil - } res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -81,12 +58,6 @@ func (m *PasswordAuthenticationMethod) Serialize(writer i878a80d2330e89d26896388 if err != nil { return err } - { - err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) - if err != nil { - return err - } - } { err = writer.WriteStringValue("password", m.GetPassword()) if err != nil { @@ -95,13 +66,6 @@ func (m *PasswordAuthenticationMethod) Serialize(writer i878a80d2330e89d26896388 } return nil } -// SetCreatedDateTime sets the createdDateTime property value. The date and time when this password was last updated. This property is currently not populated. Read-only. 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. -func (m *PasswordAuthenticationMethod) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { - err := m.GetBackingStore().Set("createdDateTime", value) - if err != nil { - panic(err) - } -} // SetPassword sets the password property value. For security, the password is always returned as null from a LIST or GET operation. func (m *PasswordAuthenticationMethod) SetPassword(value *string)() { err := m.GetBackingStore().Set("password", value) @@ -112,8 +76,6 @@ func (m *PasswordAuthenticationMethod) SetPassword(value *string)() { type PasswordAuthenticationMethodable interface { AuthenticationMethodable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetPassword()(*string) - SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetPassword(value *string)() } diff --git a/models/platform_credential_authentication_method.go b/models/platform_credential_authentication_method.go index 604a39dc7ce..b73db9cedc6 100644 --- a/models/platform_credential_authentication_method.go +++ b/models/platform_credential_authentication_method.go @@ -4,7 +4,6 @@ package models import ( - i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) @@ -25,18 +24,6 @@ func NewPlatformCredentialAuthenticationMethod()(*PlatformCredentialAuthenticati func CreatePlatformCredentialAuthenticationMethodFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewPlatformCredentialAuthenticationMethod(), nil } -// GetCreatedDateTime gets the createdDateTime property value. The date and time that this Platform Credential Key was registered. -// returns a *Time when successful -func (m *PlatformCredentialAuthenticationMethod) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { - val, err := m.GetBackingStore().Get("createdDateTime") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - } - return nil -} // GetDevice gets the device property value. The registered device on which this Platform Credential resides. Supports $expand. When you get a user's Platform Credential registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/platformCredentialAuthenticationMethod/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device. // returns a Deviceable when successful func (m *PlatformCredentialAuthenticationMethod) GetDevice()(Deviceable) { @@ -65,16 +52,6 @@ func (m *PlatformCredentialAuthenticationMethod) GetDisplayName()(*string) { // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *PlatformCredentialAuthenticationMethod) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AuthenticationMethod.GetFieldDeserializers() - res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetTimeValue() - if err != nil { - return err - } - if val != nil { - m.SetCreatedDateTime(val) - } - return nil - } res["device"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateDeviceFromDiscriminatorValue) if err != nil { @@ -147,12 +124,6 @@ func (m *PlatformCredentialAuthenticationMethod) Serialize(writer i878a80d2330e8 if err != nil { return err } - { - err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) - if err != nil { - return err - } - } { err = writer.WriteObjectValue("device", m.GetDevice()) if err != nil { @@ -181,13 +152,6 @@ func (m *PlatformCredentialAuthenticationMethod) Serialize(writer i878a80d2330e8 } return nil } -// SetCreatedDateTime sets the createdDateTime property value. The date and time that this Platform Credential Key was registered. -func (m *PlatformCredentialAuthenticationMethod) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { - err := m.GetBackingStore().Set("createdDateTime", value) - if err != nil { - panic(err) - } -} // SetDevice sets the device property value. The registered device on which this Platform Credential resides. Supports $expand. When you get a user's Platform Credential registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/platformCredentialAuthenticationMethod/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device. func (m *PlatformCredentialAuthenticationMethod) SetDevice(value Deviceable)() { err := m.GetBackingStore().Set("device", value) @@ -219,12 +183,10 @@ func (m *PlatformCredentialAuthenticationMethod) SetPlatform(value *Authenticati type PlatformCredentialAuthenticationMethodable interface { AuthenticationMethodable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDevice()(Deviceable) GetDisplayName()(*string) GetKeyStrength()(*AuthenticationMethodKeyStrength) GetPlatform()(*AuthenticationMethodPlatform) - SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDevice(value Deviceable)() SetDisplayName(value *string)() SetKeyStrength(value *AuthenticationMethodKeyStrength)() diff --git a/models/process_conversation_metadata.go b/models/process_conversation_metadata.go index a8c48151e32..425020fce51 100644 --- a/models/process_conversation_metadata.go +++ b/models/process_conversation_metadata.go @@ -36,6 +36,30 @@ func (m *ProcessConversationMetadata) GetAccessedResources()([]string) { } return nil } +// GetAccessedResourcesV2 gets the accessedResources_v2 property value. The accessedResources_v2 property +// returns a []ResourceAccessDetailable when successful +func (m *ProcessConversationMetadata) GetAccessedResourcesV2()([]ResourceAccessDetailable) { + val, err := m.GetBackingStore().Get("accessedResources_v2") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ResourceAccessDetailable) + } + return nil +} +// GetAgents gets the agents property value. The agents property +// returns a []AiAgentInfoable when successful +func (m *ProcessConversationMetadata) GetAgents()([]AiAgentInfoable) { + val, err := m.GetBackingStore().Get("agents") + if err != nil { + panic(err) + } + if val != nil { + return val.([]AiAgentInfoable) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *ProcessConversationMetadata) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { @@ -56,6 +80,38 @@ func (m *ProcessConversationMetadata) GetFieldDeserializers()(map[string]func(i8 } return nil } + res["accessedResources_v2"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateResourceAccessDetailFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ResourceAccessDetailable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ResourceAccessDetailable) + } + } + m.SetAccessedResourcesV2(res) + } + return nil + } + res["agents"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateAiAgentInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]AiAgentInfoable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(AiAgentInfoable) + } + } + m.SetAgents(res) + } + return nil + } res["parentMessageId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -120,6 +176,30 @@ func (m *ProcessConversationMetadata) Serialize(writer i878a80d2330e89d26896388a return err } } + if m.GetAccessedResourcesV2() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAccessedResourcesV2())) + for i, v := range m.GetAccessedResourcesV2() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("accessedResources_v2", cast) + if err != nil { + return err + } + } + if m.GetAgents() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAgents())) + for i, v := range m.GetAgents() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("agents", cast) + if err != nil { + return err + } + } { err = writer.WriteStringValue("parentMessageId", m.GetParentMessageId()) if err != nil { @@ -147,6 +227,20 @@ func (m *ProcessConversationMetadata) SetAccessedResources(value []string)() { panic(err) } } +// SetAccessedResourcesV2 sets the accessedResources_v2 property value. The accessedResources_v2 property +func (m *ProcessConversationMetadata) SetAccessedResourcesV2(value []ResourceAccessDetailable)() { + err := m.GetBackingStore().Set("accessedResources_v2", value) + if err != nil { + panic(err) + } +} +// SetAgents sets the agents property value. The agents property +func (m *ProcessConversationMetadata) SetAgents(value []AiAgentInfoable)() { + err := m.GetBackingStore().Set("agents", value) + if err != nil { + panic(err) + } +} // SetParentMessageId sets the parentMessageId property value. Identifier of the parent message in a threaded conversation, if applicable. func (m *ProcessConversationMetadata) SetParentMessageId(value *string)() { err := m.GetBackingStore().Set("parentMessageId", value) @@ -165,9 +259,13 @@ type ProcessConversationMetadataable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable ProcessContentMetadataBaseable GetAccessedResources()([]string) + GetAccessedResourcesV2()([]ResourceAccessDetailable) + GetAgents()([]AiAgentInfoable) GetParentMessageId()(*string) GetPlugins()([]AiInteractionPluginable) SetAccessedResources(value []string)() + SetAccessedResourcesV2(value []ResourceAccessDetailable)() + SetAgents(value []AiAgentInfoable)() SetParentMessageId(value *string)() SetPlugins(value []AiInteractionPluginable)() } diff --git a/models/resource_access_detail.go b/models/resource_access_detail.go new file mode 100644 index 00000000000..a29420ebae4 --- /dev/null +++ b/models/resource_access_detail.go @@ -0,0 +1,414 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ResourceAccessDetail struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewResourceAccessDetail instantiates a new ResourceAccessDetail and sets the default values. +func NewResourceAccessDetail()(*ResourceAccessDetail) { + m := &ResourceAccessDetail{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateResourceAccessDetailFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateResourceAccessDetailFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewResourceAccessDetail(), nil +} +// GetAccessType gets the accessType property value. The accessType property +// returns a *ResourceAccessType when successful +func (m *ResourceAccessDetail) GetAccessType()(*ResourceAccessType) { + val, err := m.GetBackingStore().Get("accessType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ResourceAccessType) + } + return 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. +// returns a map[string]any when successful +func (m *ResourceAccessDetail) 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. +// returns a BackingStore when successful +func (m *ResourceAccessDetail) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ResourceAccessDetail) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["accessType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseResourceAccessType) + if err != nil { + return err + } + if val != nil { + m.SetAccessType(val.(*ResourceAccessType)) + } + return nil + } + res["identifier"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetIdentifier(val) + } + return nil + } + res["isCrossPromptInjectionDetected"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsCrossPromptInjectionDetected(val) + } + return nil + } + res["labelId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLabelId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseResourceAccessStatus) + if err != nil { + return err + } + if val != nil { + m.SetStatus(val.(*ResourceAccessStatus)) + } + return nil + } + res["storageId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStorageId(val) + } + 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 +} +// GetIdentifier gets the identifier property value. The identifier property +// returns a *string when successful +func (m *ResourceAccessDetail) GetIdentifier()(*string) { + val, err := m.GetBackingStore().Get("identifier") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetIsCrossPromptInjectionDetected gets the isCrossPromptInjectionDetected property value. The isCrossPromptInjectionDetected property +// returns a *bool when successful +func (m *ResourceAccessDetail) GetIsCrossPromptInjectionDetected()(*bool) { + val, err := m.GetBackingStore().Get("isCrossPromptInjectionDetected") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetLabelId gets the labelId property value. The labelId property +// returns a *string when successful +func (m *ResourceAccessDetail) GetLabelId()(*string) { + val, err := m.GetBackingStore().Get("labelId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetName gets the name property value. The name property +// returns a *string when successful +func (m *ResourceAccessDetail) GetName()(*string) { + val, err := m.GetBackingStore().Get("name") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *ResourceAccessDetail) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetStatus gets the status property value. The status property +// returns a *ResourceAccessStatus when successful +func (m *ResourceAccessDetail) GetStatus()(*ResourceAccessStatus) { + val, err := m.GetBackingStore().Get("status") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ResourceAccessStatus) + } + return nil +} +// GetStorageId gets the storageId property value. The storageId property +// returns a *string when successful +func (m *ResourceAccessDetail) GetStorageId()(*string) { + val, err := m.GetBackingStore().Get("storageId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetUrl gets the url property value. The url property +// returns a *string when successful +func (m *ResourceAccessDetail) GetUrl()(*string) { + val, err := m.GetBackingStore().Get("url") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ResourceAccessDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAccessType() != nil { + cast := (*m.GetAccessType()).String() + err := writer.WriteStringValue("accessType", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("identifier", m.GetIdentifier()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("isCrossPromptInjectionDetected", m.GetIsCrossPromptInjectionDetected()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("labelId", m.GetLabelId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetStatus() != nil { + cast := (*m.GetStatus()).String() + err := writer.WriteStringValue("status", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("storageId", m.GetStorageId()) + 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 +} +// SetAccessType sets the accessType property value. The accessType property +func (m *ResourceAccessDetail) SetAccessType(value *ResourceAccessType)() { + err := m.GetBackingStore().Set("accessType", value) + if err != nil { + panic(err) + } +} +// 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 *ResourceAccessDetail) 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 *ResourceAccessDetail) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIdentifier sets the identifier property value. The identifier property +func (m *ResourceAccessDetail) SetIdentifier(value *string)() { + err := m.GetBackingStore().Set("identifier", value) + if err != nil { + panic(err) + } +} +// SetIsCrossPromptInjectionDetected sets the isCrossPromptInjectionDetected property value. The isCrossPromptInjectionDetected property +func (m *ResourceAccessDetail) SetIsCrossPromptInjectionDetected(value *bool)() { + err := m.GetBackingStore().Set("isCrossPromptInjectionDetected", value) + if err != nil { + panic(err) + } +} +// SetLabelId sets the labelId property value. The labelId property +func (m *ResourceAccessDetail) SetLabelId(value *string)() { + err := m.GetBackingStore().Set("labelId", value) + if err != nil { + panic(err) + } +} +// SetName sets the name property value. The name property +func (m *ResourceAccessDetail) SetName(value *string)() { + err := m.GetBackingStore().Set("name", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ResourceAccessDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetStatus sets the status property value. The status property +func (m *ResourceAccessDetail) SetStatus(value *ResourceAccessStatus)() { + err := m.GetBackingStore().Set("status", value) + if err != nil { + panic(err) + } +} +// SetStorageId sets the storageId property value. The storageId property +func (m *ResourceAccessDetail) SetStorageId(value *string)() { + err := m.GetBackingStore().Set("storageId", value) + if err != nil { + panic(err) + } +} +// SetUrl sets the url property value. The url property +func (m *ResourceAccessDetail) SetUrl(value *string)() { + err := m.GetBackingStore().Set("url", value) + if err != nil { + panic(err) + } +} +type ResourceAccessDetailable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAccessType()(*ResourceAccessType) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIdentifier()(*string) + GetIsCrossPromptInjectionDetected()(*bool) + GetLabelId()(*string) + GetName()(*string) + GetOdataType()(*string) + GetStatus()(*ResourceAccessStatus) + GetStorageId()(*string) + GetUrl()(*string) + SetAccessType(value *ResourceAccessType)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIdentifier(value *string)() + SetIsCrossPromptInjectionDetected(value *bool)() + SetLabelId(value *string)() + SetName(value *string)() + SetOdataType(value *string)() + SetStatus(value *ResourceAccessStatus)() + SetStorageId(value *string)() + SetUrl(value *string)() +} diff --git a/models/resource_access_status.go b/models/resource_access_status.go new file mode 100644 index 00000000000..575ceb73366 --- /dev/null +++ b/models/resource_access_status.go @@ -0,0 +1,42 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models +type ResourceAccessStatus int + +const ( + NONE_RESOURCEACCESSSTATUS ResourceAccessStatus = iota + FAILURE_RESOURCEACCESSSTATUS + SUCCESS_RESOURCEACCESSSTATUS + UNKNOWNFUTUREVALUE_RESOURCEACCESSSTATUS +) + +func (i ResourceAccessStatus) String() string { + return []string{"none", "failure", "success", "unknownFutureValue"}[i] +} +func ParseResourceAccessStatus(v string) (any, error) { + result := NONE_RESOURCEACCESSSTATUS + switch v { + case "none": + result = NONE_RESOURCEACCESSSTATUS + case "failure": + result = FAILURE_RESOURCEACCESSSTATUS + case "success": + result = SUCCESS_RESOURCEACCESSSTATUS + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_RESOURCEACCESSSTATUS + default: + return nil, nil + } + return &result, nil +} +func SerializeResourceAccessStatus(values []ResourceAccessStatus) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i ResourceAccessStatus) isMultiValue() bool { + return false +} diff --git a/models/resource_access_type.go b/models/resource_access_type.go new file mode 100644 index 00000000000..1846b14ee78 --- /dev/null +++ b/models/resource_access_type.go @@ -0,0 +1,60 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models +import ( + "math" + "strings" +) +type ResourceAccessType int + +const ( + NONE_RESOURCEACCESSTYPE = 1 + READ_RESOURCEACCESSTYPE = 2 + WRITE_RESOURCEACCESSTYPE = 4 + CREATE_RESOURCEACCESSTYPE = 8 + UNKNOWNFUTUREVALUE_RESOURCEACCESSTYPE = 16 +) + +func (i ResourceAccessType) String() string { + var values []string + options := []string{"none", "read", "write", "create", "unknownFutureValue"} + for p := 0; p < 5; p++ { + mantis := ResourceAccessType(int(math.Pow(2, float64(p)))) + if i&mantis == mantis { + values = append(values, options[p]) + } + } + return strings.Join(values, ",") +} +func ParseResourceAccessType(v string) (any, error) { + var result ResourceAccessType + values := strings.Split(v, ",") + for _, str := range values { + switch str { + case "none": + result |= NONE_RESOURCEACCESSTYPE + case "read": + result |= READ_RESOURCEACCESSTYPE + case "write": + result |= WRITE_RESOURCEACCESSTYPE + case "create": + result |= CREATE_RESOURCEACCESSTYPE + case "unknownFutureValue": + result |= UNKNOWNFUTUREVALUE_RESOURCEACCESSTYPE + default: + return nil, nil + } + } + return &result, nil +} +func SerializeResourceAccessType(values []ResourceAccessType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i ResourceAccessType) isMultiValue() bool { + return true +} diff --git a/models/security/ediscovery_purge_data_operation.go b/models/security/ediscovery_purge_data_operation.go index a6c326b16cc..2ba7d024775 100644 --- a/models/security/ediscovery_purge_data_operation.go +++ b/models/security/ediscovery_purge_data_operation.go @@ -26,17 +26,66 @@ func CreateEdiscoveryPurgeDataOperationFromDiscriminatorValue(parseNode i878a80d // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *EdiscoveryPurgeDataOperation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.CaseOperation.GetFieldDeserializers() + res["reportFileMetadata"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateReportFileMetadataFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ReportFileMetadataable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ReportFileMetadataable) + } + } + m.SetReportFileMetadata(res) + } + return nil + } return res } +// GetReportFileMetadata gets the reportFileMetadata property value. The purge job report file metadata. It contains the properties for report file metadata, including downloadUrl, fileName, and size. +// returns a []ReportFileMetadataable when successful +func (m *EdiscoveryPurgeDataOperation) GetReportFileMetadata()([]ReportFileMetadataable) { + val, err := m.GetBackingStore().Get("reportFileMetadata") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ReportFileMetadataable) + } + return nil +} // Serialize serializes information the current object func (m *EdiscoveryPurgeDataOperation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.CaseOperation.Serialize(writer) if err != nil { return err } + if m.GetReportFileMetadata() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetReportFileMetadata())) + for i, v := range m.GetReportFileMetadata() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("reportFileMetadata", cast) + if err != nil { + return err + } + } return nil } +// SetReportFileMetadata sets the reportFileMetadata property value. The purge job report file metadata. It contains the properties for report file metadata, including downloadUrl, fileName, and size. +func (m *EdiscoveryPurgeDataOperation) SetReportFileMetadata(value []ReportFileMetadataable)() { + err := m.GetBackingStore().Set("reportFileMetadata", value) + if err != nil { + panic(err) + } +} type EdiscoveryPurgeDataOperationable interface { CaseOperationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetReportFileMetadata()([]ReportFileMetadataable) + SetReportFileMetadata(value []ReportFileMetadataable)() } diff --git a/models/security/incident.go b/models/security/incident.go index 610f5b7925d..74d034d41bb 100644 --- a/models/security/incident.go +++ b/models/security/incident.go @@ -398,7 +398,7 @@ func (m *Incident) GetLastUpdateDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f } return nil } -// GetPriorityScore gets the priorityScore property value. The priorityScore property +// GetPriorityScore gets the priorityScore property value. A priority score for the incident from 0 to 100, with > 85 being the top priority, 15 - 85 medium priority, and < 15 low priority. This score is generated using machine learning and is based on multiple factors, including severity, disruption impact, threat intelligence, alert types, asset criticality, threat analytics, incident rarity, and additional priority signals. The value can also be null which indicates the feature is not open for the tenant or the value of the score is pending calculation. // returns a *int32 when successful func (m *Incident) GetPriorityScore()(*int32) { val, err := m.GetBackingStore().Get("priorityScore") @@ -722,7 +722,7 @@ func (m *Incident) SetLastUpdateDateTime(value *i336074805fc853987abe6f7fe3ad97a panic(err) } } -// SetPriorityScore sets the priorityScore property value. The priorityScore property +// SetPriorityScore sets the priorityScore property value. A priority score for the incident from 0 to 100, with > 85 being the top priority, 15 - 85 medium priority, and < 15 low priority. This score is generated using machine learning and is based on multiple factors, including severity, disruption impact, threat intelligence, alert types, asset criticality, threat analytics, incident rarity, and additional priority signals. The value can also be null which indicates the feature is not open for the tenant or the value of the score is pending calculation. func (m *Incident) SetPriorityScore(value *int32)() { err := m.GetBackingStore().Set("priorityScore", value) if err != nil { diff --git a/models/teamsadministration/policy_identifier_detail.go b/models/teamsadministration/policy_identifier_detail.go new file mode 100644 index 00000000000..edc77bf8feb --- /dev/null +++ b/models/teamsadministration/policy_identifier_detail.go @@ -0,0 +1,117 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamsadministration + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" +) + +type PolicyIdentifierDetail struct { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entity +} +// NewPolicyIdentifierDetail instantiates a new PolicyIdentifierDetail and sets the default values. +func NewPolicyIdentifierDetail()(*PolicyIdentifierDetail) { + m := &PolicyIdentifierDetail{ + Entity: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewEntity(), + } + return m +} +// CreatePolicyIdentifierDetailFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreatePolicyIdentifierDetailFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewPolicyIdentifierDetail(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *PolicyIdentifierDetail) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["policyId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPolicyId(val) + } + return nil + } + return res +} +// GetName gets the name property value. The display name of the policy instance. +// returns a *string when successful +func (m *PolicyIdentifierDetail) GetName()(*string) { + val, err := m.GetBackingStore().Get("name") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPolicyId gets the policyId property value. The unique ID associated with the policy instance. +// returns a *string when successful +func (m *PolicyIdentifierDetail) GetPolicyId()(*string) { + val, err := m.GetBackingStore().Get("policyId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *PolicyIdentifierDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("policyId", m.GetPolicyId()) + if err != nil { + return err + } + } + return nil +} +// SetName sets the name property value. The display name of the policy instance. +func (m *PolicyIdentifierDetail) SetName(value *string)() { + err := m.GetBackingStore().Set("name", value) + if err != nil { + panic(err) + } +} +// SetPolicyId sets the policyId property value. The unique ID associated with the policy instance. +func (m *PolicyIdentifierDetail) SetPolicyId(value *string)() { + err := m.GetBackingStore().Set("policyId", value) + if err != nil { + panic(err) + } +} +type PolicyIdentifierDetailable interface { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + GetPolicyId()(*string) + SetName(value *string)() + SetPolicyId(value *string)() +} diff --git a/models/teamsadministration/teams_admin_root.go b/models/teamsadministration/teams_admin_root.go index 4565ddd248b..10eb6f0fe5e 100644 --- a/models/teamsadministration/teams_admin_root.go +++ b/models/teamsadministration/teams_admin_root.go @@ -27,6 +27,16 @@ func CreateTeamsAdminRootFromDiscriminatorValue(parseNode i878a80d2330e89d268963 // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *TeamsAdminRoot) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() + res["policy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateTeamsPolicyAssignmentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetPolicy(val.(TeamsPolicyAssignmentable)) + } + return nil + } res["userConfigurations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateTeamsUserConfigurationFromDiscriminatorValue) if err != nil { @@ -45,7 +55,19 @@ func (m *TeamsAdminRoot) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } return res } -// GetUserConfigurations gets the userConfigurations property value. Represents the configuration information of users who have accounts hosted on Microsoft Teams. +// GetPolicy gets the policy property value. Represents a navigation property to the Teams policy assignment object. +// returns a TeamsPolicyAssignmentable when successful +func (m *TeamsAdminRoot) GetPolicy()(TeamsPolicyAssignmentable) { + val, err := m.GetBackingStore().Get("policy") + if err != nil { + panic(err) + } + if val != nil { + return val.(TeamsPolicyAssignmentable) + } + return nil +} +// GetUserConfigurations gets the userConfigurations property value. Represents the configuration information of users who have accounts hosted on Microsoft Teams // returns a []TeamsUserConfigurationable when successful func (m *TeamsAdminRoot) GetUserConfigurations()([]TeamsUserConfigurationable) { val, err := m.GetBackingStore().Get("userConfigurations") @@ -63,6 +85,12 @@ func (m *TeamsAdminRoot) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a if err != nil { return err } + { + err = writer.WriteObjectValue("policy", m.GetPolicy()) + if err != nil { + return err + } + } if m.GetUserConfigurations() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetUserConfigurations())) for i, v := range m.GetUserConfigurations() { @@ -77,7 +105,14 @@ func (m *TeamsAdminRoot) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a } return nil } -// SetUserConfigurations sets the userConfigurations property value. Represents the configuration information of users who have accounts hosted on Microsoft Teams. +// SetPolicy sets the policy property value. Represents a navigation property to the Teams policy assignment object. +func (m *TeamsAdminRoot) SetPolicy(value TeamsPolicyAssignmentable)() { + err := m.GetBackingStore().Set("policy", value) + if err != nil { + panic(err) + } +} +// SetUserConfigurations sets the userConfigurations property value. Represents the configuration information of users who have accounts hosted on Microsoft Teams func (m *TeamsAdminRoot) SetUserConfigurations(value []TeamsUserConfigurationable)() { err := m.GetBackingStore().Set("userConfigurations", value) if err != nil { @@ -87,6 +122,8 @@ func (m *TeamsAdminRoot) SetUserConfigurations(value []TeamsUserConfigurationabl type TeamsAdminRootable interface { iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPolicy()(TeamsPolicyAssignmentable) GetUserConfigurations()([]TeamsUserConfigurationable) + SetPolicy(value TeamsPolicyAssignmentable)() SetUserConfigurations(value []TeamsUserConfigurationable)() } diff --git a/models/teamsadministration/teams_policy_assignment.go b/models/teamsadministration/teams_policy_assignment.go new file mode 100644 index 00000000000..27c3e9f45b4 --- /dev/null +++ b/models/teamsadministration/teams_policy_assignment.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamsadministration + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" +) + +type TeamsPolicyAssignment struct { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entity +} +// NewTeamsPolicyAssignment instantiates a new TeamsPolicyAssignment and sets the default values. +func NewTeamsPolicyAssignment()(*TeamsPolicyAssignment) { + m := &TeamsPolicyAssignment{ + Entity: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewEntity(), + } + return m +} +// CreateTeamsPolicyAssignmentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamsPolicyAssignmentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamsPolicyAssignment(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TeamsPolicyAssignment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["userAssignments"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateTeamsPolicyUserAssignmentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]TeamsPolicyUserAssignmentable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(TeamsPolicyUserAssignmentable) + } + } + m.SetUserAssignments(res) + } + return nil + } + return res +} +// GetUserAssignments gets the userAssignments property value. The collection of user policy assignments. +// returns a []TeamsPolicyUserAssignmentable when successful +func (m *TeamsPolicyAssignment) GetUserAssignments()([]TeamsPolicyUserAssignmentable) { + val, err := m.GetBackingStore().Get("userAssignments") + if err != nil { + panic(err) + } + if val != nil { + return val.([]TeamsPolicyUserAssignmentable) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamsPolicyAssignment) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + if m.GetUserAssignments() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetUserAssignments())) + for i, v := range m.GetUserAssignments() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("userAssignments", cast) + if err != nil { + return err + } + } + return nil +} +// SetUserAssignments sets the userAssignments property value. The collection of user policy assignments. +func (m *TeamsPolicyAssignment) SetUserAssignments(value []TeamsPolicyUserAssignmentable)() { + err := m.GetBackingStore().Set("userAssignments", value) + if err != nil { + panic(err) + } +} +type TeamsPolicyAssignmentable interface { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetUserAssignments()([]TeamsPolicyUserAssignmentable) + SetUserAssignments(value []TeamsPolicyUserAssignmentable)() +} diff --git a/models/teamsadministration/teams_policy_user_assignment.go b/models/teamsadministration/teams_policy_user_assignment.go new file mode 100644 index 00000000000..2e436ac6f67 --- /dev/null +++ b/models/teamsadministration/teams_policy_user_assignment.go @@ -0,0 +1,154 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamsadministration + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" +) + +type TeamsPolicyUserAssignment struct { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entity +} +// NewTeamsPolicyUserAssignment instantiates a new TeamsPolicyUserAssignment and sets the default values. +func NewTeamsPolicyUserAssignment()(*TeamsPolicyUserAssignment) { + m := &TeamsPolicyUserAssignment{ + Entity: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewEntity(), + } + return m +} +// CreateTeamsPolicyUserAssignmentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamsPolicyUserAssignmentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamsPolicyUserAssignment(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TeamsPolicyUserAssignment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["policyId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPolicyId(val) + } + return nil + } + res["policyType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPolicyType(val) + } + return nil + } + res["userId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUserId(val) + } + return nil + } + return res +} +// GetPolicyId gets the policyId property value. The unique identifier (GUID) of the policy within the specified policy type. +// returns a *string when successful +func (m *TeamsPolicyUserAssignment) GetPolicyId()(*string) { + val, err := m.GetBackingStore().Get("policyId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPolicyType gets the policyType property value. The type of Teams policy assigned or unassigned, such as teamsMeetingBroadcastPolicy. +// returns a *string when successful +func (m *TeamsPolicyUserAssignment) GetPolicyType()(*string) { + val, err := m.GetBackingStore().Get("policyType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetUserId gets the userId property value. The unique identifier (GUID) of the user. +// returns a *string when successful +func (m *TeamsPolicyUserAssignment) GetUserId()(*string) { + val, err := m.GetBackingStore().Get("userId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamsPolicyUserAssignment) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("policyId", m.GetPolicyId()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("policyType", m.GetPolicyType()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("userId", m.GetUserId()) + if err != nil { + return err + } + } + return nil +} +// SetPolicyId sets the policyId property value. The unique identifier (GUID) of the policy within the specified policy type. +func (m *TeamsPolicyUserAssignment) SetPolicyId(value *string)() { + err := m.GetBackingStore().Set("policyId", value) + if err != nil { + panic(err) + } +} +// SetPolicyType sets the policyType property value. The type of Teams policy assigned or unassigned, such as teamsMeetingBroadcastPolicy. +func (m *TeamsPolicyUserAssignment) SetPolicyType(value *string)() { + err := m.GetBackingStore().Set("policyType", value) + if err != nil { + panic(err) + } +} +// SetUserId sets the userId property value. The unique identifier (GUID) of the user. +func (m *TeamsPolicyUserAssignment) SetUserId(value *string)() { + err := m.GetBackingStore().Set("userId", value) + if err != nil { + panic(err) + } +} +type TeamsPolicyUserAssignmentable interface { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPolicyId()(*string) + GetPolicyType()(*string) + GetUserId()(*string) + SetPolicyId(value *string)() + SetPolicyType(value *string)() + SetUserId(value *string)() +} diff --git a/models/teamsadministration/teams_policy_user_assignment_collection_response.go b/models/teamsadministration/teams_policy_user_assignment_collection_response.go new file mode 100644 index 00000000000..a87c9b4a192 --- /dev/null +++ b/models/teamsadministration/teams_policy_user_assignment_collection_response.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamsadministration + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" +) + +type TeamsPolicyUserAssignmentCollectionResponse struct { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse +} +// NewTeamsPolicyUserAssignmentCollectionResponse instantiates a new TeamsPolicyUserAssignmentCollectionResponse and sets the default values. +func NewTeamsPolicyUserAssignmentCollectionResponse()(*TeamsPolicyUserAssignmentCollectionResponse) { + m := &TeamsPolicyUserAssignmentCollectionResponse{ + BaseCollectionPaginationCountResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateTeamsPolicyUserAssignmentCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamsPolicyUserAssignmentCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamsPolicyUserAssignmentCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TeamsPolicyUserAssignmentCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateTeamsPolicyUserAssignmentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]TeamsPolicyUserAssignmentable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(TeamsPolicyUserAssignmentable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []TeamsPolicyUserAssignmentable when successful +func (m *TeamsPolicyUserAssignmentCollectionResponse) GetValue()([]TeamsPolicyUserAssignmentable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]TeamsPolicyUserAssignmentable) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamsPolicyUserAssignmentCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + 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 + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *TeamsPolicyUserAssignmentCollectionResponse) SetValue(value []TeamsPolicyUserAssignmentable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type TeamsPolicyUserAssignmentCollectionResponseable interface { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]TeamsPolicyUserAssignmentable) + SetValue(value []TeamsPolicyUserAssignmentable)() +} diff --git a/models/temporary_access_pass_authentication_method.go b/models/temporary_access_pass_authentication_method.go index 8b45f84e0c8..f3e797f0332 100644 --- a/models/temporary_access_pass_authentication_method.go +++ b/models/temporary_access_pass_authentication_method.go @@ -25,32 +25,10 @@ func NewTemporaryAccessPassAuthenticationMethod()(*TemporaryAccessPassAuthentica func CreateTemporaryAccessPassAuthenticationMethodFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewTemporaryAccessPassAuthenticationMethod(), nil } -// GetCreatedDateTime gets the createdDateTime property value. The date and time when the Temporary Access Pass was created. -// returns a *Time when successful -func (m *TemporaryAccessPassAuthenticationMethod) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { - val, err := m.GetBackingStore().Get("createdDateTime") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - } - return nil -} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *TemporaryAccessPassAuthenticationMethod) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AuthenticationMethod.GetFieldDeserializers() - res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetTimeValue() - if err != nil { - return err - } - if val != nil { - m.SetCreatedDateTime(val) - } - return nil - } res["isUsable"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -191,12 +169,6 @@ func (m *TemporaryAccessPassAuthenticationMethod) Serialize(writer i878a80d2330e if err != nil { return err } - { - err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) - if err != nil { - return err - } - } { err = writer.WriteBoolValue("isUsable", m.GetIsUsable()) if err != nil { @@ -235,13 +207,6 @@ func (m *TemporaryAccessPassAuthenticationMethod) Serialize(writer i878a80d2330e } return nil } -// SetCreatedDateTime sets the createdDateTime property value. The date and time when the Temporary Access Pass was created. -func (m *TemporaryAccessPassAuthenticationMethod) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { - err := m.GetBackingStore().Set("createdDateTime", value) - if err != nil { - panic(err) - } -} // SetIsUsable sets the isUsable property value. The state of the authentication method that indicates whether it's currently usable by the user. func (m *TemporaryAccessPassAuthenticationMethod) SetIsUsable(value *bool)() { err := m.GetBackingStore().Set("isUsable", value) @@ -287,14 +252,12 @@ func (m *TemporaryAccessPassAuthenticationMethod) SetTemporaryAccessPass(value * type TemporaryAccessPassAuthenticationMethodable interface { AuthenticationMethodable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetIsUsable()(*bool) GetIsUsableOnce()(*bool) GetLifetimeInMinutes()(*int32) GetMethodUsabilityReason()(*string) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetTemporaryAccessPass()(*string) - SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetIsUsable(value *bool)() SetIsUsableOnce(value *bool)() SetLifetimeInMinutes(value *int32)() diff --git a/models/usage_rights.go b/models/usage_rights.go index 2e91fb7c744..8bcfe5616e5 100644 --- a/models/usage_rights.go +++ b/models/usage_rights.go @@ -29,13 +29,14 @@ const ( ENCRYPTEDPROTECTIONTYPENOTSUPPORTEDEXCEPTION_USAGERIGHTS = 131072 PURVIEWCLAIMSCHALLENGENOTSUPPORTEDEXCEPTION_USAGERIGHTS = 262144 EXCEPTION_USAGERIGHTS = 524288 - UNKNOWNFUTUREVALUE_USAGERIGHTS = 1048576 + LABELNOTFOUNDEXCEPTION_USAGERIGHTS = 1048576 + UNKNOWNFUTUREVALUE_USAGERIGHTS = 2097152 ) func (i UsageRights) String() string { var values []string - options := []string{"unknown", "docEdit", "edit", "comment", "export", "forward", "owner", "print", "reply", "replyAll", "view", "extract", "viewRightsData", "editRightsData", "objModel", "accessDenied", "userDefinedProtectionTypeNotSupportedException", "encryptedProtectionTypeNotSupportedException", "purviewClaimsChallengeNotSupportedException", "exception", "unknownFutureValue"} - for p := 0; p < 21; p++ { + options := []string{"unknown", "docEdit", "edit", "comment", "export", "forward", "owner", "print", "reply", "replyAll", "view", "extract", "viewRightsData", "editRightsData", "objModel", "accessDenied", "userDefinedProtectionTypeNotSupportedException", "encryptedProtectionTypeNotSupportedException", "purviewClaimsChallengeNotSupportedException", "exception", "labelNotFoundException", "unknownFutureValue"} + for p := 0; p < 22; p++ { mantis := UsageRights(int(math.Pow(2, float64(p)))) if i&mantis == mantis { values = append(values, options[p]) @@ -88,6 +89,8 @@ func ParseUsageRights(v string) (any, error) { result |= PURVIEWCLAIMSCHALLENGENOTSUPPORTEDEXCEPTION_USAGERIGHTS case "exception": result |= EXCEPTION_USAGERIGHTS + case "labelNotFoundException": + result |= LABELNOTFOUNDEXCEPTION_USAGERIGHTS case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_USAGERIGHTS default: diff --git a/models/windows_hello_for_business_authentication_method.go b/models/windows_hello_for_business_authentication_method.go index 1dbd8a875b5..62e0393eac3 100644 --- a/models/windows_hello_for_business_authentication_method.go +++ b/models/windows_hello_for_business_authentication_method.go @@ -4,7 +4,6 @@ package models import ( - i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) @@ -25,18 +24,6 @@ func NewWindowsHelloForBusinessAuthenticationMethod()(*WindowsHelloForBusinessAu func CreateWindowsHelloForBusinessAuthenticationMethodFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewWindowsHelloForBusinessAuthenticationMethod(), nil } -// GetCreatedDateTime gets the createdDateTime property value. The date and time that this Windows Hello for Business key was registered. -// returns a *Time when successful -func (m *WindowsHelloForBusinessAuthenticationMethod) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { - val, err := m.GetBackingStore().Get("createdDateTime") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - } - return nil -} // GetDevice gets the device property value. The registered device on which this Windows Hello for Business key resides. Supports $expand. When you get a user's Windows Hello for Business registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/windowsHelloForBusinessMethods/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device. // returns a Deviceable when successful func (m *WindowsHelloForBusinessAuthenticationMethod) GetDevice()(Deviceable) { @@ -65,16 +52,6 @@ func (m *WindowsHelloForBusinessAuthenticationMethod) GetDisplayName()(*string) // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *WindowsHelloForBusinessAuthenticationMethod) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AuthenticationMethod.GetFieldDeserializers() - res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetTimeValue() - if err != nil { - return err - } - if val != nil { - m.SetCreatedDateTime(val) - } - return nil - } res["device"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateDeviceFromDiscriminatorValue) if err != nil { @@ -125,12 +102,6 @@ func (m *WindowsHelloForBusinessAuthenticationMethod) Serialize(writer i878a80d2 if err != nil { return err } - { - err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) - if err != nil { - return err - } - } { err = writer.WriteObjectValue("device", m.GetDevice()) if err != nil { @@ -152,13 +123,6 @@ func (m *WindowsHelloForBusinessAuthenticationMethod) Serialize(writer i878a80d2 } return nil } -// SetCreatedDateTime sets the createdDateTime property value. The date and time that this Windows Hello for Business key was registered. -func (m *WindowsHelloForBusinessAuthenticationMethod) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { - err := m.GetBackingStore().Set("createdDateTime", value) - if err != nil { - panic(err) - } -} // SetDevice sets the device property value. The registered device on which this Windows Hello for Business key resides. Supports $expand. When you get a user's Windows Hello for Business registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/windowsHelloForBusinessMethods/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device. func (m *WindowsHelloForBusinessAuthenticationMethod) SetDevice(value Deviceable)() { err := m.GetBackingStore().Set("device", value) @@ -183,11 +147,9 @@ func (m *WindowsHelloForBusinessAuthenticationMethod) SetKeyStrength(value *Auth type WindowsHelloForBusinessAuthenticationMethodable interface { AuthenticationMethodable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDevice()(Deviceable) GetDisplayName()(*string) GetKeyStrength()(*AuthenticationMethodKeyStrength) - SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDevice(value Deviceable)() SetDisplayName(value *string)() SetKeyStrength(value *AuthenticationMethodKeyStrength)() diff --git a/policies/58463a75b1a3d18db53f878ef3d18c351da075e29582293e4c30aead391605d2.go b/policies/58463a75b1a3d18db53f878ef3d18c351da075e29582293e4c30aead391605d2.go index f6ffad69ed0..27781bbd43a 100644 --- a/policies/58463a75b1a3d18db53f878ef3d18c351da075e29582293e4c30aead391605d2.go +++ b/policies/58463a75b1a3d18db53f878ef3d18c351da075e29582293e4c30aead391605d2.go @@ -21,7 +21,7 @@ type AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthentication // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthenticationMethodConfigurationItemRequestBuilderGetQueryParameters represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. +// AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthenticationMethodConfigurationItemRequestBuilderGetQueryParameters read the properties and relationships of an externalAuthenticationMethodConfiguration object. type AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthenticationMethodConfigurationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -57,8 +57,11 @@ func NewAuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthenticat urlParams["request-raw-url"] = rawUrl return NewAuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthenticationMethodConfigurationItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete navigation property authenticationMethodConfigurations for policies +// Delete delete an externalAuthenticationMethodConfiguration object. // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/externalauthenticationmethodconfiguration-delete?view=graph-rest-1.0 func (m *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthenticationMethodConfigurationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthenticationMethodConfigurationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -73,9 +76,12 @@ func (m *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthentica } return nil } -// Get represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. +// Get read the properties and relationships of an externalAuthenticationMethodConfiguration object. // returns a AuthenticationMethodConfigurationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/externalauthenticationmethodconfiguration-get?view=graph-rest-1.0 func (m *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthenticationMethodConfigurationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthenticationMethodConfigurationItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AuthenticationMethodConfigurationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -93,9 +99,12 @@ func (m *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthentica } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AuthenticationMethodConfigurationable), nil } -// Patch update the navigation property authenticationMethodConfigurations in policies +// Patch update the properties of an externalAuthenticationMethodConfiguration object. // returns a AuthenticationMethodConfigurationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/externalauthenticationmethodconfiguration-update?view=graph-rest-1.0 func (m *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthenticationMethodConfigurationItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AuthenticationMethodConfigurationable, requestConfiguration *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthenticationMethodConfigurationItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AuthenticationMethodConfigurationable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -113,7 +122,7 @@ func (m *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthentica } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AuthenticationMethodConfigurationable), nil } -// ToDeleteRequestInformation delete navigation property authenticationMethodConfigurations for policies +// ToDeleteRequestInformation delete an externalAuthenticationMethodConfiguration object. // returns a *RequestInformation when successful func (m *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthenticationMethodConfigurationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthenticationMethodConfigurationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -124,7 +133,7 @@ func (m *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthentica requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. +// ToGetRequestInformation read the properties and relationships of an externalAuthenticationMethodConfiguration object. // returns a *RequestInformation when successful func (m *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthenticationMethodConfigurationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthenticationMethodConfigurationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -138,7 +147,7 @@ func (m *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthentica requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the navigation property authenticationMethodConfigurations in policies +// ToPatchRequestInformation update the properties of an externalAuthenticationMethodConfiguration object. // returns a *RequestInformation when successful func (m *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthenticationMethodConfigurationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AuthenticationMethodConfigurationable, requestConfiguration *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsAuthenticationMethodConfigurationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/policies/authentication_methods_policy_authentication_method_configurations_request_builder.go b/policies/authentication_methods_policy_authentication_method_configurations_request_builder.go index fbe226c0377..3f49ed70c8b 100644 --- a/policies/authentication_methods_policy_authentication_method_configurations_request_builder.go +++ b/policies/authentication_methods_policy_authentication_method_configurations_request_builder.go @@ -14,7 +14,7 @@ import ( type AuthenticationMethodsPolicyAuthenticationMethodConfigurationsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// AuthenticationMethodsPolicyAuthenticationMethodConfigurationsRequestBuilderGetQueryParameters represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. +// AuthenticationMethodsPolicyAuthenticationMethodConfigurationsRequestBuilderGetQueryParameters read the properties and relationships of an externalAuthenticationMethodConfiguration object. type AuthenticationMethodsPolicyAuthenticationMethodConfigurationsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -79,7 +79,7 @@ func NewAuthenticationMethodsPolicyAuthenticationMethodConfigurationsRequestBuil func (m *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsRequestBuilder) Count()(*AuthenticationMethodsPolicyAuthenticationMethodConfigurationsCountRequestBuilder) { return NewAuthenticationMethodsPolicyAuthenticationMethodConfigurationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. +// Get read the properties and relationships of an externalAuthenticationMethodConfiguration object. // returns a AuthenticationMethodConfigurationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsRequestBuilder) Get(ctx context.Context, requestConfiguration *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AuthenticationMethodConfigurationCollectionResponseable, error) { @@ -119,7 +119,7 @@ func (m *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsRequestBui } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AuthenticationMethodConfigurationable), nil } -// ToGetRequestInformation represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. +// ToGetRequestInformation read the properties and relationships of an externalAuthenticationMethodConfiguration object. // returns a *RequestInformation when successful func (m *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AuthenticationMethodsPolicyAuthenticationMethodConfigurationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/users/9060a1b0ba7002b5abed6f47d286b924d1e05ee6db54493540d5fedfb5e76408.go b/users/9060a1b0ba7002b5abed6f47d286b924d1e05ee6db54493540d5fedfb5e76408.go new file mode 100644 index 00000000000..ccc707ec719 --- /dev/null +++ b/users/9060a1b0ba7002b5abed6f47d286b924d1e05ee6db54493540d5fedfb5e76408.go @@ -0,0 +1,163 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder provides operations to manage the externalAuthenticationMethods property of the microsoft.graph.authentication entity. +type ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderGetQueryParameters represents the external authentication methods registered to a user for authentication using an external identity provider. +type ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderGetQueryParameters +} +// ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderInternal instantiates a new ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder and sets the default values. +func NewItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder) { + m := &ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/externalAuthenticationMethods/{externalAuthenticationMethod%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder instantiates a new ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder and sets the default values. +func NewItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete an externalAuthenticationMethod object. This API doesn't support self-service operations. +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/authentication-delete-externalauthenticationmethods?view=graph-rest-1.0 +func (m *ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get represents the external authentication methods registered to a user for authentication using an external identity provider. +// returns a ExternalAuthenticationMethodable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExternalAuthenticationMethodable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateExternalAuthenticationMethodFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExternalAuthenticationMethodable), nil +} +// Patch update the navigation property externalAuthenticationMethods in users +// returns a ExternalAuthenticationMethodable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExternalAuthenticationMethodable, requestConfiguration *ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExternalAuthenticationMethodable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateExternalAuthenticationMethodFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExternalAuthenticationMethodable), nil +} +// ToDeleteRequestInformation delete an externalAuthenticationMethod object. This API doesn't support self-service operations. +// returns a *RequestInformation when successful +func (m *ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation represents the external authentication methods registered to a user for authentication using an external identity provider. +// returns a *RequestInformation when successful +func (m *ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property externalAuthenticationMethods in users +// returns a *RequestInformation when successful +func (m *ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExternalAuthenticationMethodable, requestConfiguration *ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder when successful +func (m *ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder) { + return NewItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_authentication_external_authentication_methods_count_request_builder.go b/users/item_authentication_external_authentication_methods_count_request_builder.go new file mode 100644 index 00000000000..a022ad5c7e6 --- /dev/null +++ b/users/item_authentication_external_authentication_methods_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder provides operations to count the resources in the collection. +type ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilderGetQueryParameters get the number of the resource +type ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilderGetQueryParameters +} +// NewItemAuthenticationExternalAuthenticationMethodsCountRequestBuilderInternal instantiates a new ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder and sets the default values. +func NewItemAuthenticationExternalAuthenticationMethodsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder) { + m := &ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/externalAuthenticationMethods/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder instantiates a new ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder and sets the default values. +func NewItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemAuthenticationExternalAuthenticationMethodsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder when successful +func (m *ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder) { + return NewItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_authentication_external_authentication_methods_request_builder.go b/users/item_authentication_external_authentication_methods_request_builder.go new file mode 100644 index 00000000000..25b1ce1a58b --- /dev/null +++ b/users/item_authentication_external_authentication_methods_request_builder.go @@ -0,0 +1,158 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemAuthenticationExternalAuthenticationMethodsRequestBuilder provides operations to manage the externalAuthenticationMethods property of the microsoft.graph.authentication entity. +type ItemAuthenticationExternalAuthenticationMethodsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetQueryParameters represents the external authentication methods registered to a user for authentication using an external identity provider. +type ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetQueryParameters +} +// ItemAuthenticationExternalAuthenticationMethodsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemAuthenticationExternalAuthenticationMethodsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByExternalAuthenticationMethodId provides operations to manage the externalAuthenticationMethods property of the microsoft.graph.authentication entity. +// returns a *ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder when successful +func (m *ItemAuthenticationExternalAuthenticationMethodsRequestBuilder) ByExternalAuthenticationMethodId(externalAuthenticationMethodId string)(*ItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if externalAuthenticationMethodId != "" { + urlTplParams["externalAuthenticationMethod%2Did"] = externalAuthenticationMethodId + } + return NewItemAuthenticationExternalAuthenticationMethodsExternalAuthenticationMethodItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemAuthenticationExternalAuthenticationMethodsRequestBuilderInternal instantiates a new ItemAuthenticationExternalAuthenticationMethodsRequestBuilder and sets the default values. +func NewItemAuthenticationExternalAuthenticationMethodsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemAuthenticationExternalAuthenticationMethodsRequestBuilder) { + m := &ItemAuthenticationExternalAuthenticationMethodsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/externalAuthenticationMethods{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemAuthenticationExternalAuthenticationMethodsRequestBuilder instantiates a new ItemAuthenticationExternalAuthenticationMethodsRequestBuilder and sets the default values. +func NewItemAuthenticationExternalAuthenticationMethodsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemAuthenticationExternalAuthenticationMethodsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemAuthenticationExternalAuthenticationMethodsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder when successful +func (m *ItemAuthenticationExternalAuthenticationMethodsRequestBuilder) Count()(*ItemAuthenticationExternalAuthenticationMethodsCountRequestBuilder) { + return NewItemAuthenticationExternalAuthenticationMethodsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get represents the external authentication methods registered to a user for authentication using an external identity provider. +// returns a ExternalAuthenticationMethodCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemAuthenticationExternalAuthenticationMethodsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExternalAuthenticationMethodCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateExternalAuthenticationMethodCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExternalAuthenticationMethodCollectionResponseable), nil +} +// Post create a new externalAuthenticationMethod object. This API doesn't support self-service operations. +// returns a ExternalAuthenticationMethodable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/authentication-post-externalauthenticationmethods?view=graph-rest-1.0 +func (m *ItemAuthenticationExternalAuthenticationMethodsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExternalAuthenticationMethodable, requestConfiguration *ItemAuthenticationExternalAuthenticationMethodsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExternalAuthenticationMethodable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateExternalAuthenticationMethodFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExternalAuthenticationMethodable), nil +} +// ToGetRequestInformation represents the external authentication methods registered to a user for authentication using an external identity provider. +// returns a *RequestInformation when successful +func (m *ItemAuthenticationExternalAuthenticationMethodsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationExternalAuthenticationMethodsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create a new externalAuthenticationMethod object. This API doesn't support self-service operations. +// returns a *RequestInformation when successful +func (m *ItemAuthenticationExternalAuthenticationMethodsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExternalAuthenticationMethodable, requestConfiguration *ItemAuthenticationExternalAuthenticationMethodsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemAuthenticationExternalAuthenticationMethodsRequestBuilder when successful +func (m *ItemAuthenticationExternalAuthenticationMethodsRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationExternalAuthenticationMethodsRequestBuilder) { + return NewItemAuthenticationExternalAuthenticationMethodsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_authentication_request_builder.go b/users/item_authentication_request_builder.go index d1e84550e58..3e26f01c41d 100644 --- a/users/item_authentication_request_builder.go +++ b/users/item_authentication_request_builder.go @@ -78,6 +78,11 @@ func (m *ItemAuthenticationRequestBuilder) Delete(ctx context.Context, requestCo func (m *ItemAuthenticationRequestBuilder) EmailMethods()(*ItemAuthenticationEmailMethodsRequestBuilder) { return NewItemAuthenticationEmailMethodsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ExternalAuthenticationMethods provides operations to manage the externalAuthenticationMethods property of the microsoft.graph.authentication entity. +// returns a *ItemAuthenticationExternalAuthenticationMethodsRequestBuilder when successful +func (m *ItemAuthenticationRequestBuilder) ExternalAuthenticationMethods()(*ItemAuthenticationExternalAuthenticationMethodsRequestBuilder) { + return NewItemAuthenticationExternalAuthenticationMethodsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Fido2Methods provides operations to manage the fido2Methods property of the microsoft.graph.authentication entity. // returns a *ItemAuthenticationFido2MethodsRequestBuilder when successful func (m *ItemAuthenticationRequestBuilder) Fido2Methods()(*ItemAuthenticationFido2MethodsRequestBuilder) {