diff --git a/go.mod b/go.mod index 8d9aa95e4..2dee03a38 100644 --- a/go.mod +++ b/go.mod @@ -3,8 +3,8 @@ module github.com/hashicorp/terraform-provider-azuread require ( github.com/google/go-cmp v0.6.0 github.com/hashicorp/go-azure-helpers v0.71.0 - github.com/hashicorp/go-azure-sdk/microsoft-graph v0.20240923.1151247 - github.com/hashicorp/go-azure-sdk/sdk v0.20240923.1151247 + github.com/hashicorp/go-azure-sdk/microsoft-graph v0.20240927.1005214 + github.com/hashicorp/go-azure-sdk/sdk v0.20240927.1005214 github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 github.com/hashicorp/go-multierror v1.1.1 github.com/hashicorp/go-uuid v1.0.3 diff --git a/go.sum b/go.sum index ba43661d6..33739bf27 100644 --- a/go.sum +++ b/go.sum @@ -49,10 +49,10 @@ github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-azure-helpers v0.71.0 h1:ra3aIRzg01g6MLKQ+yABcb6WJtrqRUDDgyuPLmyZ9lY= github.com/hashicorp/go-azure-helpers v0.71.0/go.mod h1:BmbF4JDYXK5sEmFeU5hcn8Br21uElcqLfdQxjatwQKw= -github.com/hashicorp/go-azure-sdk/microsoft-graph v0.20240923.1151247 h1:jxsVcDHnNhX+mQ0GTxk2Qd3unQKVToBfSL/7SxEd9CM= -github.com/hashicorp/go-azure-sdk/microsoft-graph v0.20240923.1151247/go.mod h1:hhPwwY4iKyGI1HYZfkHtlXjMpsRP/iaHeJkZpO6o9Bw= -github.com/hashicorp/go-azure-sdk/sdk v0.20240923.1151247 h1:kzNr/Oqfn72C+k9rL5/G/T3maNo1d87u1aAgjNsKOEQ= -github.com/hashicorp/go-azure-sdk/sdk v0.20240923.1151247/go.mod h1:dMKF6bXrgGmy1d3pLzkmBpG2JIHgSAV2/OMSCEgyMwE= +github.com/hashicorp/go-azure-sdk/microsoft-graph v0.20240927.1005214 h1:m6VCE8gYOJI3XtkVpxEtMp1HwtsYUrL8tvROINe1Q9A= +github.com/hashicorp/go-azure-sdk/microsoft-graph v0.20240927.1005214/go.mod h1:O2eTEWXTgwu1AISomfd1JIv0r6uh3/fY5BA0yC0/tFA= +github.com/hashicorp/go-azure-sdk/sdk v0.20240927.1005214 h1:nhYBErlMEkQIoG50GY2OZattC4+WBI/8xgZkwx/CsvY= +github.com/hashicorp/go-azure-sdk/sdk v0.20240927.1005214/go.mod h1:dMKF6bXrgGmy1d3pLzkmBpG2JIHgSAV2/OMSCEgyMwE= github.com/hashicorp/go-checkpoint v0.5.0 h1:MFYpPZCnQqQTE18jFwSII6eUQrD/oxMFp3mlgcqk5mU= github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuDrwkBuEQsVcpCOgg= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= diff --git a/internal/services/policies/group_role_management_policy_data_source.go b/internal/services/policies/group_role_management_policy_data_source.go index 5bc90eac9..229256324 100644 --- a/internal/services/policies/group_role_management_policy_data_source.go +++ b/internal/services/policies/group_role_management_policy_data_source.go @@ -85,7 +85,13 @@ func (r GroupRoleManagementPolicyDataSource) Read() sdk.ResourceFunc { id := stable.NewPolicyRoleManagementPolicyID(policyId.ID()) - policyResp, err := policyClient.GetRoleManagementPolicy(ctx, id, rolemanagementpolicy.DefaultGetRoleManagementPolicyOperationOptions()) + policyOptions := rolemanagementpolicy.GetRoleManagementPolicyOperationOptions{ + Expand: &odata.Expand{ + Relationship: "*", + }, + } + + policyResp, err := policyClient.GetRoleManagementPolicy(ctx, id, policyOptions) if err != nil { return fmt.Errorf("retrieving %s: %v", id, err) } diff --git a/internal/services/policies/group_role_management_policy_resource.go b/internal/services/policies/group_role_management_policy_resource.go index 42dc47714..f3f6cd739 100644 --- a/internal/services/policies/group_role_management_policy_resource.go +++ b/internal/services/policies/group_role_management_policy_resource.go @@ -13,6 +13,7 @@ import ( "github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicy" "github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicyassignment" "github.com/hashicorp/go-azure-sdk/sdk/nullable" + "github.com/hashicorp/go-azure-sdk/sdk/odata" "github.com/hashicorp/terraform-provider-azuread/internal/helpers/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azuread/internal/helpers/tf/validation" "github.com/hashicorp/terraform-provider-azuread/internal/sdk" @@ -362,9 +363,15 @@ func (r GroupRoleManagementPolicyResource) Create() sdk.ResourceFunc { id := stable.NewPolicyRoleManagementPolicyID(policyId.ID()) - resp, err := client.GetRoleManagementPolicy(ctx, id, rolemanagementpolicy.DefaultGetRoleManagementPolicyOperationOptions()) + options := rolemanagementpolicy.GetRoleManagementPolicyOperationOptions{ + Expand: &odata.Expand{ + Relationship: "*", + }, + } + + resp, err := client.GetRoleManagementPolicy(ctx, id, options) if err != nil { - return fmt.Errorf("retrieving existing %s: %v", id, err) + return fmt.Errorf("retrieving %s: %v", id, err) } roleManagementPolicy := resp.Model @@ -413,7 +420,13 @@ func (r GroupRoleManagementPolicyResource) Read() sdk.ResourceFunc { id := stable.NewPolicyRoleManagementPolicyID(policyId.ID()) - policyResp, err := client.GetRoleManagementPolicy(ctx, id, rolemanagementpolicy.DefaultGetRoleManagementPolicyOperationOptions()) + policyOptions := rolemanagementpolicy.GetRoleManagementPolicyOperationOptions{ + Expand: &odata.Expand{ + Relationship: "*", + }, + } + + policyResp, err := client.GetRoleManagementPolicy(ctx, id, policyOptions) if err != nil { return fmt.Errorf("retrieving %s: %v", id, err) } @@ -423,10 +436,10 @@ func (r GroupRoleManagementPolicyResource) Read() sdk.ResourceFunc { return fmt.Errorf("retrieving %s: API error, model was nil", id) } - options := rolemanagementpolicyassignment.ListRoleManagementPolicyAssignmentsOperationOptions{ + assignmentOptions := rolemanagementpolicyassignment.ListRoleManagementPolicyAssignmentsOperationOptions{ Filter: pointer.To(fmt.Sprintf("scopeType eq 'Group' and scopeId eq '%s' and policyId eq '%s'", policyId.ScopeId, id.UnifiedRoleManagementPolicyId)), } - resp, err := assignmentClient.ListRoleManagementPolicyAssignments(ctx, options) + resp, err := assignmentClient.ListRoleManagementPolicyAssignments(ctx, assignmentOptions) if err != nil { return fmt.Errorf("retrieving %s: %v", id, err) } @@ -617,7 +630,13 @@ func (r GroupRoleManagementPolicyResource) Update() sdk.ResourceFunc { id := stable.NewPolicyRoleManagementPolicyID(policyId.ID()) - policyResp, err := client.GetRoleManagementPolicy(ctx, id, rolemanagementpolicy.DefaultGetRoleManagementPolicyOperationOptions()) + policyOptions := rolemanagementpolicy.GetRoleManagementPolicyOperationOptions{ + Expand: &odata.Expand{ + Relationship: "*", + }, + } + + policyResp, err := client.GetRoleManagementPolicy(ctx, id, policyOptions) if err != nil { return fmt.Errorf("retrieving %s: %v", id, err) } @@ -677,33 +696,21 @@ func buildPolicyForUpdate(metadata *sdk.ResourceMetaData, policy *stable.Unified updatedRules := make([]stable.UnifiedRoleManagementPolicyRule, 0) if metadata.ResourceData.HasChange("eligible_assignment_rules") { - rule, ok := policyRules["Expiration_Admin_Eligibility"].(stable.UnifiedRoleManagementPolicyExpirationRule) - if !ok { - rule = stable.UnifiedRoleManagementPolicyExpirationRule{} + rule := stable.UnifiedRoleManagementPolicyExpirationRule{ + Id: pointer.To("Expiration_Admin_Eligibility"), + IsExpirationRequired: nullable.Value(model.EligibleAssignmentRules[0].ExpirationRequired), + MaximumDuration: nullable.NoZero(model.EligibleAssignmentRules[0].ExpireAfter), } - expirationRequired := rule.IsExpirationRequired - if expirationRequired.GetOrZero() != model.EligibleAssignmentRules[0].ExpirationRequired { - expirationRequired = nullable.Value(model.EligibleAssignmentRules[0].ExpirationRequired) + if existingRule, ok := policyRules["Expiration_Admin_Eligibility"].(stable.UnifiedRoleManagementPolicyExpirationRule); ok { + rule.Target = existingRule.Target } - maximumDuration := rule.MaximumDuration - if maximumDuration.GetOrZero() != model.EligibleAssignmentRules[0].ExpireAfter && model.EligibleAssignmentRules[0].ExpireAfter != "" { - maximumDuration = nullable.Value(model.EligibleAssignmentRules[0].ExpireAfter) - } - - rule.IsExpirationRequired = expirationRequired - rule.MaximumDuration = maximumDuration - updatedRules = append(updatedRules, rule) } if metadata.ResourceData.HasChange("active_assignment_rules.0.require_multifactor_authentication") || metadata.ResourceData.HasChange("active_assignment_rules.0.require_justification") { - rule, ok := policyRules["Enablement_Admin_Assignment"].(stable.UnifiedRoleManagementPolicyEnablementRule) - if !ok { - rule = stable.UnifiedRoleManagementPolicyEnablementRule{} - } enabledRules := make([]string, 0) if model.ActiveAssignmentRules[0].RequireMultiFactorAuth { @@ -716,77 +723,84 @@ func buildPolicyForUpdate(metadata *sdk.ResourceMetaData, policy *stable.Unified enabledRules = append(enabledRules, "Ticketing") } - rule.EnabledRules = pointer.To(enabledRules) + rule := stable.UnifiedRoleManagementPolicyEnablementRule{ + Id: pointer.To("Enablement_Admin_Assignment"), + EnabledRules: &enabledRules, + } + + if existingRule, ok := policyRules["Enablement_Admin_Assignment"].(stable.UnifiedRoleManagementPolicyEnablementRule); ok { + rule.Target = existingRule.Target + } updatedRules = append(updatedRules, rule) } if metadata.ResourceData.HasChange("active_assignment_rules.0.expiration_required") || metadata.ResourceData.HasChange("active_assignment_rules.0.expire_after") { - rule, ok := policyRules["Expiration_Admin_Assignment"].(stable.UnifiedRoleManagementPolicyExpirationRule) - if !ok { - rule = stable.UnifiedRoleManagementPolicyExpirationRule{} - } - expirationRequired := rule.IsExpirationRequired - if expirationRequired.GetOrZero() != model.ActiveAssignmentRules[0].ExpirationRequired { - expirationRequired = nullable.Value(model.ActiveAssignmentRules[0].ExpirationRequired) + rule := stable.UnifiedRoleManagementPolicyExpirationRule{ + Id: pointer.To("Expiration_Admin_Assignment"), + IsExpirationRequired: nullable.Value(model.ActiveAssignmentRules[0].ExpirationRequired), + MaximumDuration: nullable.Value(model.ActiveAssignmentRules[0].ExpireAfter), } - maximumDuration := rule.MaximumDuration - if maximumDuration.GetOrZero() != model.ActiveAssignmentRules[0].ExpireAfter && model.ActiveAssignmentRules[0].ExpireAfter != "" { - maximumDuration = nullable.Value(model.EligibleAssignmentRules[0].ExpireAfter) + if existingRule, ok := policyRules["Expiration_Admin_Assignment"].(stable.UnifiedRoleManagementPolicyExpirationRule); ok { + rule.Target = existingRule.Target } - rule.IsExpirationRequired = expirationRequired - rule.MaximumDuration = maximumDuration - updatedRules = append(updatedRules, rule) } if metadata.ResourceData.HasChange("activation_rules.0.maximum_duration") { - rule, ok := policyRules["Expiration_EndUser_Assignment"].(stable.UnifiedRoleManagementPolicyExpirationRule) - if !ok { - rule = stable.UnifiedRoleManagementPolicyExpirationRule{} + rule := stable.UnifiedRoleManagementPolicyExpirationRule{ + Id: pointer.To("Expiration_EndUser_Assignment"), + MaximumDuration: nullable.Value(model.ActivationRules[0].MaximumDuration), } - rule.MaximumDuration = nullable.Value(model.ActivationRules[0].MaximumDuration) + if existingRule, ok := policyRules["Expiration_EndUser_Assignment"].(stable.UnifiedRoleManagementPolicyExpirationRule); ok { + rule.Target = existingRule.Target + } updatedRules = append(updatedRules, rule) } if metadata.ResourceData.HasChange("activation_rules.0.require_approval") || metadata.ResourceData.HasChange("activation_rules.0.approval_stage") { - rule, ok := policyRules["Approval_EndUser_Assignment"].(stable.UnifiedRoleManagementPolicyApprovalRule) - if !ok { - rule = stable.UnifiedRoleManagementPolicyApprovalRule{} + + rule := stable.UnifiedRoleManagementPolicyApprovalRule{ + Id: pointer.To("Approval_EndUser_Assignment"), + Setting: &stable.ApprovalSettings{ + IsApprovalRequired: nullable.Value(model.ActivationRules[0].RequireApproval), + }, } - if model.ActivationRules[0].RequireApproval && len(model.ActivationRules[0].ApprovalStages) != 1 { - return nil, fmt.Errorf("require_approval is true, but no approval_stages are provided") + if existingRule, ok := policyRules["Approval_EndUser_Assignment"].(stable.UnifiedRoleManagementPolicyApprovalRule); ok { + rule.Target = existingRule.Target + + if existingRule.Setting != nil { + rule.Setting.ApprovalStages = existingRule.Setting.ApprovalStages + } } - isApprovalRequired := rule.Setting.IsApprovalRequired.GetOrZero() - var approvalStages []stable.UnifiedApprovalStage - if isApprovalRequired != model.ActivationRules[0].RequireApproval { - isApprovalRequired = model.ActivationRules[0].RequireApproval + if model.ActivationRules[0].RequireApproval && len(model.ActivationRules[0].ApprovalStages) != 1 { + return nil, fmt.Errorf("require_approval is true, but no approval_stages are provided") } if metadata.ResourceData.HasChange("activation_rules.0.approval_stage") { - approvalStages = make([]stable.UnifiedApprovalStage, 0) + approvalStages := make([]stable.UnifiedApprovalStage, 0) + for _, stage := range model.ActivationRules[0].ApprovalStages { primaryApprovers := make([]stable.SubjectSet, 0) + for _, approver := range stage.PrimaryApprovers { switch approver.Type { case "singleUser": primaryApprovers = append(primaryApprovers, stable.SingleUser{ - ODataType: pointer.To("#microsoft.graph.singleUser"), - UserId: nullable.Value(approver.ID), + UserId: nullable.Value(approver.ID), }) case "groupMembers": primaryApprovers = append(primaryApprovers, stable.GroupMembers{ - ODataType: pointer.To("#microsoft.graph.groupMembers"), - GroupId: nullable.Value(approver.ID), + GroupId: nullable.Value(approver.ID), }) } } @@ -795,44 +809,32 @@ func buildPolicyForUpdate(metadata *sdk.ResourceMetaData, policy *stable.Unified PrimaryApprovers: &primaryApprovers, }) } - } else { - approvalStages = *policyRules["Approval_EndUser_Assignment"].(stable.UnifiedRoleManagementPolicyApprovalRule).Setting.ApprovalStages - } - rule = stable.UnifiedRoleManagementPolicyApprovalRule{ - Id: policyRules["Approval_EndUser_Assignment"].(stable.UnifiedRoleManagementPolicyApprovalRule).Id, - ODataType: policyRules["Approval_EndUser_Assignment"].(stable.UnifiedRoleManagementPolicyApprovalRule).ODataType, - Target: policyRules["Approval_EndUser_Assignment"].(stable.UnifiedRoleManagementPolicyApprovalRule).Target, - Setting: &stable.ApprovalSettings{ - IsApprovalRequired: nullable.Value(isApprovalRequired), - ApprovalStages: &approvalStages, - }, + rule.Setting.ApprovalStages = &approvalStages } + updatedRules = append(updatedRules, rule) } if metadata.ResourceData.HasChange("activation_rules.0.required_conditional_access_authentication_context") { - claimValue := policyRules["AuthenticationContext_EndUser_Assignment"].(stable.UnifiedRoleManagementPolicyAuthenticationContextRule).ClaimValue - - var isEnabled bool - if _, set := metadata.ResourceData.GetOk("activation_rules.0.required_conditional_access_authentication_context"); set { - isEnabled = true - claimValue = nullable.Value(model.ActivationRules[0].RequireConditionalAccessContext) + rule := stable.UnifiedRoleManagementPolicyAuthenticationContextRule{ + Id: pointer.To("AuthenticationContext_EndUser_Assignment"), + IsEnabled: nullable.Value(model.ActivationRules[0].RequireConditionalAccessContext != ""), + ClaimValue: nullable.NoZero(model.ActivationRules[0].RequireConditionalAccessContext), } - rule := stable.UnifiedRoleManagementPolicyAuthenticationContextRule{ - Id: policyRules["AuthenticationContext_EndUser_Assignment"].(stable.UnifiedRoleManagementPolicyAuthenticationContextRule).Id, - ODataType: policyRules["AuthenticationContext_EndUser_Assignment"].(stable.UnifiedRoleManagementPolicyAuthenticationContextRule).ODataType, - Target: policyRules["AuthenticationContext_EndUser_Assignment"].(stable.UnifiedRoleManagementPolicyAuthenticationContextRule).Target, - IsEnabled: nullable.Value(isEnabled), - ClaimValue: claimValue, + if existingRule, ok := policyRules["AuthenticationContext_EndUser_Assignment"].(stable.UnifiedRoleManagementPolicyAuthenticationContextRule); ok { + rule.ClaimValue = existingRule.ClaimValue + rule.Target = existingRule.Target } + updatedRules = append(updatedRules, rule) } if metadata.ResourceData.HasChange("activation_rules.0.require_multifactor_authentication") || metadata.ResourceData.HasChange("activation_rules.0.require_justification") || metadata.ResourceData.HasChange("activation_rules.0.require_ticket_info") { + enabledRules := make([]string, 0) if model.ActivationRules[0].RequireMultiFactorAuth { enabledRules = append(enabledRules, "MultiFactorAuthentication") @@ -845,180 +847,122 @@ func buildPolicyForUpdate(metadata *sdk.ResourceMetaData, policy *stable.Unified } rule := stable.UnifiedRoleManagementPolicyEnablementRule{ - Id: policyRules["Enablement_EndUser_Assignment"].(stable.UnifiedRoleManagementPolicyEnablementRule).Id, - ODataType: policyRules["Enablement_EndUser_Assignment"].(stable.UnifiedRoleManagementPolicyEnablementRule).ODataType, - Target: policyRules["Enablement_EndUser_Assignment"].(stable.UnifiedRoleManagementPolicyEnablementRule).Target, + Id: pointer.To("Enablement_EndUser_Assignment"), EnabledRules: &enabledRules, } + + if existingRule, ok := policyRules["Enablement_EndUser_Assignment"].(stable.UnifiedRoleManagementPolicyEnablementRule); ok { + rule.Target = existingRule.Target + } + updatedRules = append(updatedRules, rule) } if metadata.ResourceData.HasChange("notification_rules.0.eligible_assignments.0.admin_notifications") { - rule, ok := policyRules["Notification_Admin_Admin_Eligibility"].(stable.UnifiedRoleManagementPolicyNotificationRule) - if !ok { - rule = stable.UnifiedRoleManagementPolicyNotificationRule{} - } - - updatedRules = append(updatedRules, - expandNotificationSettings( - rule, - model.NotificationRules[0].EligibleAssignments[0].AdminNotifications[0], - metadata.ResourceData.HasChange("notification_rules.0.eligible_assignments.0.admin_notifications.0.additional_recipients"), - ), - ) + updatedRules = append(updatedRules, expandNotificationSettings( + "Notification_Admin_Admin_Eligibility", + policyRules, + model.NotificationRules[0].EligibleAssignments[0].AdminNotifications[0], + "Admin", + )) } if metadata.ResourceData.HasChange("notification_rules.0.active_assignments.0.admin_notifications") { - rule, ok := policyRules["Notification_Admin_Admin_Assignment"].(stable.UnifiedRoleManagementPolicyNotificationRule) - if !ok { - rule = stable.UnifiedRoleManagementPolicyNotificationRule{} - } - - updatedRules = append(updatedRules, - expandNotificationSettings( - rule, - model.NotificationRules[0].ActiveAssignments[0].AdminNotifications[0], - metadata.ResourceData.HasChange("notification_rules.0.active_assignments.0.admin_notifications.0.additional_recipients"), - ), - ) + updatedRules = append(updatedRules, expandNotificationSettings( + "Notification_Admin_Admin_Assignment", + policyRules, + model.NotificationRules[0].ActiveAssignments[0].AdminNotifications[0], + "Admin", + )) } if metadata.ResourceData.HasChange("notification_rules.0.eligible_activations.0.admin_notifications") { - rule, ok := policyRules["Notification_Admin_EndUser_Assignment"].(stable.UnifiedRoleManagementPolicyNotificationRule) - if !ok { - rule = stable.UnifiedRoleManagementPolicyNotificationRule{} - } - - updatedRules = append(updatedRules, - expandNotificationSettings( - rule, - model.NotificationRules[0].EligibleActivations[0].AdminNotifications[0], - metadata.ResourceData.HasChange("notification_rules.0.eligible_activations.0.admin_notifications.0.additional_recipients"), - ), - ) + updatedRules = append(updatedRules, expandNotificationSettings( + "Notification_Admin_EndUser_Assignment", + policyRules, + model.NotificationRules[0].EligibleActivations[0].AdminNotifications[0], + "Admin", + )) } if metadata.ResourceData.HasChange("notification_rules.0.eligible_assignments.0.approver_notifications") { - rule, ok := policyRules["Notification_Approver_Admin_Eligibility"].(stable.UnifiedRoleManagementPolicyNotificationRule) - if !ok { - rule = stable.UnifiedRoleManagementPolicyNotificationRule{} - } - - updatedRules = append(updatedRules, - expandNotificationSettings( - rule, - model.NotificationRules[0].EligibleAssignments[0].ApproverNotifications[0], - metadata.ResourceData.HasChange("notification_rules.0.eligible_assignments.0.approver_notifications.0.additional_recipients"), - ), - ) + updatedRules = append(updatedRules, expandNotificationSettings( + "Notification_Approver_Admin_Eligibility", + policyRules, + model.NotificationRules[0].EligibleAssignments[0].ApproverNotifications[0], + "Approver", + )) } if metadata.ResourceData.HasChange("notification_rules.0.active_assignments.0.approver_notifications") { - rule, ok := policyRules["Notification_Approver_Admin_Assignment"].(stable.UnifiedRoleManagementPolicyNotificationRule) - if !ok { - rule = stable.UnifiedRoleManagementPolicyNotificationRule{} - } - - updatedRules = append(updatedRules, - expandNotificationSettings( - rule, - model.NotificationRules[0].ActiveAssignments[0].ApproverNotifications[0], - metadata.ResourceData.HasChange("notification_rules.0.active_assignments.0.approver_notifications.0.additional_recipients"), - ), - ) + updatedRules = append(updatedRules, expandNotificationSettings( + "Notification_Approver_Admin_Assignment", + policyRules, + model.NotificationRules[0].ActiveAssignments[0].ApproverNotifications[0], + "Approver", + )) } if metadata.ResourceData.HasChange("notification_rules.0.eligible_activations.0.approver_notifications") { - rule, ok := policyRules["Notification_Approver_EndUser_Assignment"].(stable.UnifiedRoleManagementPolicyNotificationRule) - if !ok { - rule = stable.UnifiedRoleManagementPolicyNotificationRule{} - } - updatedRules = append(updatedRules, expandNotificationSettings( - rule, + "Notification_Approver_EndUser_Assignment", + policyRules, model.NotificationRules[0].EligibleActivations[0].ApproverNotifications[0], - metadata.ResourceData.HasChange("notification_rules.0.eligible_activations.0.approver_notifications.0.additional_recipients"), - ), - ) + "Approver", + )) } if metadata.ResourceData.HasChange("notification_rules.0.eligible_assignments.0.assignee_notifications") { - rule, ok := policyRules["Notification_Requestor_Admin_Eligibility"].(stable.UnifiedRoleManagementPolicyNotificationRule) - if !ok { - rule = stable.UnifiedRoleManagementPolicyNotificationRule{} - } - - updatedRules = append(updatedRules, - expandNotificationSettings( - rule, - model.NotificationRules[0].EligibleAssignments[0].AssigneeNotifications[0], - metadata.ResourceData.HasChange("notification_rules.0.eligible_assignments.0.assignee_notifications.0.additional_recipients"), - ), - ) + updatedRules = append(updatedRules, expandNotificationSettings( + "Notification_Requestor_Admin_Eligibility", + policyRules, + model.NotificationRules[0].EligibleAssignments[0].AssigneeNotifications[0], + "Requestor", + )) } if metadata.ResourceData.HasChange("notification_rules.0.active_assignments.0.assignee_notifications") { - rule, ok := policyRules["Notification_Requestor_Admin_Assignment"].(stable.UnifiedRoleManagementPolicyNotificationRule) - if !ok { - rule = stable.UnifiedRoleManagementPolicyNotificationRule{} - } - - updatedRules = append(updatedRules, - expandNotificationSettings( - rule, - model.NotificationRules[0].ActiveAssignments[0].AssigneeNotifications[0], - metadata.ResourceData.HasChange("notification_rules.0.active_assignments.0.assignee_notifications.0.additional_recipients"), - ), - ) + updatedRules = append(updatedRules, expandNotificationSettings( + "Notification_Requestor_Admin_Assignment", + policyRules, + model.NotificationRules[0].ActiveAssignments[0].AssigneeNotifications[0], + "Requestor", + )) } if metadata.ResourceData.HasChange("notification_rules.0.eligible_activations.0.assignee_notifications") { - rule, ok := policyRules["Notification_Requestor_EndUser_Assignment"].(stable.UnifiedRoleManagementPolicyNotificationRule) - if !ok { - rule = stable.UnifiedRoleManagementPolicyNotificationRule{} - } - - updatedRules = append(updatedRules, - expandNotificationSettings( - rule, - model.NotificationRules[0].EligibleActivations[0].AssigneeNotifications[0], - metadata.ResourceData.HasChange("notification_rules.0.eligible_activations.0.assignee_notifications.0.additional_recipients"), - ), - ) + updatedRules = append(updatedRules, expandNotificationSettings( + "Notification_Requestor_EndUser_Assignment", + policyRules, + model.NotificationRules[0].EligibleActivations[0].AssigneeNotifications[0], + "Requestor", + )) } return &stable.UnifiedRoleManagementPolicy{ - Id: policy.Id, - Rules: pointer.To(updatedRules), + Id: policy.Id, + Rules: pointer.To(updatedRules), + ScopeId: model.GroupId, + ScopeType: "Group", }, nil } -func expandNotificationSettings(rule stable.UnifiedRoleManagementPolicyNotificationRule, data GroupRoleManagementPolicyNotificationSettings, recipientChange bool) stable.UnifiedRoleManagementPolicyNotificationRule { - level := rule.NotificationLevel - defaultRecipients := rule.IsDefaultRecipientsEnabled - additionalRecipients := rule.NotificationRecipients - - if level.GetOrZero() != data.NotificationLevel { - level = nullable.Value(data.NotificationLevel) - } - if defaultRecipients.GetOrZero() != data.DefaultRecipients { - defaultRecipients = nullable.Value(data.DefaultRecipients) - } - if recipientChange { - additionalRecipients = pointer.To(data.AdditionalRecipients) +func expandNotificationSettings(ruleId string, policyRules map[string]stable.UnifiedRoleManagementPolicyRule, data GroupRoleManagementPolicyNotificationSettings, recipientType string) stable.UnifiedRoleManagementPolicyNotificationRule { + rule := stable.UnifiedRoleManagementPolicyNotificationRule{ + Id: pointer.To(ruleId), + IsDefaultRecipientsEnabled: nullable.Value(data.DefaultRecipients), + NotificationLevel: nullable.Value(data.NotificationLevel), + NotificationRecipients: pointer.To(data.AdditionalRecipients), + NotificationType: nullable.Value("Email"), + RecipientType: nullable.Value(recipientType), } - return stable.UnifiedRoleManagementPolicyNotificationRule{ - Id: rule.Id, - ODataType: rule.ODataType, - Target: rule.Target, - RecipientType: rule.RecipientType, - NotificationType: rule.NotificationType, - NotificationLevel: level, - IsDefaultRecipientsEnabled: defaultRecipients, - NotificationRecipients: additionalRecipients, + if existingRule, ok := policyRules[ruleId].(stable.UnifiedRoleManagementPolicyNotificationRule); ok { + rule.Target = existingRule.Target } + + return rule } func flattenNotificationSettings(rule stable.UnifiedRoleManagementPolicyNotificationRule) GroupRoleManagementPolicyNotificationSettings { diff --git a/internal/services/policies/group_role_management_policy_resource_test.go b/internal/services/policies/group_role_management_policy_resource_test.go index 7cd4b550b..f301b6741 100644 --- a/internal/services/policies/group_role_management_policy_resource_test.go +++ b/internal/services/policies/group_role_management_policy_resource_test.go @@ -11,6 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-sdk/microsoft-graph/common-types/stable" "github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicy" + "github.com/hashicorp/go-azure-sdk/sdk/odata" "github.com/hashicorp/terraform-plugin-testing/terraform" "github.com/hashicorp/terraform-provider-azuread/internal/acceptance" "github.com/hashicorp/terraform-provider-azuread/internal/acceptance/check" @@ -66,7 +67,13 @@ func (GroupRoleManagementPolicyResource) Exists(ctx context.Context, clients *cl id := stable.NewPolicyRoleManagementPolicyID(policyId.ID()) - policyResp, err := client.GetRoleManagementPolicy(ctx, id, rolemanagementpolicy.DefaultGetRoleManagementPolicyOperationOptions()) + policyOptions := rolemanagementpolicy.GetRoleManagementPolicyOperationOptions{ + Expand: &odata.Expand{ + Relationship: "*", + }, + } + + policyResp, err := client.GetRoleManagementPolicy(ctx, id, policyOptions) if err != nil { return nil, fmt.Errorf("retrieving %s: %v", id, err) } @@ -90,32 +97,17 @@ resource "azuread_group" "pam" { } resource "azuread_group_role_management_policy" "test" { - group_id = azuread_group.pam.id + group_id = azuread_group.pam.object_id role_id = "member" eligible_assignment_rules { - expiration_required = false + expiration_required = true + expire_after = "P365D" } active_assignment_rules { - expire_after = "P365D" - } - - notification_rules { - eligible_assignments { - approver_notifications { - notification_level = "Critical" - default_recipients = false - additional_recipients = ["someone@example.com"] - } - } - eligible_activations { - assignee_notifications { - notification_level = "All" - default_recipients = true - additional_recipients = ["someone@example.com"] - } - } + expiration_required = true + expire_after = "P180D" } } `, data.RandomString) @@ -142,15 +134,17 @@ resource "azuread_group" "pam" { } resource "azuread_group_role_management_policy" "test" { - group_id = azuread_group.pam.id + group_id = azuread_group.pam.object_id role_id = "owner" eligible_assignment_rules { - expiration_required = false + expiration_required = true + expire_after = "P365D" } active_assignment_rules { - expire_after = "P90D" + expiration_required = true + expire_after = "P90D" } activation_rules { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_createadministrativeunit.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_createadministrativeunit.go index ba6e78133..cc5941c2f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_createadministrativeunit.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_createadministrativeunit.go @@ -52,7 +52,10 @@ func (c AdministrativeUnitClient) CreateAdministrativeUnit(ctx context.Context, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_creategetsuserownedobject.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_creategetsuserownedobject.go index fbba6d410..94997b0ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_creategetsuserownedobject.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_creategetsuserownedobject.go @@ -55,6 +55,9 @@ func (c AdministrativeUnitClient) CreateGetsUserOwnedObject(ctx context.Context, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_createvalidatesproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_createvalidatesproperty.go index 8b9e0ffa5..0736852a1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_createvalidatesproperty.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_createvalidatesproperty.go @@ -58,7 +58,10 @@ func (c AdministrativeUnitClient) CreateValidatesProperty(ctx context.Context, i opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_deleteadministrativeunit.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_deleteadministrativeunit.go index fbe53298b..dcc87ec14 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_deleteadministrativeunit.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_deleteadministrativeunit.go @@ -56,6 +56,7 @@ func (c AdministrativeUnitClient) DeleteAdministrativeUnit(ctx context.Context, ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_restore.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_restore.go index 5266ac7cf..df636cb08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_restore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_restore.go @@ -59,6 +59,9 @@ func (c AdministrativeUnitClient) Restore(ctx context.Context, id beta.Administr opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_updateadministrativeunit.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_updateadministrativeunit.go index 97f66d92e..ff17efde8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_updateadministrativeunit.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit/method_updateadministrativeunit.go @@ -51,7 +51,9 @@ func (c AdministrativeUnitClient) UpdateAdministrativeUnit(ctx context.Context, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_addkey.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_addkey.go index a9e015516..b41f8340a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_addkey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_addkey.go @@ -57,6 +57,9 @@ func (c ApplicationClient) AddKey(ctx context.Context, id beta.ApplicationId, in opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_addpassword.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_addpassword.go index d4bc04d5f..079173c99 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_addpassword.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_addpassword.go @@ -54,6 +54,9 @@ func (c ApplicationClient) AddPassword(ctx context.Context, id beta.ApplicationI opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_createapplication.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_createapplication.go index 67beb1cc2..7f647b663 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_createapplication.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_createapplication.go @@ -52,7 +52,10 @@ func (c ApplicationClient) CreateApplication(ctx context.Context, input beta.App opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_creategetsuserownedobject.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_creategetsuserownedobject.go index cf98d238d..382f48f88 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_creategetsuserownedobject.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_creategetsuserownedobject.go @@ -55,6 +55,9 @@ func (c ApplicationClient) CreateGetsUserOwnedObject(ctx context.Context, input opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_createvalidatesproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_createvalidatesproperty.go index 879abba98..9545bb6a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_createvalidatesproperty.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_createvalidatesproperty.go @@ -58,7 +58,10 @@ func (c ApplicationClient) CreateValidatesProperty(ctx context.Context, input Cr opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_deleteapplication.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_deleteapplication.go index affe1000c..c7b9700bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_deleteapplication.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_deleteapplication.go @@ -57,6 +57,7 @@ func (c ApplicationClient) DeleteApplication(ctx context.Context, id beta.Applic ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_removekey.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_removekey.go index 7e7c7a7e5..fe76a0ba7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_removekey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_removekey.go @@ -54,7 +54,10 @@ func (c ApplicationClient) RemoveKey(ctx context.Context, id beta.ApplicationId, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_removepassword.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_removepassword.go index ccfef8ca6..911b4d84a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_removepassword.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_removepassword.go @@ -52,7 +52,10 @@ func (c ApplicationClient) RemovePassword(ctx context.Context, id beta.Applicati opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_restore.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_restore.go index 1adc824de..17659003f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_restore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_restore.go @@ -59,6 +59,9 @@ func (c ApplicationClient) Restore(ctx context.Context, id beta.ApplicationId, i opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_setverifiedpublisher.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_setverifiedpublisher.go index e68e6060f..10d6ed638 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_setverifiedpublisher.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_setverifiedpublisher.go @@ -53,7 +53,10 @@ func (c ApplicationClient) SetVerifiedPublisher(ctx context.Context, id beta.App opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_unsetverifiedpublisher.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_unsetverifiedpublisher.go index 42356896d..8875576f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_unsetverifiedpublisher.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_unsetverifiedpublisher.go @@ -53,7 +53,10 @@ func (c ApplicationClient) UnsetVerifiedPublisher(ctx context.Context, id beta.A opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_updateapplication.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_updateapplication.go index 3c9034738..5072fbeee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_updateapplication.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application/method_updateapplication.go @@ -52,7 +52,9 @@ func (c ApplicationClient) UpdateApplication(ctx context.Context, id beta.Applic opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_addkey.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_addkey.go index dfba01072..1a4723e03 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_addkey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_addkey.go @@ -57,6 +57,9 @@ func (c ApplicationClient) AddKey(ctx context.Context, id stable.ApplicationId, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_addpassword.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_addpassword.go index 46501b0c5..a818b1ea0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_addpassword.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_addpassword.go @@ -54,6 +54,9 @@ func (c ApplicationClient) AddPassword(ctx context.Context, id stable.Applicatio opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_createapplication.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_createapplication.go index 9fb783b25..35100bee5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_createapplication.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_createapplication.go @@ -52,7 +52,10 @@ func (c ApplicationClient) CreateApplication(ctx context.Context, input stable.A opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_createvalidatesproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_createvalidatesproperty.go index 5d3ef12f2..ccb285b90 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_createvalidatesproperty.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_createvalidatesproperty.go @@ -58,7 +58,10 @@ func (c ApplicationClient) CreateValidatesProperty(ctx context.Context, input Cr opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_deleteapplication.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_deleteapplication.go index ab9bcf74b..278466aaa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_deleteapplication.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_deleteapplication.go @@ -57,6 +57,7 @@ func (c ApplicationClient) DeleteApplication(ctx context.Context, id stable.Appl ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_removekey.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_removekey.go index b432a8b86..4586703ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_removekey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_removekey.go @@ -54,7 +54,10 @@ func (c ApplicationClient) RemoveKey(ctx context.Context, id stable.ApplicationI opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_removepassword.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_removepassword.go index 1a2df53f9..47c9dc423 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_removepassword.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_removepassword.go @@ -52,7 +52,10 @@ func (c ApplicationClient) RemovePassword(ctx context.Context, id stable.Applica opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_restore.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_restore.go index 61ef3f5b2..e4ab248c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_restore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_restore.go @@ -58,6 +58,9 @@ func (c ApplicationClient) Restore(ctx context.Context, id stable.ApplicationId, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_setverifiedpublisher.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_setverifiedpublisher.go index 7b048da3f..83e3a9245 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_setverifiedpublisher.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_setverifiedpublisher.go @@ -53,7 +53,10 @@ func (c ApplicationClient) SetVerifiedPublisher(ctx context.Context, id stable.A opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_unsetverifiedpublisher.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_unsetverifiedpublisher.go index 46dccf9f5..369f67ee2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_unsetverifiedpublisher.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_unsetverifiedpublisher.go @@ -53,7 +53,10 @@ func (c ApplicationClient) UnsetVerifiedPublisher(ctx context.Context, id stable opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_updateapplication.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_updateapplication.go index e2aab25dd..26dfaa14e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_updateapplication.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/application/method_updateapplication.go @@ -52,7 +52,9 @@ func (c ApplicationClient) UpdateApplication(ctx context.Context, id stable.Appl opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/federatedidentitycredential/method_createfederatedidentitycredential.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/federatedidentitycredential/method_createfederatedidentitycredential.go index 1837d20fb..1d1188ca4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/federatedidentitycredential/method_createfederatedidentitycredential.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/federatedidentitycredential/method_createfederatedidentitycredential.go @@ -57,7 +57,10 @@ func (c FederatedIdentityCredentialClient) CreateFederatedIdentityCredential(ctx opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/federatedidentitycredential/method_deletefederatedidentitycredential.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/federatedidentitycredential/method_deletefederatedidentitycredential.go index 56841d9e1..65a31721d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/federatedidentitycredential/method_deletefederatedidentitycredential.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/federatedidentitycredential/method_deletefederatedidentitycredential.go @@ -57,6 +57,7 @@ func (c FederatedIdentityCredentialClient) DeleteFederatedIdentityCredential(ctx ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/federatedidentitycredential/method_updatefederatedidentitycredential.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/federatedidentitycredential/method_updatefederatedidentitycredential.go index febf410b8..e9d714597 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/federatedidentitycredential/method_updatefederatedidentitycredential.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/federatedidentitycredential/method_updatefederatedidentitycredential.go @@ -55,7 +55,9 @@ func (c FederatedIdentityCredentialClient) UpdateFederatedIdentityCredential(ctx opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/logo/method_deletelogo.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/logo/method_deletelogo.go index ab96d244c..ba4d07575 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/logo/method_deletelogo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/logo/method_deletelogo.go @@ -56,6 +56,7 @@ func (c LogoClient) DeleteLogo(ctx context.Context, id stable.ApplicationId, opt ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/logo/method_setlogo.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/logo/method_setlogo.go index de6eb6eb2..c41c82ba4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/logo/method_setlogo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/logo/method_setlogo.go @@ -53,7 +53,10 @@ func (c LogoClient) SetLogo(ctx context.Context, id stable.ApplicationId, input opts := client.RequestOptions{ ContentType: options.ContentType, ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPut, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/owner/method_addownerref.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/owner/method_addownerref.go index 6664569fc..007417910 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/owner/method_addownerref.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/owner/method_addownerref.go @@ -52,7 +52,10 @@ func (c OwnerClient) AddOwnerRef(ctx context.Context, id stable.ApplicationId, i opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/owner/method_removeownerref.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/owner/method_removeownerref.go index 0f0070b14..732d454ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/owner/method_removeownerref.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/owner/method_removeownerref.go @@ -57,6 +57,7 @@ func (c OwnerClient) RemoveOwnerRef(ctx context.Context, id stable.ApplicationId ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/owner/method_removeownerrefs.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/owner/method_removeownerrefs.go index aeab09895..01a61eee0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/owner/method_removeownerrefs.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/owner/method_removeownerrefs.go @@ -60,6 +60,7 @@ func (c OwnerClient) RemoveOwnerRefs(ctx context.Context, id stable.ApplicationI ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applicationtemplates/stable/applicationtemplate/method_instantiate.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applicationtemplates/stable/applicationtemplate/method_instantiate.go index a76ec3af6..520ab6dab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applicationtemplates/stable/applicationtemplate/method_instantiate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/applicationtemplates/stable/applicationtemplate/method_instantiate.go @@ -55,7 +55,9 @@ func (c ApplicationTemplateClient) Instantiate(ctx context.Context, id stable.Ap opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/beta/administrativeunitmember/method_addadministrativeunitmemberref.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/beta/administrativeunitmember/method_addadministrativeunitmemberref.go index e57836ac5..4e6f2f6b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/beta/administrativeunitmember/method_addadministrativeunitmemberref.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/beta/administrativeunitmember/method_addadministrativeunitmemberref.go @@ -52,7 +52,10 @@ func (c AdministrativeUnitMemberClient) AddAdministrativeUnitMemberRef(ctx conte opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/beta/administrativeunitmember/method_createadministrativeunitmember.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/beta/administrativeunitmember/method_createadministrativeunitmember.go index c0e8c40fc..05813f06d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/beta/administrativeunitmember/method_createadministrativeunitmember.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/beta/administrativeunitmember/method_createadministrativeunitmember.go @@ -54,7 +54,10 @@ func (c AdministrativeUnitMemberClient) CreateAdministrativeUnitMember(ctx conte opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/beta/administrativeunitmember/method_removeadministrativeunitmemberref.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/beta/administrativeunitmember/method_removeadministrativeunitmemberref.go index 90a23b158..9147466e6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/beta/administrativeunitmember/method_removeadministrativeunitmemberref.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/beta/administrativeunitmember/method_removeadministrativeunitmemberref.go @@ -56,6 +56,7 @@ func (c AdministrativeUnitMemberClient) RemoveAdministrativeUnitMemberRef(ctx co ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/beta/administrativeunitmember/method_removeadministrativeunitmemberrefs.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/beta/administrativeunitmember/method_removeadministrativeunitmemberrefs.go index 3432d5dbd..f3d510517 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/beta/administrativeunitmember/method_removeadministrativeunitmemberrefs.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/beta/administrativeunitmember/method_removeadministrativeunitmemberrefs.go @@ -59,6 +59,7 @@ func (c AdministrativeUnitMemberClient) RemoveAdministrativeUnitMemberRefs(ctx c ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunit/method_createadministrativeunit.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunit/method_createadministrativeunit.go index 3b0a40681..07afbfc84 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunit/method_createadministrativeunit.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunit/method_createadministrativeunit.go @@ -52,7 +52,10 @@ func (c AdministrativeUnitClient) CreateAdministrativeUnit(ctx context.Context, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunit/method_deleteadministrativeunit.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunit/method_deleteadministrativeunit.go index 1ec942653..699efdb8b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunit/method_deleteadministrativeunit.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunit/method_deleteadministrativeunit.go @@ -56,6 +56,7 @@ func (c AdministrativeUnitClient) DeleteAdministrativeUnit(ctx context.Context, ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunit/method_updateadministrativeunit.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunit/method_updateadministrativeunit.go index dbce325c7..9b7441325 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunit/method_updateadministrativeunit.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunit/method_updateadministrativeunit.go @@ -51,7 +51,9 @@ func (c AdministrativeUnitClient) UpdateAdministrativeUnit(ctx context.Context, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitmember/method_addadministrativeunitmemberref.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitmember/method_addadministrativeunitmemberref.go index f57e50662..d35db7cdf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitmember/method_addadministrativeunitmemberref.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitmember/method_addadministrativeunitmemberref.go @@ -53,7 +53,10 @@ func (c AdministrativeUnitMemberClient) AddAdministrativeUnitMemberRef(ctx conte opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitmember/method_createadministrativeunitmember.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitmember/method_createadministrativeunitmember.go index 4908f06b3..bbf68d08f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitmember/method_createadministrativeunitmember.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitmember/method_createadministrativeunitmember.go @@ -55,7 +55,10 @@ func (c AdministrativeUnitMemberClient) CreateAdministrativeUnitMember(ctx conte opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitmember/method_removeadministrativeunitmemberref.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitmember/method_removeadministrativeunitmemberref.go index af5f6911e..e30f34385 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitmember/method_removeadministrativeunitmemberref.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitmember/method_removeadministrativeunitmemberref.go @@ -57,6 +57,7 @@ func (c AdministrativeUnitMemberClient) RemoveAdministrativeUnitMemberRef(ctx co ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitmember/method_removeadministrativeunitmemberrefs.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitmember/method_removeadministrativeunitmemberrefs.go index 5ed174220..7614737ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitmember/method_removeadministrativeunitmemberrefs.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitmember/method_removeadministrativeunitmemberrefs.go @@ -60,6 +60,7 @@ func (c AdministrativeUnitMemberClient) RemoveAdministrativeUnitMemberRefs(ctx c ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitscopedrolemember/method_createadministrativeunitscopedrolemember.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitscopedrolemember/method_createadministrativeunitscopedrolemember.go index cdad13c50..137395ec2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitscopedrolemember/method_createadministrativeunitscopedrolemember.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitscopedrolemember/method_createadministrativeunitscopedrolemember.go @@ -55,7 +55,10 @@ func (c AdministrativeUnitScopedRoleMemberClient) CreateAdministrativeUnitScoped opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitscopedrolemember/method_deleteadministrativeunitscopedrolemember.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitscopedrolemember/method_deleteadministrativeunitscopedrolemember.go index b5f13c353..1ecc329f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitscopedrolemember/method_deleteadministrativeunitscopedrolemember.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitscopedrolemember/method_deleteadministrativeunitscopedrolemember.go @@ -57,6 +57,7 @@ func (c AdministrativeUnitScopedRoleMemberClient) DeleteAdministrativeUnitScoped ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitscopedrolemember/method_updateadministrativeunitscopedrolemember.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitscopedrolemember/method_updateadministrativeunitscopedrolemember.go index ea1e06a83..911c3e0a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitscopedrolemember/method_updateadministrativeunitscopedrolemember.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/stable/administrativeunitscopedrolemember/method_updateadministrativeunitscopedrolemember.go @@ -51,7 +51,9 @@ func (c AdministrativeUnitScopedRoleMemberClient) UpdateAdministrativeUnitScoped opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryobjects/stable/directoryobject/method_createdirectoryobject.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryobjects/stable/directoryobject/method_createdirectoryobject.go index 3c5806fc8..8fd455f8d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryobjects/stable/directoryobject/method_createdirectoryobject.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryobjects/stable/directoryobject/method_createdirectoryobject.go @@ -53,7 +53,10 @@ func (c DirectoryObjectClient) CreateDirectoryObject(ctx context.Context, input opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryobjects/stable/directoryobject/method_createvalidatesproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryobjects/stable/directoryobject/method_createvalidatesproperty.go index 9c7ac1684..899771e3b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryobjects/stable/directoryobject/method_createvalidatesproperty.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryobjects/stable/directoryobject/method_createvalidatesproperty.go @@ -58,7 +58,10 @@ func (c DirectoryObjectClient) CreateValidatesProperty(ctx context.Context, inpu opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryobjects/stable/directoryobject/method_deletedirectoryobject.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryobjects/stable/directoryobject/method_deletedirectoryobject.go index f41436add..cc0342186 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryobjects/stable/directoryobject/method_deletedirectoryobject.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryobjects/stable/directoryobject/method_deletedirectoryobject.go @@ -57,6 +57,7 @@ func (c DirectoryObjectClient) DeleteDirectoryObject(ctx context.Context, id sta ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryobjects/stable/directoryobject/method_restore.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryobjects/stable/directoryobject/method_restore.go index 6d29bcf7d..b7ead863a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryobjects/stable/directoryobject/method_restore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryobjects/stable/directoryobject/method_restore.go @@ -58,6 +58,9 @@ func (c DirectoryObjectClient) Restore(ctx context.Context, id stable.DirectoryO opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryobjects/stable/directoryobject/method_updatedirectoryobject.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryobjects/stable/directoryobject/method_updatedirectoryobject.go index 4dd7df884..7d69a0437 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryobjects/stable/directoryobject/method_updatedirectoryobject.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryobjects/stable/directoryobject/method_updatedirectoryobject.go @@ -51,7 +51,9 @@ func (c DirectoryObjectClient) UpdateDirectoryObject(ctx context.Context, id sta opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/directoryrole/method_createdirectoryrole.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/directoryrole/method_createdirectoryrole.go index 78ca0bfcf..02201b690 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/directoryrole/method_createdirectoryrole.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/directoryrole/method_createdirectoryrole.go @@ -55,7 +55,10 @@ func (c DirectoryRoleClient) CreateDirectoryRole(ctx context.Context, input stab opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/directoryrole/method_createvalidatesproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/directoryrole/method_createvalidatesproperty.go index 9e66e34de..c904e2893 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/directoryrole/method_createvalidatesproperty.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/directoryrole/method_createvalidatesproperty.go @@ -58,7 +58,10 @@ func (c DirectoryRoleClient) CreateValidatesProperty(ctx context.Context, input opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/directoryrole/method_deletedirectoryrole.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/directoryrole/method_deletedirectoryrole.go index e1c7426d8..0fe7e5ab2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/directoryrole/method_deletedirectoryrole.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/directoryrole/method_deletedirectoryrole.go @@ -56,6 +56,7 @@ func (c DirectoryRoleClient) DeleteDirectoryRole(ctx context.Context, id stable. ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/directoryrole/method_restore.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/directoryrole/method_restore.go index e1a4eaaa3..cb0e7b285 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/directoryrole/method_restore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/directoryrole/method_restore.go @@ -58,6 +58,9 @@ func (c DirectoryRoleClient) Restore(ctx context.Context, id stable.DirectoryRol opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/directoryrole/method_updatedirectoryrole.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/directoryrole/method_updatedirectoryrole.go index 757919027..84ea50844 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/directoryrole/method_updatedirectoryrole.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/directoryrole/method_updatedirectoryrole.go @@ -51,7 +51,9 @@ func (c DirectoryRoleClient) UpdateDirectoryRole(ctx context.Context, id stable. opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/member/method_addmemberref.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/member/method_addmemberref.go index acd583567..2e4e37cf6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/member/method_addmemberref.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/member/method_addmemberref.go @@ -54,7 +54,10 @@ func (c MemberClient) AddMemberRef(ctx context.Context, id stable.DirectoryRoleI opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/member/method_removememberref.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/member/method_removememberref.go index 06514e6d7..a6eb5ebb9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/member/method_removememberref.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/member/method_removememberref.go @@ -58,6 +58,7 @@ func (c MemberClient) RemoveMemberRef(ctx context.Context, id stable.DirectoryRo ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/member/method_removememberrefs.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/member/method_removememberrefs.go index 7d220f570..5482dc523 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/member/method_removememberrefs.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroles/stable/member/method_removememberrefs.go @@ -61,6 +61,7 @@ func (c MemberClient) RemoveMemberRefs(ctx context.Context, id stable.DirectoryR ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroletemplates/stable/directoryroletemplate/method_createdirectoryroletemplate.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroletemplates/stable/directoryroletemplate/method_createdirectoryroletemplate.go index 65a050588..016f388e6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroletemplates/stable/directoryroletemplate/method_createdirectoryroletemplate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroletemplates/stable/directoryroletemplate/method_createdirectoryroletemplate.go @@ -52,7 +52,10 @@ func (c DirectoryRoleTemplateClient) CreateDirectoryRoleTemplate(ctx context.Con opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroletemplates/stable/directoryroletemplate/method_createvalidatesproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroletemplates/stable/directoryroletemplate/method_createvalidatesproperty.go index 68a49cec5..186eba319 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroletemplates/stable/directoryroletemplate/method_createvalidatesproperty.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroletemplates/stable/directoryroletemplate/method_createvalidatesproperty.go @@ -58,7 +58,10 @@ func (c DirectoryRoleTemplateClient) CreateValidatesProperty(ctx context.Context opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroletemplates/stable/directoryroletemplate/method_deletedirectoryroletemplate.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroletemplates/stable/directoryroletemplate/method_deletedirectoryroletemplate.go index 305e525c2..cb4041dca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroletemplates/stable/directoryroletemplate/method_deletedirectoryroletemplate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroletemplates/stable/directoryroletemplate/method_deletedirectoryroletemplate.go @@ -56,6 +56,7 @@ func (c DirectoryRoleTemplateClient) DeleteDirectoryRoleTemplate(ctx context.Con ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroletemplates/stable/directoryroletemplate/method_restore.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroletemplates/stable/directoryroletemplate/method_restore.go index 0fdd3bcb3..677ddf134 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroletemplates/stable/directoryroletemplate/method_restore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroletemplates/stable/directoryroletemplate/method_restore.go @@ -58,6 +58,9 @@ func (c DirectoryRoleTemplateClient) Restore(ctx context.Context, id stable.Dire opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroletemplates/stable/directoryroletemplate/method_updatedirectoryroletemplate.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroletemplates/stable/directoryroletemplate/method_updatedirectoryroletemplate.go index c14ec89f7..148d53aa9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroletemplates/stable/directoryroletemplate/method_updatedirectoryroletemplate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/directoryroletemplates/stable/directoryroletemplate/method_updatedirectoryroletemplate.go @@ -51,7 +51,9 @@ func (c DirectoryRoleTemplateClient) UpdateDirectoryRoleTemplate(ctx context.Con opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_createdomain.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_createdomain.go index 0b88562e3..d5504b217 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_createdomain.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_createdomain.go @@ -56,7 +56,10 @@ func (c DomainClient) CreateDomain(ctx context.Context, input stable.Domain, opt opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_createforcedelete.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_createforcedelete.go index abb1aa7e8..19e626870 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_createforcedelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_createforcedelete.go @@ -56,7 +56,10 @@ func (c DomainClient) CreateForceDelete(ctx context.Context, id stable.DomainId, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_createpromote.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_createpromote.go index 5e7f6a23a..6cfd0d636 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_createpromote.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_createpromote.go @@ -54,6 +54,9 @@ func (c DomainClient) CreatePromote(ctx context.Context, id stable.DomainId, opt opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_createverify.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_createverify.go index 8aa4312e1..405004cb5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_createverify.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_createverify.go @@ -53,6 +53,9 @@ func (c DomainClient) CreateVerify(ctx context.Context, id stable.DomainId, opti opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_deletedomain.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_deletedomain.go index c1a2ee465..cee9e1730 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_deletedomain.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_deletedomain.go @@ -56,6 +56,7 @@ func (c DomainClient) DeleteDomain(ctx context.Context, id stable.DomainId, opti ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_updatedomain.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_updatedomain.go index 94131b9d0..9bc57e66c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_updatedomain.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/domains/stable/domain/method_updatedomain.go @@ -51,7 +51,9 @@ func (c DomainClient) UpdateDomain(ctx context.Context, id stable.DomainId, inpu opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_addfavorite.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_addfavorite.go index 678549e0a..c3a566918 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_addfavorite.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_addfavorite.go @@ -53,7 +53,10 @@ func (c GroupClient) AddFavorite(ctx context.Context, id beta.GroupId, options A opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_assignlicense.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_assignlicense.go index 4a3ad7b94..59131bebf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_assignlicense.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_assignlicense.go @@ -55,6 +55,9 @@ func (c GroupClient) AssignLicense(ctx context.Context, id beta.GroupId, input A opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_createevaluatesdynamicmembership.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_createevaluatesdynamicmembership.go index 7028b3320..824f17d29 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_createevaluatesdynamicmembership.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_createevaluatesdynamicmembership.go @@ -52,6 +52,9 @@ func (c GroupClient) CreateEvaluatesDynamicMembership(ctx context.Context, input opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_creategetsuserownedobject.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_creategetsuserownedobject.go index 91a890366..dddec4634 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_creategetsuserownedobject.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_creategetsuserownedobject.go @@ -55,6 +55,9 @@ func (c GroupClient) CreateGetsUserOwnedObject(ctx context.Context, input Create opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_creategroup.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_creategroup.go index 17389439c..b9f0ec5a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_creategroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_creategroup.go @@ -56,7 +56,10 @@ func (c GroupClient) CreateGroup(ctx context.Context, input beta.Group, options opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_createsubscribebymail.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_createsubscribebymail.go index 084b0aa24..bd6728eed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_createsubscribebymail.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_createsubscribebymail.go @@ -54,7 +54,10 @@ func (c GroupClient) CreateSubscribeByMail(ctx context.Context, id beta.GroupId, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_createunsubscribebymail.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_createunsubscribebymail.go index 762356e23..b1a36db57 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_createunsubscribebymail.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_createunsubscribebymail.go @@ -54,7 +54,10 @@ func (c GroupClient) CreateUnsubscribeByMail(ctx context.Context, id beta.GroupI opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_createvalidatesproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_createvalidatesproperty.go index 14ed315a8..0012b5118 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_createvalidatesproperty.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_createvalidatesproperty.go @@ -58,7 +58,10 @@ func (c GroupClient) CreateValidatesProperty(ctx context.Context, input CreateVa opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_deletegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_deletegroup.go index f7178098f..37ce65459 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_deletegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_deletegroup.go @@ -58,6 +58,7 @@ func (c GroupClient) DeleteGroup(ctx context.Context, id beta.GroupId, options D ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_deletepasswordsinglesignoncredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_deletepasswordsinglesignoncredentials.go index f4376408e..6969650b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_deletepasswordsinglesignoncredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_deletepasswordsinglesignoncredentials.go @@ -53,7 +53,10 @@ func (c GroupClient) DeletePasswordSingleSignOnCredentials(ctx context.Context, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_evaluatedynamicmembership.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_evaluatedynamicmembership.go index ba07085bc..fc304b69a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_evaluatedynamicmembership.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_evaluatedynamicmembership.go @@ -55,6 +55,9 @@ func (c GroupClient) EvaluateDynamicMembership(ctx context.Context, id beta.Grou opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_removefavorite.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_removefavorite.go index d91e4017c..f08bbe7c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_removefavorite.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_removefavorite.go @@ -53,7 +53,10 @@ func (c GroupClient) RemoveFavorite(ctx context.Context, id beta.GroupId, option opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_renew.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_renew.go index 84477f3ae..3d013bc67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_renew.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_renew.go @@ -53,7 +53,10 @@ func (c GroupClient) Renew(ctx context.Context, id beta.GroupId, options RenewOp opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_resetunseencount.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_resetunseencount.go index b17d2c9a9..0f1ef042d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_resetunseencount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_resetunseencount.go @@ -53,7 +53,10 @@ func (c GroupClient) ResetUnseenCount(ctx context.Context, id beta.GroupId, opti opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_restore.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_restore.go index e9a61a98e..c5bf91349 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_restore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_restore.go @@ -59,6 +59,9 @@ func (c GroupClient) Restore(ctx context.Context, id beta.GroupId, input Restore opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_retryserviceprovisioning.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_retryserviceprovisioning.go index c4a898d2c..c5dc42c76 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_retryserviceprovisioning.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_retryserviceprovisioning.go @@ -52,7 +52,10 @@ func (c GroupClient) RetryServiceProvisioning(ctx context.Context, id beta.Group opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_updategroup.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_updategroup.go index 6f5d243c5..736edefa5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_updategroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_updategroup.go @@ -55,6 +55,7 @@ func (c GroupClient) UpdateGroup(ctx context.Context, id beta.GroupId, input bet opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, http.StatusOK, }, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_validateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_validateproperties.go index 5ad3e0f15..265f2770f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_validateproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/group/method_validateproperties.go @@ -59,7 +59,10 @@ func (c GroupClient) ValidateProperties(ctx context.Context, id beta.GroupId, in opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/member/method_addmemberref.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/member/method_addmemberref.go index c4d1e25c2..72965453b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/member/method_addmemberref.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/member/method_addmemberref.go @@ -54,7 +54,10 @@ func (c MemberClient) AddMemberRef(ctx context.Context, id beta.GroupId, input b opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/member/method_removememberref.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/member/method_removememberref.go index 5277235e4..c67e6b974 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/member/method_removememberref.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/member/method_removememberref.go @@ -57,6 +57,7 @@ func (c MemberClient) RemoveMemberRef(ctx context.Context, id beta.GroupIdMember ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/member/method_removememberrefs.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/member/method_removememberrefs.go index cfae83c3f..5f9c4c8a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/member/method_removememberrefs.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/member/method_removememberrefs.go @@ -60,6 +60,7 @@ func (c MemberClient) RemoveMemberRefs(ctx context.Context, id beta.GroupId, opt ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/owner/method_addownerref.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/owner/method_addownerref.go index 0cdc7bdca..b7a8b6114 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/owner/method_addownerref.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/owner/method_addownerref.go @@ -53,7 +53,10 @@ func (c OwnerClient) AddOwnerRef(ctx context.Context, id beta.GroupId, input bet opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/owner/method_removeownerref.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/owner/method_removeownerref.go index 369b40d1b..b89d37c2c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/owner/method_removeownerref.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/owner/method_removeownerref.go @@ -58,6 +58,7 @@ func (c OwnerClient) RemoveOwnerRef(ctx context.Context, id beta.GroupIdOwnerId, ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/owner/method_removeownerrefs.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/owner/method_removeownerrefs.go index 1fb1aee09..d889db7aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/owner/method_removeownerrefs.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/owner/method_removeownerrefs.go @@ -61,6 +61,7 @@ func (c OwnerClient) RemoveOwnerRefs(ctx context.Context, id beta.GroupId, optio ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccessnamedlocation/method_createconditionalaccessnamedlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccessnamedlocation/method_createconditionalaccessnamedlocation.go index 567b03fd2..990fce683 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccessnamedlocation/method_createconditionalaccessnamedlocation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccessnamedlocation/method_createconditionalaccessnamedlocation.go @@ -54,7 +54,10 @@ func (c ConditionalAccessNamedLocationClient) CreateConditionalAccessNamedLocati opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccessnamedlocation/method_deleteconditionalaccessnamedlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccessnamedlocation/method_deleteconditionalaccessnamedlocation.go index 941ad1980..58faac574 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccessnamedlocation/method_deleteconditionalaccessnamedlocation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccessnamedlocation/method_deleteconditionalaccessnamedlocation.go @@ -56,6 +56,7 @@ func (c ConditionalAccessNamedLocationClient) DeleteConditionalAccessNamedLocati ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccessnamedlocation/method_updateconditionalaccessnamedlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccessnamedlocation/method_updateconditionalaccessnamedlocation.go index 07f83c70d..fa6a459d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccessnamedlocation/method_updateconditionalaccessnamedlocation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccessnamedlocation/method_updateconditionalaccessnamedlocation.go @@ -51,7 +51,9 @@ func (c ConditionalAccessNamedLocationClient) UpdateConditionalAccessNamedLocati opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccesspolicy/method_createconditionalaccesspolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccesspolicy/method_createconditionalaccesspolicy.go index 30b344b81..0b437c0a7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccesspolicy/method_createconditionalaccesspolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccesspolicy/method_createconditionalaccesspolicy.go @@ -52,7 +52,10 @@ func (c ConditionalAccessPolicyClient) CreateConditionalAccessPolicy(ctx context opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccesspolicy/method_deleteconditionalaccesspolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccesspolicy/method_deleteconditionalaccesspolicy.go index f05f3b543..7eb95ccdf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccesspolicy/method_deleteconditionalaccesspolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccesspolicy/method_deleteconditionalaccesspolicy.go @@ -56,6 +56,7 @@ func (c ConditionalAccessPolicyClient) DeleteConditionalAccessPolicy(ctx context ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccesspolicy/method_updateconditionalaccesspolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccesspolicy/method_updateconditionalaccesspolicy.go index c483293e0..2d40625be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccesspolicy/method_updateconditionalaccesspolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccesspolicy/method_updateconditionalaccesspolicy.go @@ -52,7 +52,9 @@ func (c ConditionalAccessPolicyClient) UpdateConditionalAccessPolicy(ctx context opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/userflowattribute/method_createuserflowattribute.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/userflowattribute/method_createuserflowattribute.go index 1b0b5db08..ef5ddf778 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/userflowattribute/method_createuserflowattribute.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/userflowattribute/method_createuserflowattribute.go @@ -53,7 +53,10 @@ func (c UserFlowAttributeClient) CreateUserFlowAttribute(ctx context.Context, in opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/userflowattribute/method_deleteuserflowattribute.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/userflowattribute/method_deleteuserflowattribute.go index 642ce352b..b9aee1549 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/userflowattribute/method_deleteuserflowattribute.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/userflowattribute/method_deleteuserflowattribute.go @@ -56,6 +56,7 @@ func (c UserFlowAttributeClient) DeleteUserFlowAttribute(ctx context.Context, id ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/userflowattribute/method_updateuserflowattribute.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/userflowattribute/method_updateuserflowattribute.go index 07e17de68..a13fa6e48 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/userflowattribute/method_updateuserflowattribute.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/userflowattribute/method_updateuserflowattribute.go @@ -52,7 +52,9 @@ func (c UserFlowAttributeClient) UpdateUserFlowAttribute(ctx context.Context, id opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackage/method_createentitlementmanagementaccesspackage.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackage/method_createentitlementmanagementaccesspackage.go index 740d9ccd0..7d4f71e57 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackage/method_createentitlementmanagementaccesspackage.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackage/method_createentitlementmanagementaccesspackage.go @@ -54,7 +54,10 @@ func (c EntitlementManagementAccessPackageClient) CreateEntitlementManagementAcc opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackage/method_deleteentitlementmanagementaccesspackage.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackage/method_deleteentitlementmanagementaccesspackage.go index 9e845d6a5..35f7b08a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackage/method_deleteentitlementmanagementaccesspackage.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackage/method_deleteentitlementmanagementaccesspackage.go @@ -60,6 +60,7 @@ func (c EntitlementManagementAccessPackageClient) DeleteEntitlementManagementAcc ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackage/method_moveentitlementmanagementaccesspackagetocatalog.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackage/method_moveentitlementmanagementaccesspackagetocatalog.go index 67e92b50e..6cb5980c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackage/method_moveentitlementmanagementaccesspackagetocatalog.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackage/method_moveentitlementmanagementaccesspackagetocatalog.go @@ -54,7 +54,10 @@ func (c EntitlementManagementAccessPackageClient) MoveEntitlementManagementAcces opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackage/method_updateentitlementmanagementaccesspackage.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackage/method_updateentitlementmanagementaccesspackage.go index 67af5a7e3..01414e705 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackage/method_updateentitlementmanagementaccesspackage.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackage/method_updateentitlementmanagementaccesspackage.go @@ -52,7 +52,9 @@ func (c EntitlementManagementAccessPackageClient) UpdateEntitlementManagementAcc opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageaccesspackageresourcerolescope/method_createentitlementmanagementaccesspackageresourcerolescope.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageaccesspackageresourcerolescope/method_createentitlementmanagementaccesspackageresourcerolescope.go index e87817796..050ae9bba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageaccesspackageresourcerolescope/method_createentitlementmanagementaccesspackageresourcerolescope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageaccesspackageresourcerolescope/method_createentitlementmanagementaccesspackageresourcerolescope.go @@ -57,7 +57,10 @@ func (c EntitlementManagementAccessPackageAccessPackageResourceRoleScopeClient) opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageaccesspackageresourcerolescope/method_updateentitlementmanagementaccesspackageresourcerolescope.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageaccesspackageresourcerolescope/method_updateentitlementmanagementaccesspackageresourcerolescope.go index d9bf7017c..d7c8b0e8e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageaccesspackageresourcerolescope/method_updateentitlementmanagementaccesspackageresourcerolescope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageaccesspackageresourcerolescope/method_updateentitlementmanagementaccesspackageresourcerolescope.go @@ -52,7 +52,9 @@ func (c EntitlementManagementAccessPackageAccessPackageResourceRoleScopeClient) opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageassignmentpolicy/method_createentitlementmanagementaccesspackageassignmentpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageassignmentpolicy/method_createentitlementmanagementaccesspackageassignmentpolicy.go index df27ed070..742d5f48e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageassignmentpolicy/method_createentitlementmanagementaccesspackageassignmentpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageassignmentpolicy/method_createentitlementmanagementaccesspackageassignmentpolicy.go @@ -53,7 +53,10 @@ func (c EntitlementManagementAccessPackageAssignmentPolicyClient) CreateEntitlem opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageassignmentpolicy/method_deleteentitlementmanagementaccesspackageassignmentpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageassignmentpolicy/method_deleteentitlementmanagementaccesspackageassignmentpolicy.go index f86652a47..7fcce2c5e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageassignmentpolicy/method_deleteentitlementmanagementaccesspackageassignmentpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageassignmentpolicy/method_deleteentitlementmanagementaccesspackageassignmentpolicy.go @@ -57,6 +57,7 @@ func (c EntitlementManagementAccessPackageAssignmentPolicyClient) DeleteEntitlem ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageassignmentpolicy/method_setentitlementmanagementaccesspackageassignmentpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageassignmentpolicy/method_setentitlementmanagementaccesspackageassignmentpolicy.go index c45bb3535..4ed845762 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageassignmentpolicy/method_setentitlementmanagementaccesspackageassignmentpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageassignmentpolicy/method_setentitlementmanagementaccesspackageassignmentpolicy.go @@ -53,7 +53,10 @@ func (c EntitlementManagementAccessPackageAssignmentPolicyClient) SetEntitlement opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPut, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalog/method_createentitlementmanagementaccesspackagecatalog.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalog/method_createentitlementmanagementaccesspackagecatalog.go index 2572dfd8c..2b1115390 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalog/method_createentitlementmanagementaccesspackagecatalog.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalog/method_createentitlementmanagementaccesspackagecatalog.go @@ -53,7 +53,10 @@ func (c EntitlementManagementAccessPackageCatalogClient) CreateEntitlementManage opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalog/method_deleteentitlementmanagementaccesspackagecatalog.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalog/method_deleteentitlementmanagementaccesspackagecatalog.go index 3b463f363..fd7ecd14b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalog/method_deleteentitlementmanagementaccesspackagecatalog.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalog/method_deleteentitlementmanagementaccesspackagecatalog.go @@ -56,6 +56,7 @@ func (c EntitlementManagementAccessPackageCatalogClient) DeleteEntitlementManage ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalog/method_updateentitlementmanagementaccesspackagecatalog.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalog/method_updateentitlementmanagementaccesspackagecatalog.go index 32b7b34d3..2352108c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalog/method_updateentitlementmanagementaccesspackagecatalog.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalog/method_updateentitlementmanagementaccesspackagecatalog.go @@ -52,7 +52,9 @@ func (c EntitlementManagementAccessPackageCatalogClient) UpdateEntitlementManage opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalogaccesspackageresource/method_createentitlementmanagementaccesspackagecatalogresource.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalogaccesspackageresource/method_createentitlementmanagementaccesspackagecatalogresource.go index 386b475b1..a1e7d2e1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalogaccesspackageresource/method_createentitlementmanagementaccesspackagecatalogresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalogaccesspackageresource/method_createentitlementmanagementaccesspackagecatalogresource.go @@ -54,7 +54,10 @@ func (c EntitlementManagementAccessPackageCatalogAccessPackageResourceClient) Cr opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalogaccesspackageresource/method_createentitlementmanagementaccesspackagecatalogresourcerefresh.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalogaccesspackageresource/method_createentitlementmanagementaccesspackagecatalogresourcerefresh.go index 85740f06b..a5bc9145a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalogaccesspackageresource/method_createentitlementmanagementaccesspackagecatalogresourcerefresh.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalogaccesspackageresource/method_createentitlementmanagementaccesspackagecatalogresourcerefresh.go @@ -55,7 +55,10 @@ func (c EntitlementManagementAccessPackageCatalogAccessPackageResourceClient) Cr opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalogaccesspackageresource/method_deleteentitlementmanagementaccesspackagecatalogresource.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalogaccesspackageresource/method_deleteentitlementmanagementaccesspackagecatalogresource.go index 57b821da2..c6448d7e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalogaccesspackageresource/method_deleteentitlementmanagementaccesspackagecatalogresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalogaccesspackageresource/method_deleteentitlementmanagementaccesspackagecatalogresource.go @@ -57,6 +57,7 @@ func (c EntitlementManagementAccessPackageCatalogAccessPackageResourceClient) De ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalogaccesspackageresource/method_updateentitlementmanagementaccesspackagecatalogresource.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalogaccesspackageresource/method_updateentitlementmanagementaccesspackagecatalogresource.go index af28a04d3..98bd86655 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalogaccesspackageresource/method_updateentitlementmanagementaccesspackagecatalogresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackagecatalogaccesspackageresource/method_updateentitlementmanagementaccesspackagecatalogresource.go @@ -52,7 +52,9 @@ func (c EntitlementManagementAccessPackageCatalogAccessPackageResourceClient) Up opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageresourcerequest/method_createentitlementmanagementaccesspackageresourcerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageresourcerequest/method_createentitlementmanagementaccesspackageresourcerequest.go index e9d98c3d8..16a94bf91 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageresourcerequest/method_createentitlementmanagementaccesspackageresourcerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageresourcerequest/method_createentitlementmanagementaccesspackageresourcerequest.go @@ -55,7 +55,10 @@ func (c EntitlementManagementAccessPackageResourceRequestClient) CreateEntitleme opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageresourcerequest/method_deleteentitlementmanagementaccesspackageresourcerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageresourcerequest/method_deleteentitlementmanagementaccesspackageresourcerequest.go index 761b1d682..5d8798263 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageresourcerequest/method_deleteentitlementmanagementaccesspackageresourcerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageresourcerequest/method_deleteentitlementmanagementaccesspackageresourcerequest.go @@ -57,6 +57,7 @@ func (c EntitlementManagementAccessPackageResourceRequestClient) DeleteEntitleme ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageresourcerequest/method_updateentitlementmanagementaccesspackageresourcerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageresourcerequest/method_updateentitlementmanagementaccesspackageresourcerequest.go index 13f251407..7f1639a6d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageresourcerequest/method_updateentitlementmanagementaccesspackageresourcerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/entitlementmanagementaccesspackageresourcerequest/method_updateentitlementmanagementaccesspackageresourcerequest.go @@ -52,7 +52,9 @@ func (c EntitlementManagementAccessPackageResourceRequestClient) UpdateEntitleme opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedule/method_createprivilegedaccessgroupassignmentschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedule/method_createprivilegedaccessgroupassignmentschedule.go index 3ae15f929..c53a9d9d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedule/method_createprivilegedaccessgroupassignmentschedule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedule/method_createprivilegedaccessgroupassignmentschedule.go @@ -53,7 +53,10 @@ func (c PrivilegedAccessGroupAssignmentScheduleClient) CreatePrivilegedAccessGro opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedule/method_deleteprivilegedaccessgroupassignmentschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedule/method_deleteprivilegedaccessgroupassignmentschedule.go index 7aa64c65f..4139780b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedule/method_deleteprivilegedaccessgroupassignmentschedule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedule/method_deleteprivilegedaccessgroupassignmentschedule.go @@ -56,6 +56,7 @@ func (c PrivilegedAccessGroupAssignmentScheduleClient) DeletePrivilegedAccessGro ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedule/method_updateprivilegedaccessgroupassignmentschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedule/method_updateprivilegedaccessgroupassignmentschedule.go index c1017b99e..996c8740e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedule/method_updateprivilegedaccessgroupassignmentschedule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedule/method_updateprivilegedaccessgroupassignmentschedule.go @@ -52,7 +52,9 @@ func (c PrivilegedAccessGroupAssignmentScheduleClient) UpdatePrivilegedAccessGro opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentscheduleinstance/method_createprivilegedaccessgroupassignmentscheduleinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentscheduleinstance/method_createprivilegedaccessgroupassignmentscheduleinstance.go index 5d303b836..b27c9e10c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentscheduleinstance/method_createprivilegedaccessgroupassignmentscheduleinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentscheduleinstance/method_createprivilegedaccessgroupassignmentscheduleinstance.go @@ -53,7 +53,10 @@ func (c PrivilegedAccessGroupAssignmentScheduleInstanceClient) CreatePrivilegedA opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentscheduleinstance/method_deleteprivilegedaccessgroupassignmentscheduleinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentscheduleinstance/method_deleteprivilegedaccessgroupassignmentscheduleinstance.go index 1e338748a..343aa27cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentscheduleinstance/method_deleteprivilegedaccessgroupassignmentscheduleinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentscheduleinstance/method_deleteprivilegedaccessgroupassignmentscheduleinstance.go @@ -57,6 +57,7 @@ func (c PrivilegedAccessGroupAssignmentScheduleInstanceClient) DeletePrivilegedA ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentscheduleinstance/method_updateprivilegedaccessgroupassignmentscheduleinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentscheduleinstance/method_updateprivilegedaccessgroupassignmentscheduleinstance.go index 5b761b3f9..9335fd4e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentscheduleinstance/method_updateprivilegedaccessgroupassignmentscheduleinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentscheduleinstance/method_updateprivilegedaccessgroupassignmentscheduleinstance.go @@ -52,7 +52,9 @@ func (c PrivilegedAccessGroupAssignmentScheduleInstanceClient) UpdatePrivilegedA opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedulerequest/method_cancelprivilegedaccessgroupassignmentschedulerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedulerequest/method_cancelprivilegedaccessgroupassignmentschedulerequest.go index c66199cfd..3599a8cee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedulerequest/method_cancelprivilegedaccessgroupassignmentschedulerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedulerequest/method_cancelprivilegedaccessgroupassignmentschedulerequest.go @@ -53,7 +53,10 @@ func (c PrivilegedAccessGroupAssignmentScheduleRequestClient) CancelPrivilegedAc opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedulerequest/method_createprivilegedaccessgroupassignmentschedulerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedulerequest/method_createprivilegedaccessgroupassignmentschedulerequest.go index d9a6558c0..0e9af4b80 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedulerequest/method_createprivilegedaccessgroupassignmentschedulerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedulerequest/method_createprivilegedaccessgroupassignmentschedulerequest.go @@ -53,7 +53,10 @@ func (c PrivilegedAccessGroupAssignmentScheduleRequestClient) CreatePrivilegedAc opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedulerequest/method_deleteprivilegedaccessgroupassignmentschedulerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedulerequest/method_deleteprivilegedaccessgroupassignmentschedulerequest.go index 4acb03478..e03f52a52 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedulerequest/method_deleteprivilegedaccessgroupassignmentschedulerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedulerequest/method_deleteprivilegedaccessgroupassignmentschedulerequest.go @@ -57,6 +57,7 @@ func (c PrivilegedAccessGroupAssignmentScheduleRequestClient) DeletePrivilegedAc ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedulerequest/method_updateprivilegedaccessgroupassignmentschedulerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedulerequest/method_updateprivilegedaccessgroupassignmentschedulerequest.go index 2c2545c3e..1d0cb716d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedulerequest/method_updateprivilegedaccessgroupassignmentschedulerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupassignmentschedulerequest/method_updateprivilegedaccessgroupassignmentschedulerequest.go @@ -52,7 +52,9 @@ func (c PrivilegedAccessGroupAssignmentScheduleRequestClient) UpdatePrivilegedAc opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedule/method_createprivilegedaccessgroupeligibilityschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedule/method_createprivilegedaccessgroupeligibilityschedule.go index 0b69b51bb..313ab4709 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedule/method_createprivilegedaccessgroupeligibilityschedule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedule/method_createprivilegedaccessgroupeligibilityschedule.go @@ -53,7 +53,10 @@ func (c PrivilegedAccessGroupEligibilityScheduleClient) CreatePrivilegedAccessGr opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedule/method_deleteprivilegedaccessgroupeligibilityschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedule/method_deleteprivilegedaccessgroupeligibilityschedule.go index 4554a732a..c37bfab6d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedule/method_deleteprivilegedaccessgroupeligibilityschedule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedule/method_deleteprivilegedaccessgroupeligibilityschedule.go @@ -57,6 +57,7 @@ func (c PrivilegedAccessGroupEligibilityScheduleClient) DeletePrivilegedAccessGr ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedule/method_updateprivilegedaccessgroupeligibilityschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedule/method_updateprivilegedaccessgroupeligibilityschedule.go index 228c2fc38..a358673eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedule/method_updateprivilegedaccessgroupeligibilityschedule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedule/method_updateprivilegedaccessgroupeligibilityschedule.go @@ -52,7 +52,9 @@ func (c PrivilegedAccessGroupEligibilityScheduleClient) UpdatePrivilegedAccessGr opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityscheduleinstance/method_createprivilegedaccessgroupeligibilityscheduleinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityscheduleinstance/method_createprivilegedaccessgroupeligibilityscheduleinstance.go index e62ca2155..05e71400b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityscheduleinstance/method_createprivilegedaccessgroupeligibilityscheduleinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityscheduleinstance/method_createprivilegedaccessgroupeligibilityscheduleinstance.go @@ -53,7 +53,10 @@ func (c PrivilegedAccessGroupEligibilityScheduleInstanceClient) CreatePrivileged opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityscheduleinstance/method_deleteprivilegedaccessgroupeligibilityscheduleinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityscheduleinstance/method_deleteprivilegedaccessgroupeligibilityscheduleinstance.go index 94046124a..92f612402 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityscheduleinstance/method_deleteprivilegedaccessgroupeligibilityscheduleinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityscheduleinstance/method_deleteprivilegedaccessgroupeligibilityscheduleinstance.go @@ -57,6 +57,7 @@ func (c PrivilegedAccessGroupEligibilityScheduleInstanceClient) DeletePrivileged ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityscheduleinstance/method_updateprivilegedaccessgroupeligibilityscheduleinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityscheduleinstance/method_updateprivilegedaccessgroupeligibilityscheduleinstance.go index a90b630ce..f2415ebd7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityscheduleinstance/method_updateprivilegedaccessgroupeligibilityscheduleinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityscheduleinstance/method_updateprivilegedaccessgroupeligibilityscheduleinstance.go @@ -52,7 +52,9 @@ func (c PrivilegedAccessGroupEligibilityScheduleInstanceClient) UpdatePrivileged opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedulerequest/method_cancelprivilegedaccessgroupeligibilityschedulerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedulerequest/method_cancelprivilegedaccessgroupeligibilityschedulerequest.go index 2ad10ef98..8883bae18 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedulerequest/method_cancelprivilegedaccessgroupeligibilityschedulerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedulerequest/method_cancelprivilegedaccessgroupeligibilityschedulerequest.go @@ -53,7 +53,10 @@ func (c PrivilegedAccessGroupEligibilityScheduleRequestClient) CancelPrivilegedA opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedulerequest/method_createprivilegedaccessgroupeligibilityschedulerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedulerequest/method_createprivilegedaccessgroupeligibilityschedulerequest.go index b6995f6be..686851624 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedulerequest/method_createprivilegedaccessgroupeligibilityschedulerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedulerequest/method_createprivilegedaccessgroupeligibilityschedulerequest.go @@ -53,7 +53,10 @@ func (c PrivilegedAccessGroupEligibilityScheduleRequestClient) CreatePrivilegedA opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedulerequest/method_deleteprivilegedaccessgroupeligibilityschedulerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedulerequest/method_deleteprivilegedaccessgroupeligibilityschedulerequest.go index 652d49f07..4cf320eba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedulerequest/method_deleteprivilegedaccessgroupeligibilityschedulerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedulerequest/method_deleteprivilegedaccessgroupeligibilityschedulerequest.go @@ -57,6 +57,7 @@ func (c PrivilegedAccessGroupEligibilityScheduleRequestClient) DeletePrivilegedA ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedulerequest/method_updateprivilegedaccessgroupeligibilityschedulerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedulerequest/method_updateprivilegedaccessgroupeligibilityschedulerequest.go index 15739a9ba..bafa281ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedulerequest/method_updateprivilegedaccessgroupeligibilityschedulerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/stable/privilegedaccessgroupeligibilityschedulerequest/method_updateprivilegedaccessgroupeligibilityschedulerequest.go @@ -52,7 +52,9 @@ func (c PrivilegedAccessGroupEligibilityScheduleRequestClient) UpdatePrivilegedA opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/invitations/stable/invitation/method_createinvitation.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/invitations/stable/invitation/method_createinvitation.go index 1845bc738..d5d2803b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/invitations/stable/invitation/method_createinvitation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/invitations/stable/invitation/method_createinvitation.go @@ -54,7 +54,10 @@ func (c InvitationClient) CreateInvitation(ctx context.Context, input stable.Inv opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_assignlicense.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_assignlicense.go index 118e23669..5b30e8a49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_assignlicense.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_assignlicense.go @@ -55,6 +55,9 @@ func (c MeClient) AssignLicense(ctx context.Context, input AssignLicenseRequest, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_changepassword.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_changepassword.go index 457d08ce3..f168b2158 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_changepassword.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_changepassword.go @@ -51,7 +51,10 @@ func (c MeClient) ChangePassword(ctx context.Context, input ChangePasswordReques opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_createexportpersonaldata.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_createexportpersonaldata.go index 57e575c66..e77495f04 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_createexportpersonaldata.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_createexportpersonaldata.go @@ -53,7 +53,10 @@ func (c MeClient) CreateExportPersonalData(ctx context.Context, input CreateExpo opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_findmeetingtimes.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_findmeetingtimes.go index bfff4c6b2..a881b7d6c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_findmeetingtimes.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_findmeetingtimes.go @@ -57,6 +57,9 @@ func (c MeClient) FindMeetingTimes(ctx context.Context, input FindMeetingTimesRe opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_removealldevicesfrommanagement.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_removealldevicesfrommanagement.go index 22c41c0bb..bd29afc9e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_removealldevicesfrommanagement.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_removealldevicesfrommanagement.go @@ -51,7 +51,10 @@ func (c MeClient) RemoveAllDevicesFromManagement(ctx context.Context, options Re opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_reprocesslicenseassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_reprocesslicenseassignment.go index bd5bb3fff..91b5b8e8b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_reprocesslicenseassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_reprocesslicenseassignment.go @@ -54,6 +54,9 @@ func (c MeClient) ReprocessLicenseAssignment(ctx context.Context, options Reproc opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_restore.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_restore.go index 4c1cd78f2..0c3baf2c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_restore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_restore.go @@ -57,6 +57,9 @@ func (c MeClient) Restore(ctx context.Context, options RestoreOperationOptions) opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_retryserviceprovisioning.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_retryserviceprovisioning.go index 27275b946..c662ce88a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_retryserviceprovisioning.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_retryserviceprovisioning.go @@ -50,7 +50,10 @@ func (c MeClient) RetryServiceProvisioning(ctx context.Context, options RetrySer opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_revokesigninsessions.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_revokesigninsessions.go index a7c5e90b5..37ada4d38 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_revokesigninsessions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_revokesigninsessions.go @@ -56,6 +56,9 @@ func (c MeClient) RevokeSignInSessions(ctx context.Context, options RevokeSignIn opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_sendmail.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_sendmail.go index 9540c1a04..49d5474bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_sendmail.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_sendmail.go @@ -53,7 +53,10 @@ func (c MeClient) SendMail(ctx context.Context, input SendMailRequest, options S opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_updateme.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_updateme.go index d0020d79c..6ffe09f9e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_updateme.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_updateme.go @@ -51,7 +51,9 @@ func (c MeClient) UpdateMe(ctx context.Context, input stable.User, options Updat opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_wipemanagedappregistrationsbydevicetag.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_wipemanagedappregistrationsbydevicetag.go index ad25067cd..9844389d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_wipemanagedappregistrationsbydevicetag.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/me/method_wipemanagedappregistrationsbydevicetag.go @@ -51,7 +51,10 @@ func (c MeClient) WipeManagedAppRegistrationsByDeviceTag(ctx context.Context, in opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/oauth2permissiongrants/stable/oauth2permissiongrant/method_createoauth2permissiongrant.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/oauth2permissiongrants/stable/oauth2permissiongrant/method_createoauth2permissiongrant.go index 8a5e351fe..e1ac89aeb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/oauth2permissiongrants/stable/oauth2permissiongrant/method_createoauth2permissiongrant.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/oauth2permissiongrants/stable/oauth2permissiongrant/method_createoauth2permissiongrant.go @@ -55,7 +55,10 @@ func (c OAuth2PermissionGrantClient) CreateOAuth2PermissionGrant(ctx context.Con opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/oauth2permissiongrants/stable/oauth2permissiongrant/method_deleteoauth2permissiongrant.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/oauth2permissiongrants/stable/oauth2permissiongrant/method_deleteoauth2permissiongrant.go index 2072a6df8..c67e65359 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/oauth2permissiongrants/stable/oauth2permissiongrant/method_deleteoauth2permissiongrant.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/oauth2permissiongrants/stable/oauth2permissiongrant/method_deleteoauth2permissiongrant.go @@ -59,6 +59,7 @@ func (c OAuth2PermissionGrantClient) DeleteOAuth2PermissionGrant(ctx context.Con ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/oauth2permissiongrants/stable/oauth2permissiongrant/method_updateoauth2permissiongrant.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/oauth2permissiongrants/stable/oauth2permissiongrant/method_updateoauth2permissiongrant.go index 8b2f206e7..d0c9ac9b9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/oauth2permissiongrants/stable/oauth2permissiongrant/method_updateoauth2permissiongrant.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/oauth2permissiongrants/stable/oauth2permissiongrant/method_updateoauth2permissiongrant.go @@ -53,7 +53,9 @@ func (c OAuth2PermissionGrantClient) UpdateOAuth2PermissionGrant(ctx context.Con opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/authenticationstrengthpolicy/method_createauthenticationstrengthpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/authenticationstrengthpolicy/method_createauthenticationstrengthpolicy.go index 8ef7de4cb..4dcbd87f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/authenticationstrengthpolicy/method_createauthenticationstrengthpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/authenticationstrengthpolicy/method_createauthenticationstrengthpolicy.go @@ -53,7 +53,10 @@ func (c AuthenticationStrengthPolicyClient) CreateAuthenticationStrengthPolicy(c opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/authenticationstrengthpolicy/method_deleteauthenticationstrengthpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/authenticationstrengthpolicy/method_deleteauthenticationstrengthpolicy.go index 03b599853..a88a53935 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/authenticationstrengthpolicy/method_deleteauthenticationstrengthpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/authenticationstrengthpolicy/method_deleteauthenticationstrengthpolicy.go @@ -57,6 +57,7 @@ func (c AuthenticationStrengthPolicyClient) DeleteAuthenticationStrengthPolicy(c ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/authenticationstrengthpolicy/method_updateauthenticationstrengthpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/authenticationstrengthpolicy/method_updateauthenticationstrengthpolicy.go index a53ad0fd2..c0a8c8105 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/authenticationstrengthpolicy/method_updateauthenticationstrengthpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/authenticationstrengthpolicy/method_updateauthenticationstrengthpolicy.go @@ -53,7 +53,9 @@ func (c AuthenticationStrengthPolicyClient) UpdateAuthenticationStrengthPolicy(c opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/authenticationstrengthpolicy/method_updateauthenticationstrengthpolicyallowedcombinations.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/authenticationstrengthpolicy/method_updateauthenticationstrengthpolicyallowedcombinations.go index 0db8dbe0a..5cafcb1fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/authenticationstrengthpolicy/method_updateauthenticationstrengthpolicyallowedcombinations.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/authenticationstrengthpolicy/method_updateauthenticationstrengthpolicyallowedcombinations.go @@ -55,6 +55,9 @@ func (c AuthenticationStrengthPolicyClient) UpdateAuthenticationStrengthPolicyAl opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/claimsmappingpolicy/method_createclaimsmappingpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/claimsmappingpolicy/method_createclaimsmappingpolicy.go index 90ce81122..5a8ee9d06 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/claimsmappingpolicy/method_createclaimsmappingpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/claimsmappingpolicy/method_createclaimsmappingpolicy.go @@ -52,7 +52,10 @@ func (c ClaimsMappingPolicyClient) CreateClaimsMappingPolicy(ctx context.Context opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/claimsmappingpolicy/method_deleteclaimsmappingpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/claimsmappingpolicy/method_deleteclaimsmappingpolicy.go index 5b12329a9..e5b84a781 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/claimsmappingpolicy/method_deleteclaimsmappingpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/claimsmappingpolicy/method_deleteclaimsmappingpolicy.go @@ -56,6 +56,7 @@ func (c ClaimsMappingPolicyClient) DeleteClaimsMappingPolicy(ctx context.Context ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/claimsmappingpolicy/method_updateclaimsmappingpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/claimsmappingpolicy/method_updateclaimsmappingpolicy.go index 1b424448b..e8966f6cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/claimsmappingpolicy/method_updateclaimsmappingpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/claimsmappingpolicy/method_updateclaimsmappingpolicy.go @@ -51,7 +51,9 @@ func (c ClaimsMappingPolicyClient) UpdateClaimsMappingPolicy(ctx context.Context opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicy/method_createrolemanagementpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicy/method_createrolemanagementpolicy.go index 7e8548d27..626ba14f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicy/method_createrolemanagementpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicy/method_createrolemanagementpolicy.go @@ -52,7 +52,10 @@ func (c RoleManagementPolicyClient) CreateRoleManagementPolicy(ctx context.Conte opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicy/method_deleterolemanagementpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicy/method_deleterolemanagementpolicy.go index e6d8b367b..87d271e02 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicy/method_deleterolemanagementpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicy/method_deleterolemanagementpolicy.go @@ -56,6 +56,7 @@ func (c RoleManagementPolicyClient) DeleteRoleManagementPolicy(ctx context.Conte ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicy/method_updaterolemanagementpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicy/method_updaterolemanagementpolicy.go index d47643029..d4676520a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicy/method_updaterolemanagementpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicy/method_updaterolemanagementpolicy.go @@ -51,7 +51,9 @@ func (c RoleManagementPolicyClient) UpdateRoleManagementPolicy(ctx context.Conte opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicyassignment/method_createrolemanagementpolicyassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicyassignment/method_createrolemanagementpolicyassignment.go index 3cccdc463..0cf02828b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicyassignment/method_createrolemanagementpolicyassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicyassignment/method_createrolemanagementpolicyassignment.go @@ -52,7 +52,10 @@ func (c RoleManagementPolicyAssignmentClient) CreateRoleManagementPolicyAssignme opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicyassignment/method_deleterolemanagementpolicyassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicyassignment/method_deleterolemanagementpolicyassignment.go index a21791432..ed6e56a7a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicyassignment/method_deleterolemanagementpolicyassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicyassignment/method_deleterolemanagementpolicyassignment.go @@ -56,6 +56,7 @@ func (c RoleManagementPolicyAssignmentClient) DeleteRoleManagementPolicyAssignme ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicyassignment/method_updaterolemanagementpolicyassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicyassignment/method_updaterolemanagementpolicyassignment.go index 583164f1f..c9b538203 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicyassignment/method_updaterolemanagementpolicyassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/rolemanagementpolicyassignment/method_updaterolemanagementpolicyassignment.go @@ -51,7 +51,9 @@ func (c RoleManagementPolicyAssignmentClient) UpdateRoleManagementPolicyAssignme opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroleassignment/method_createentitlementmanagementroleassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroleassignment/method_createentitlementmanagementroleassignment.go index 0408ed584..456ae06d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroleassignment/method_createentitlementmanagementroleassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroleassignment/method_createentitlementmanagementroleassignment.go @@ -52,7 +52,9 @@ func (c EntitlementManagementRoleAssignmentClient) CreateEntitlementManagementRo opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroleassignment/method_deleteentitlementmanagementroleassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroleassignment/method_deleteentitlementmanagementroleassignment.go index 1a83fd901..593476cc1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroleassignment/method_deleteentitlementmanagementroleassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroleassignment/method_deleteentitlementmanagementroleassignment.go @@ -56,6 +56,7 @@ func (c EntitlementManagementRoleAssignmentClient) DeleteEntitlementManagementRo ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroleassignment/method_updateentitlementmanagementroleassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroleassignment/method_updateentitlementmanagementroleassignment.go index e246dab4a..1ab90b191 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroleassignment/method_updateentitlementmanagementroleassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroleassignment/method_updateentitlementmanagementroleassignment.go @@ -51,7 +51,9 @@ func (c EntitlementManagementRoleAssignmentClient) UpdateEntitlementManagementRo opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroledefinition/method_createentitlementmanagementroledefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroledefinition/method_createentitlementmanagementroledefinition.go index 4b64147e2..f7604bc00 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroledefinition/method_createentitlementmanagementroledefinition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroledefinition/method_createentitlementmanagementroledefinition.go @@ -52,7 +52,10 @@ func (c EntitlementManagementRoleDefinitionClient) CreateEntitlementManagementRo opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroledefinition/method_deleteentitlementmanagementroledefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroledefinition/method_deleteentitlementmanagementroledefinition.go index 0c84a2e7c..2c062f3eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroledefinition/method_deleteentitlementmanagementroledefinition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroledefinition/method_deleteentitlementmanagementroledefinition.go @@ -56,6 +56,7 @@ func (c EntitlementManagementRoleDefinitionClient) DeleteEntitlementManagementRo ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroledefinition/method_updateentitlementmanagementroledefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroledefinition/method_updateentitlementmanagementroledefinition.go index 38843db15..af1ec14d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroledefinition/method_updateentitlementmanagementroledefinition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/entitlementmanagementroledefinition/method_updateentitlementmanagementroledefinition.go @@ -51,7 +51,9 @@ func (c EntitlementManagementRoleDefinitionClient) UpdateEntitlementManagementRo opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleassignment/method_createdirectoryroleassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleassignment/method_createdirectoryroleassignment.go index 4275a4350..db0134185 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleassignment/method_createdirectoryroleassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleassignment/method_createdirectoryroleassignment.go @@ -52,7 +52,10 @@ func (c DirectoryRoleAssignmentClient) CreateDirectoryRoleAssignment(ctx context opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleassignment/method_deletedirectoryroleassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleassignment/method_deletedirectoryroleassignment.go index 30b963419..cc9c303cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleassignment/method_deletedirectoryroleassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleassignment/method_deletedirectoryroleassignment.go @@ -56,6 +56,7 @@ func (c DirectoryRoleAssignmentClient) DeleteDirectoryRoleAssignment(ctx context ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleassignment/method_updatedirectoryroleassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleassignment/method_updatedirectoryroleassignment.go index a24b222be..5406495d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleassignment/method_updatedirectoryroleassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleassignment/method_updatedirectoryroleassignment.go @@ -51,7 +51,9 @@ func (c DirectoryRoleAssignmentClient) UpdateDirectoryRoleAssignment(ctx context opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroledefinition/method_createdirectoryroledefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroledefinition/method_createdirectoryroledefinition.go index c1392a782..ccda7df99 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroledefinition/method_createdirectoryroledefinition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroledefinition/method_createdirectoryroledefinition.go @@ -53,7 +53,10 @@ func (c DirectoryRoleDefinitionClient) CreateDirectoryRoleDefinition(ctx context opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroledefinition/method_deletedirectoryroledefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroledefinition/method_deletedirectoryroledefinition.go index 819b83b75..fdebb1704 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroledefinition/method_deletedirectoryroledefinition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroledefinition/method_deletedirectoryroledefinition.go @@ -57,6 +57,7 @@ func (c DirectoryRoleDefinitionClient) DeleteDirectoryRoleDefinition(ctx context ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroledefinition/method_updatedirectoryroledefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroledefinition/method_updatedirectoryroledefinition.go index 09c70fc37..c0ca6a0e7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroledefinition/method_updatedirectoryroledefinition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroledefinition/method_updatedirectoryroledefinition.go @@ -52,7 +52,9 @@ func (c DirectoryRoleDefinitionClient) UpdateDirectoryRoleDefinition(ctx context opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleeligibilityschedulerequest/method_canceldirectoryroleeligibilityschedulerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleeligibilityschedulerequest/method_canceldirectoryroleeligibilityschedulerequest.go index 178595d1d..5690077cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleeligibilityschedulerequest/method_canceldirectoryroleeligibilityschedulerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleeligibilityschedulerequest/method_canceldirectoryroleeligibilityschedulerequest.go @@ -55,7 +55,10 @@ func (c DirectoryRoleEligibilityScheduleRequestClient) CancelDirectoryRoleEligib opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleeligibilityschedulerequest/method_createdirectoryroleeligibilityschedulerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleeligibilityschedulerequest/method_createdirectoryroleeligibilityschedulerequest.go index 6be4c9d67..2e6447cd4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleeligibilityschedulerequest/method_createdirectoryroleeligibilityschedulerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleeligibilityschedulerequest/method_createdirectoryroleeligibilityschedulerequest.go @@ -54,7 +54,10 @@ func (c DirectoryRoleEligibilityScheduleRequestClient) CreateDirectoryRoleEligib opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleeligibilityschedulerequest/method_deletedirectoryroleeligibilityschedulerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleeligibilityschedulerequest/method_deletedirectoryroleeligibilityschedulerequest.go index 2ea5499e8..4ef2895af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleeligibilityschedulerequest/method_deletedirectoryroleeligibilityschedulerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleeligibilityschedulerequest/method_deletedirectoryroleeligibilityschedulerequest.go @@ -57,6 +57,7 @@ func (c DirectoryRoleEligibilityScheduleRequestClient) DeleteDirectoryRoleEligib ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleeligibilityschedulerequest/method_updatedirectoryroleeligibilityschedulerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleeligibilityschedulerequest/method_updatedirectoryroleeligibilityschedulerequest.go index fe9339dae..5e8383ed0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleeligibilityschedulerequest/method_updatedirectoryroleeligibilityschedulerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/stable/directoryroleeligibilityschedulerequest/method_updatedirectoryroleeligibilityschedulerequest.go @@ -52,7 +52,9 @@ func (c DirectoryRoleEligibilityScheduleRequestClient) UpdateDirectoryRoleEligib opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_addtokensigningcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_addtokensigningcertificate.go index 664eff409..0997765f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_addtokensigningcertificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_addtokensigningcertificate.go @@ -61,6 +61,9 @@ func (c ServicePrincipalClient) AddTokenSigningCertificate(ctx context.Context, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_creategetsuserownedobject.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_creategetsuserownedobject.go index ac5fdd38c..b07fd5520 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_creategetsuserownedobject.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_creategetsuserownedobject.go @@ -55,6 +55,9 @@ func (c ServicePrincipalClient) CreateGetsUserOwnedObject(ctx context.Context, i opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_createpasswordsinglesignoncredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_createpasswordsinglesignoncredentials.go index 7f030c5f2..8600a85f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_createpasswordsinglesignoncredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_createpasswordsinglesignoncredentials.go @@ -54,6 +54,9 @@ func (c ServicePrincipalClient) CreatePasswordSingleSignOnCredentials(ctx contex opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_createserviceprincipal.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_createserviceprincipal.go index 77f4cb301..9ac2932f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_createserviceprincipal.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_createserviceprincipal.go @@ -52,7 +52,10 @@ func (c ServicePrincipalClient) CreateServicePrincipal(ctx context.Context, inpu opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_createvalidatesproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_createvalidatesproperty.go index 252fd3d56..88d5f79b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_createvalidatesproperty.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_createvalidatesproperty.go @@ -58,7 +58,10 @@ func (c ServicePrincipalClient) CreateValidatesProperty(ctx context.Context, inp opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_deletepasswordsinglesignoncredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_deletepasswordsinglesignoncredentials.go index 83bde957e..ba83dcb1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_deletepasswordsinglesignoncredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_deletepasswordsinglesignoncredentials.go @@ -53,7 +53,10 @@ func (c ServicePrincipalClient) DeletePasswordSingleSignOnCredentials(ctx contex opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_deleteserviceprincipal.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_deleteserviceprincipal.go index e9e33108b..aca1da372 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_deleteserviceprincipal.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_deleteserviceprincipal.go @@ -56,6 +56,7 @@ func (c ServicePrincipalClient) DeleteServicePrincipal(ctx context.Context, id b ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_getpasswordsinglesignoncredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_getpasswordsinglesignoncredentials.go index 314a4c285..19eba93f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_getpasswordsinglesignoncredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_getpasswordsinglesignoncredentials.go @@ -54,6 +54,9 @@ func (c ServicePrincipalClient) GetPasswordSingleSignOnCredentials(ctx context.C opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_restore.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_restore.go index a073294b4..65d65dfdc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_restore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_restore.go @@ -59,6 +59,9 @@ func (c ServicePrincipalClient) Restore(ctx context.Context, id beta.ServicePrin opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_updatepasswordsinglesignoncredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_updatepasswordsinglesignoncredentials.go index 936379d37..fecda3cb2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_updatepasswordsinglesignoncredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_updatepasswordsinglesignoncredentials.go @@ -53,7 +53,10 @@ func (c ServicePrincipalClient) UpdatePasswordSingleSignOnCredentials(ctx contex opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_updateserviceprincipal.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_updateserviceprincipal.go index 856ec8f53..7d2ffac20 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_updateserviceprincipal.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/beta/serviceprincipal/method_updateserviceprincipal.go @@ -52,7 +52,9 @@ func (c ServicePrincipalClient) UpdateServicePrincipal(ctx context.Context, id b opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/approleassignedto/method_createapproleassignedto.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/approleassignedto/method_createapproleassignedto.go index 5d383fac2..627ddb05e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/approleassignedto/method_createapproleassignedto.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/approleassignedto/method_createapproleassignedto.go @@ -56,7 +56,10 @@ func (c AppRoleAssignedToClient) CreateAppRoleAssignedTo(ctx context.Context, id opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/approleassignedto/method_deleteapproleassignedto.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/approleassignedto/method_deleteapproleassignedto.go index 12ae108df..b6b3095ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/approleassignedto/method_deleteapproleassignedto.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/approleassignedto/method_deleteapproleassignedto.go @@ -57,6 +57,7 @@ func (c AppRoleAssignedToClient) DeleteAppRoleAssignedTo(ctx context.Context, id ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/approleassignedto/method_updateapproleassignedto.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/approleassignedto/method_updateapproleassignedto.go index 3b19f3ef6..ab3fdfd76 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/approleassignedto/method_updateapproleassignedto.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/approleassignedto/method_updateapproleassignedto.go @@ -51,7 +51,9 @@ func (c AppRoleAssignedToClient) UpdateAppRoleAssignedTo(ctx context.Context, id opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/claimsmappingpolicy/method_addclaimsmappingpolicyref.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/claimsmappingpolicy/method_addclaimsmappingpolicyref.go index 0b4e121c2..1b202ac07 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/claimsmappingpolicy/method_addclaimsmappingpolicyref.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/claimsmappingpolicy/method_addclaimsmappingpolicyref.go @@ -52,7 +52,10 @@ func (c ClaimsMappingPolicyClient) AddClaimsMappingPolicyRef(ctx context.Context opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/claimsmappingpolicy/method_removeclaimsmappingpolicyref.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/claimsmappingpolicy/method_removeclaimsmappingpolicyref.go index 4e3b0c43d..9ee1c2349 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/claimsmappingpolicy/method_removeclaimsmappingpolicyref.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/claimsmappingpolicy/method_removeclaimsmappingpolicyref.go @@ -56,6 +56,7 @@ func (c ClaimsMappingPolicyClient) RemoveClaimsMappingPolicyRef(ctx context.Cont ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/claimsmappingpolicy/method_removeclaimsmappingpolicyrefs.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/claimsmappingpolicy/method_removeclaimsmappingpolicyrefs.go index c431fc28b..f05e98ee2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/claimsmappingpolicy/method_removeclaimsmappingpolicyrefs.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/claimsmappingpolicy/method_removeclaimsmappingpolicyrefs.go @@ -59,6 +59,7 @@ func (c ClaimsMappingPolicyClient) RemoveClaimsMappingPolicyRefs(ctx context.Con ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/owner/method_addownerref.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/owner/method_addownerref.go index 0a8b060aa..13c0e4d30 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/owner/method_addownerref.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/owner/method_addownerref.go @@ -53,7 +53,10 @@ func (c OwnerClient) AddOwnerRef(ctx context.Context, id stable.ServicePrincipal opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/owner/method_removeownerref.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/owner/method_removeownerref.go index 82b8ed519..04dbf08fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/owner/method_removeownerref.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/owner/method_removeownerref.go @@ -57,6 +57,7 @@ func (c OwnerClient) RemoveOwnerRef(ctx context.Context, id stable.ServicePrinci ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/owner/method_removeownerrefs.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/owner/method_removeownerrefs.go index 8be47a43d..1355610aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/owner/method_removeownerrefs.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/owner/method_removeownerrefs.go @@ -60,6 +60,7 @@ func (c OwnerClient) RemoveOwnerRefs(ctx context.Context, id stable.ServicePrinc ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_addkey.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_addkey.go index 8eebabbac..754a42520 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_addkey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_addkey.go @@ -58,6 +58,9 @@ func (c ServicePrincipalClient) AddKey(ctx context.Context, id stable.ServicePri opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_addpassword.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_addpassword.go index 163706190..05e459a0f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_addpassword.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_addpassword.go @@ -53,6 +53,9 @@ func (c ServicePrincipalClient) AddPassword(ctx context.Context, id stable.Servi opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_addtokensigningcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_addtokensigningcertificate.go index c5a80fc78..72f1905e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_addtokensigningcertificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_addtokensigningcertificate.go @@ -61,6 +61,9 @@ func (c ServicePrincipalClient) AddTokenSigningCertificate(ctx context.Context, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_createserviceprincipal.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_createserviceprincipal.go index 35d00f6dc..faf3bd41d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_createserviceprincipal.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_createserviceprincipal.go @@ -52,7 +52,10 @@ func (c ServicePrincipalClient) CreateServicePrincipal(ctx context.Context, inpu opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_createvalidatesproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_createvalidatesproperty.go index a4674d630..22742440c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_createvalidatesproperty.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_createvalidatesproperty.go @@ -58,7 +58,10 @@ func (c ServicePrincipalClient) CreateValidatesProperty(ctx context.Context, inp opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_deleteserviceprincipal.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_deleteserviceprincipal.go index 01883af7a..a9ad40351 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_deleteserviceprincipal.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_deleteserviceprincipal.go @@ -56,6 +56,7 @@ func (c ServicePrincipalClient) DeleteServicePrincipal(ctx context.Context, id s ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_removekey.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_removekey.go index a3bef9df3..635466349 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_removekey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_removekey.go @@ -54,7 +54,10 @@ func (c ServicePrincipalClient) RemoveKey(ctx context.Context, id stable.Service opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_removepassword.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_removepassword.go index fa52fb5f5..aaa9fb033 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_removepassword.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_removepassword.go @@ -52,7 +52,10 @@ func (c ServicePrincipalClient) RemovePassword(ctx context.Context, id stable.Se opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_restore.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_restore.go index 47c6ee7ae..fee8f91bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_restore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_restore.go @@ -58,6 +58,9 @@ func (c ServicePrincipalClient) Restore(ctx context.Context, id stable.ServicePr opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_updateserviceprincipal.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_updateserviceprincipal.go index eff704fe7..2565032f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_updateserviceprincipal.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/serviceprincipal/method_updateserviceprincipal.go @@ -52,7 +52,9 @@ func (c ServicePrincipalClient) UpdateServicePrincipal(ctx context.Context, id s opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_createsynchronizationjob.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_createsynchronizationjob.go index 5ddfa2146..d5efbb266 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_createsynchronizationjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_createsynchronizationjob.go @@ -54,7 +54,10 @@ func (c SynchronizationJobClient) CreateSynchronizationJob(ctx context.Context, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_deletesynchronizationjob.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_deletesynchronizationjob.go index 2e1644112..2eb92f481 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_deletesynchronizationjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_deletesynchronizationjob.go @@ -57,6 +57,7 @@ func (c SynchronizationJobClient) DeleteSynchronizationJob(ctx context.Context, ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_pausesynchronizationjob.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_pausesynchronizationjob.go index 3f6c7b4d3..df972988a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_pausesynchronizationjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_pausesynchronizationjob.go @@ -53,7 +53,10 @@ func (c SynchronizationJobClient) PauseSynchronizationJob(ctx context.Context, i opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_provisionsynchronizationjobondemand.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_provisionsynchronizationjobondemand.go index b8126813f..5451eeb1d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_provisionsynchronizationjobondemand.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_provisionsynchronizationjobondemand.go @@ -54,6 +54,9 @@ func (c SynchronizationJobClient) ProvisionSynchronizationJobOnDemand(ctx contex opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_restartsynchronizationjob.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_restartsynchronizationjob.go index 9353086b5..ee278c8b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_restartsynchronizationjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_restartsynchronizationjob.go @@ -53,7 +53,10 @@ func (c SynchronizationJobClient) RestartSynchronizationJob(ctx context.Context, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_startsynchronizationjob.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_startsynchronizationjob.go index 711ffad50..a366dcb06 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_startsynchronizationjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_startsynchronizationjob.go @@ -55,7 +55,10 @@ func (c SynchronizationJobClient) StartSynchronizationJob(ctx context.Context, i opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_updatesynchronizationjob.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_updatesynchronizationjob.go index adcd9813f..38821078f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_updatesynchronizationjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_updatesynchronizationjob.go @@ -51,7 +51,9 @@ func (c SynchronizationJobClient) UpdateSynchronizationJob(ctx context.Context, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_validatesynchronizationjobcredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_validatesynchronizationjobcredentials.go index 982244d84..c9b1c5da3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_validatesynchronizationjobcredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_validatesynchronizationjobcredentials.go @@ -53,7 +53,10 @@ func (c SynchronizationJobClient) ValidateSynchronizationJobCredentials(ctx cont opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_validatesynchronizationjobscredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_validatesynchronizationjobscredentials.go index 685ecc607..f6e4dffde 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_validatesynchronizationjobscredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationjob/method_validatesynchronizationjobscredentials.go @@ -52,7 +52,10 @@ func (c SynchronizationJobClient) ValidateSynchronizationJobsCredentials(ctx con opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationsecret/method_setsynchronizationsecret.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationsecret/method_setsynchronizationsecret.go index 015bb4e9d..d31e3c2be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationsecret/method_setsynchronizationsecret.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synchronizationsecret/method_setsynchronizationsecret.go @@ -53,7 +53,10 @@ func (c SynchronizationSecretClient) SetSynchronizationSecret(ctx context.Contex opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPut, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_assignlicense.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_assignlicense.go index f40fb6c8f..590f292c8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_assignlicense.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_assignlicense.go @@ -57,6 +57,9 @@ func (c UserClient) AssignLicense(ctx context.Context, id beta.UserId, input Ass opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_changepassword.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_changepassword.go index 98842cacc..a94a66cb1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_changepassword.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_changepassword.go @@ -53,7 +53,10 @@ func (c UserClient) ChangePassword(ctx context.Context, id beta.UserId, input Ch opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createconvertexternaltointernalmemberuser.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createconvertexternaltointernalmemberuser.go index 97d691d7f..35970dfa9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createconvertexternaltointernalmemberuser.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createconvertexternaltointernalmemberuser.go @@ -56,6 +56,9 @@ func (c UserClient) CreateConvertExternalToInternalMemberUser(ctx context.Contex opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createexportpersonaldata.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createexportpersonaldata.go index 17bc912cd..0e175fbf2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createexportpersonaldata.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createexportpersonaldata.go @@ -55,7 +55,10 @@ func (c UserClient) CreateExportPersonalData(ctx context.Context, id beta.UserId opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_creategetsuserownedobject.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_creategetsuserownedobject.go index aaa0529b8..26a706d34 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_creategetsuserownedobject.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_creategetsuserownedobject.go @@ -55,6 +55,9 @@ func (c UserClient) CreateGetsUserOwnedObject(ctx context.Context, input CreateG opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createinvalidateallrefreshtoken.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createinvalidateallrefreshtoken.go index baddab4bf..50c91a025 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createinvalidateallrefreshtoken.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createinvalidateallrefreshtoken.go @@ -62,6 +62,9 @@ func (c UserClient) CreateInvalidateAllRefreshToken(ctx context.Context, id beta opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createunblockmanagedapp.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createunblockmanagedapp.go index 3c55c6a48..f1e404533 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createunblockmanagedapp.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createunblockmanagedapp.go @@ -52,7 +52,10 @@ func (c UserClient) CreateUnblockManagedApp(ctx context.Context, id beta.UserId, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createuser.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createuser.go index b26696353..03a796bcf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createuser.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createuser.go @@ -56,7 +56,10 @@ func (c UserClient) CreateUser(ctx context.Context, input beta.User, options Cre opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createvalidatespassword.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createvalidatespassword.go index 6cee7488c..623525f99 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createvalidatespassword.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createvalidatespassword.go @@ -54,6 +54,9 @@ func (c UserClient) CreateValidatesPassword(ctx context.Context, input CreateVal opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createvalidatesproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createvalidatesproperty.go index 52b84738b..20c90adaa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createvalidatesproperty.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_createvalidatesproperty.go @@ -58,7 +58,10 @@ func (c UserClient) CreateValidatesProperty(ctx context.Context, input CreateVal opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_deletepasswordsinglesignoncredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_deletepasswordsinglesignoncredentials.go index 5d641177f..b1be55d02 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_deletepasswordsinglesignoncredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_deletepasswordsinglesignoncredentials.go @@ -53,7 +53,10 @@ func (c UserClient) DeletePasswordSingleSignOnCredentials(ctx context.Context, i opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_deleteuser.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_deleteuser.go index 84fa1f1ff..91d6402d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_deleteuser.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_deleteuser.go @@ -60,6 +60,7 @@ func (c UserClient) DeleteUser(ctx context.Context, id beta.UserId, options Dele ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_findmeetingtimes.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_findmeetingtimes.go index 0c9d66acb..a246add93 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_findmeetingtimes.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_findmeetingtimes.go @@ -58,6 +58,9 @@ func (c UserClient) FindMeetingTimes(ctx context.Context, id beta.UserId, input opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_removealldevicesfrommanagement.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_removealldevicesfrommanagement.go index 10eabf1a5..9e0aae226 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_removealldevicesfrommanagement.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_removealldevicesfrommanagement.go @@ -53,7 +53,10 @@ func (c UserClient) RemoveAllDevicesFromManagement(ctx context.Context, id beta. opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_reprocesslicenseassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_reprocesslicenseassignment.go index 38e0c4b15..d973ac44b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_reprocesslicenseassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_reprocesslicenseassignment.go @@ -55,6 +55,9 @@ func (c UserClient) ReprocessLicenseAssignment(ctx context.Context, id beta.User opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_restore.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_restore.go index 2d49f5a78..b48a885e0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_restore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_restore.go @@ -59,6 +59,9 @@ func (c UserClient) Restore(ctx context.Context, id beta.UserId, input RestoreRe opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_retryserviceprovisioning.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_retryserviceprovisioning.go index 80ed14208..fb192467a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_retryserviceprovisioning.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_retryserviceprovisioning.go @@ -52,7 +52,10 @@ func (c UserClient) RetryServiceProvisioning(ctx context.Context, id beta.UserId opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_revokesigninsessions.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_revokesigninsessions.go index 311f99111..2058f8e97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_revokesigninsessions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_revokesigninsessions.go @@ -60,6 +60,9 @@ func (c UserClient) RevokeSignInSessions(ctx context.Context, id beta.UserId, op opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_sendmail.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_sendmail.go index c7f2522bb..dc4c902fc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_sendmail.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_sendmail.go @@ -56,7 +56,10 @@ func (c UserClient) SendMail(ctx context.Context, id beta.UserId, input SendMail opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_updateuser.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_updateuser.go index a70ae2552..5d32a0a54 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_updateuser.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_updateuser.go @@ -51,7 +51,9 @@ func (c UserClient) UpdateUser(ctx context.Context, id beta.UserId, input beta.U opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_wipeandblockmanagedapps.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_wipeandblockmanagedapps.go index afa7676f9..d04e4c926 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_wipeandblockmanagedapps.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_wipeandblockmanagedapps.go @@ -52,7 +52,10 @@ func (c UserClient) WipeAndBlockManagedApps(ctx context.Context, id beta.UserId, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_wipemanagedappregistrationbydevicetag.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_wipemanagedappregistrationbydevicetag.go index 016862522..76df4ab8a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_wipemanagedappregistrationbydevicetag.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_wipemanagedappregistrationbydevicetag.go @@ -53,7 +53,10 @@ func (c UserClient) WipeManagedAppRegistrationByDeviceTag(ctx context.Context, i opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_wipemanagedappregistrationsbyazureaddeviceid.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_wipemanagedappregistrationsbyazureaddeviceid.go index f0966f3e4..4c081c5f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_wipemanagedappregistrationsbyazureaddeviceid.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_wipemanagedappregistrationsbyazureaddeviceid.go @@ -53,7 +53,10 @@ func (c UserClient) WipeManagedAppRegistrationsByAzureAdDeviceId(ctx context.Con opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_wipemanagedappregistrationsbydevicetag.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_wipemanagedappregistrationsbydevicetag.go index 16c85aaa4..640113f04 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_wipemanagedappregistrationsbydevicetag.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user/method_wipemanagedappregistrationsbydevicetag.go @@ -53,7 +53,10 @@ func (c UserClient) WipeManagedAppRegistrationsByDeviceTag(ctx context.Context, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/manager/method_removemanagerref.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/manager/method_removemanagerref.go index e6a01691b..c8993b42d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/manager/method_removemanagerref.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/manager/method_removemanagerref.go @@ -56,6 +56,7 @@ func (c ManagerClient) RemoveManagerRef(ctx context.Context, id stable.UserId, o ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/manager/method_setmanagerref.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/manager/method_setmanagerref.go index 777a98faf..991cfdb2f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/manager/method_setmanagerref.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/manager/method_setmanagerref.go @@ -52,7 +52,10 @@ func (c ManagerClient) SetManagerRef(ctx context.Context, id stable.UserId, inpu opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPut, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_assignlicense.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_assignlicense.go index eb82300cd..cf21ab676 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_assignlicense.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_assignlicense.go @@ -56,6 +56,9 @@ func (c UserClient) AssignLicense(ctx context.Context, id stable.UserId, input A opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_changepassword.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_changepassword.go index 04885207a..b7f455ea5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_changepassword.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_changepassword.go @@ -53,7 +53,10 @@ func (c UserClient) ChangePassword(ctx context.Context, id stable.UserId, input opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_createexportpersonaldata.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_createexportpersonaldata.go index 958d37fbf..7845b4401 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_createexportpersonaldata.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_createexportpersonaldata.go @@ -55,7 +55,10 @@ func (c UserClient) CreateExportPersonalData(ctx context.Context, id stable.User opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_createuser.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_createuser.go index 3eed3520d..9cda749bf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_createuser.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_createuser.go @@ -52,7 +52,10 @@ func (c UserClient) CreateUser(ctx context.Context, input stable.User, options C opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusCreated, + http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_createvalidatesproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_createvalidatesproperty.go index 266e92ee3..a079e186b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_createvalidatesproperty.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_createvalidatesproperty.go @@ -58,7 +58,10 @@ func (c UserClient) CreateValidatesProperty(ctx context.Context, input CreateVal opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_deleteuser.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_deleteuser.go index 4d2dc805d..09dde779e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_deleteuser.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_deleteuser.go @@ -56,6 +56,7 @@ func (c UserClient) DeleteUser(ctx context.Context, id stable.UserId, options De ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodDelete, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_findmeetingtimes.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_findmeetingtimes.go index 140cbc10b..e9102c352 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_findmeetingtimes.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_findmeetingtimes.go @@ -58,6 +58,9 @@ func (c UserClient) FindMeetingTimes(ctx context.Context, id stable.UserId, inpu opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_removealldevicesfrommanagement.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_removealldevicesfrommanagement.go index 20a2f9f77..0ca6f4fc3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_removealldevicesfrommanagement.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_removealldevicesfrommanagement.go @@ -53,7 +53,10 @@ func (c UserClient) RemoveAllDevicesFromManagement(ctx context.Context, id stabl opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_reprocesslicenseassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_reprocesslicenseassignment.go index 9c6a1d853..acc6d91ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_reprocesslicenseassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_reprocesslicenseassignment.go @@ -55,6 +55,9 @@ func (c UserClient) ReprocessLicenseAssignment(ctx context.Context, id stable.Us opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_restore.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_restore.go index c67efcb70..a84006554 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_restore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_restore.go @@ -58,6 +58,9 @@ func (c UserClient) Restore(ctx context.Context, id stable.UserId, options Resto opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_retryserviceprovisioning.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_retryserviceprovisioning.go index 7c7e82370..b2ba8389a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_retryserviceprovisioning.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_retryserviceprovisioning.go @@ -52,7 +52,10 @@ func (c UserClient) RetryServiceProvisioning(ctx context.Context, id stable.User opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_revokesigninsessions.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_revokesigninsessions.go index d70ed3968..f0baf3a50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_revokesigninsessions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_revokesigninsessions.go @@ -58,6 +58,9 @@ func (c UserClient) RevokeSignInSessions(ctx context.Context, id stable.UserId, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusNoContent, http.StatusOK, }, HttpMethod: http.MethodPost, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_sendmail.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_sendmail.go index a6487e7a6..2b08edf17 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_sendmail.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_sendmail.go @@ -55,7 +55,10 @@ func (c UserClient) SendMail(ctx context.Context, id stable.UserId, input SendMa opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_updateuser.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_updateuser.go index 38029cda2..9be006079 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_updateuser.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_updateuser.go @@ -51,7 +51,9 @@ func (c UserClient) UpdateUser(ctx context.Context, id stable.UserId, input stab opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPatch, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_wipemanagedappregistrationsbydevicetag.go b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_wipemanagedappregistrationsbydevicetag.go index 3d476bb6e..ba876f161 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_wipemanagedappregistrationsbydevicetag.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user/method_wipemanagedappregistrationsbydevicetag.go @@ -53,7 +53,10 @@ func (c UserClient) WipeManagedAppRegistrationsByDeviceTag(ctx context.Context, opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, http.StatusNoContent, + http.StatusOK, }, HttpMethod: http.MethodPost, OptionsObject: options, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/client.go b/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/client.go index 1355029b7..6429116fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/client.go @@ -692,14 +692,28 @@ func (c *Client) retryableClient(ctx context.Context, checkRetry retryablehttp.C r.RetryWaitMin = 1 * time.Second r.RetryWaitMax = 61 * time.Second + // The default backoff results into the following formula T(n): + // ("t" repr. total time in sec, "n" repr. total retry count): + // - t = 2**(n+1) - 1 (0<=n<6) + // - t = (1+2+4+8+16+32) + 61*(n-6) (n>6) + // This results into the following N(t) (by guaranteeing T(n) <= t): + // - n = floor(log(t+1)) - 1 (0<=t<=63) + // - n = (t - 63)/61 + 6 (t > 63) + var safeRetryNumber = func(t time.Duration) int { + sec := t.Seconds() + if sec <= 63 { + return int(math.Floor(math.Log2(sec+1))) - 1 + } + return (int(sec)-63)/61 + 6 + } + // Default RetryMax of 16 takes approx 10 minutes to iterate r.RetryMax = 16 - // Extend the RetryMax if the context timeout exceeds 10 minutes + // In case the context has deadline defined, adjust the retry count to a value + // that the total time spent for retrying is right before the deadline exceeded. if deadline, ok := ctx.Deadline(); ok { - if timeout := deadline.Sub(time.Now()); timeout > 10*time.Minute { - r.RetryMax = int(math.Round(timeout.Minutes())) + 6 - } + r.RetryMax = safeRetryNumber(deadline.Sub(time.Now())) } tlsConfig := tls.Config{ diff --git a/vendor/modules.txt b/vendor/modules.txt index 0ebc23862..512e73d3d 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -68,7 +68,7 @@ github.com/hashicorp/go-azure-helpers/lang/pointer github.com/hashicorp/go-azure-helpers/lang/response github.com/hashicorp/go-azure-helpers/resourcemanager/features github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids -# github.com/hashicorp/go-azure-sdk/microsoft-graph v0.20240923.1151247 +# github.com/hashicorp/go-azure-sdk/microsoft-graph v0.20240927.1005214 ## explicit; go 1.21 github.com/hashicorp/go-azure-sdk/microsoft-graph/administrativeunits/beta/administrativeunit github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/application @@ -130,7 +130,7 @@ github.com/hashicorp/go-azure-sdk/microsoft-graph/serviceprincipals/stable/synch github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/user github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/manager github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/user -# github.com/hashicorp/go-azure-sdk/sdk v0.20240923.1151247 +# github.com/hashicorp/go-azure-sdk/sdk v0.20240927.1005214 ## explicit; go 1.21 github.com/hashicorp/go-azure-sdk/sdk/auth github.com/hashicorp/go-azure-sdk/sdk/claims